/* Portal List Styles */
.main-content { margin-top: 10px; padding: 10px 0; }
.content-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); border-radius: 15px; overflow: hidden; transition: 0.3s; height: 100%; display: flex; flex-direction: column; }
.content-card:hover { transform: translateY(-5px); border-color: #ff416c; box-shadow: 0 10px 30px rgba(255, 65, 108, 0.2); }
.content-img { width: 100%; height: 180px; object-fit: cover; }
.content-body { padding: 15px; flex-grow: 1; display: flex; flex-direction: column; }
.content-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 8px; color: #fff; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.content-date { font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-top: auto; }
.content-views { font-size: 0.7rem; color: rgba(255,255,255,0.4); margin-top: 5px; }
a { text-decoration: none; color: inherit; }
a:hover { color: #ff416c; }
.pagination .page-link { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); color: #fff; border-radius: 8px; margin: 0 4px; }
.pagination .page-item.active .page-link { background: #ff416c; border-color: #ff416c; }
.pagination .page-link:hover { background: rgba(255,65,108,0.2); color: #fff; }

/* Video Card Special */
.video-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; opacity: 0; transition: 0.3s; }
.content-card:hover .video-overlay { opacity: 1; }

@media (max-width: 767px) {
    .main-content { margin-top: 70px; padding: 20px 0; }
    .content-img { height: 140px; }
    .content-title { font-size: 0.85rem; }
}

/* Portal Container Styles */
.portal-container { 
    max-width: 900px; 
    margin: 40px auto 50px auto; 
    background: #161625 !important; 
    border: 1px solid rgba(255,255,255,0.08) !important; 
    border-radius: 24px; 
    padding: 40px; 
    box-shadow: 0 30px 60px rgba(0,0,0,0.5); 
    backdrop-filter: blur(10px); 
    color: #d1d1d1 !important;
}
.back-link { color: #4e9af1; text-decoration: none; font-weight: 600; margin-bottom: 30px; display: inline-flex; align-items: center; transition: 0.3s; }
.back-link:hover { color: #fff; transform: translateX(-5px); }
.portal-content-img { width: 100%; max-height: 500px; object-fit: cover; border-radius: 20px; margin-bottom: 35px; box-shadow: 0 15px 35px rgba(0,0,0,0.6); }
.portal-h1 { font-weight: 800; color: #fff !important; margin-bottom: 25px; line-height: 1.3; font-size: 2.5rem; }
.meta-info { font-size: 0.95rem; color: rgba(255,255,255,0.4); border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 25px; margin-bottom: 35px; }
.meta-item { display: flex; align-items: center; gap: 8px; }
.main-text { font-size: 1.2rem; line-height: 1.9; color: #d1d1d1 !important; }
.main-text p { margin-bottom: 1.8rem; }
.main-text strong { color: #ffffff !important; }
.poem-text {
    font-family: 'Arial', sans-serif;
    font-style: normal;
    text-align: left;
    font-size: 1.5rem;
    line-height: 1.8;
    letter-spacing: 0.02em;
    white-space: pre-line;
    color: #f5f5f5;
    max-width: 600px;
    margin: 0 auto;
}
.badge-type { background: rgba(78, 154, 241, 0.1); color: #4e9af1; padding: 5px 15px; border-radius: 50px; font-weight: 600; font-size: 0.8rem; text-transform: uppercase; }

@media (max-width: 767px) {
    .portal-container { margin-top: 20px; padding: 20px; }
    .portal-h1 { font-size: 1.8rem; }
}

/* Global UI Fixes for Standalone Pages (Only background/font) */
body { background-color: #0f0f1a !important; color: #fff; min-height: 100vh; }
.pointer { cursor: pointer; }

/* Radio Player Title Styles (Fixed) */
.radio-info-text {
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 250px;
    white-space: nowrap;
}

.radio-title-scroll {
    display: block;
    font-weight: 700;
    color: #fff;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .radio-info-text { max-width: 150px; }
    .radio-title-scroll { font-size: 0.85rem; }
}

/* Legal Page Unified Styles (Dark Theme) */
.legal-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%) !important;
    color: white !important;
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 40px;
}
.legal-alert-info { background: rgba(78, 154, 241, 0.1); border: 1px solid rgba(78, 154, 241, 0.2); color: #4e9af1; border-radius: 12px; }
.legal-input, .legal-textarea { background: rgba(255,255,255,0.05) !important; border: 1px solid rgba(255,255,255,0.1) !important; color: #fff !important; border-radius: 12px !important; padding: 12px !important; }
.legal-btn-premium { background: linear-gradient(45deg, #ff416c, #ff4b2b); border: none; border-radius: 15px; height: 60px; color: #fff; font-weight: 700; transition: 0.3s; }
.legal-btn-premium:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(255, 65, 108, 0.3); color: #fff; }
.legal-box { 
    background: #0f0f1a !important; 
    border-radius: 15px; 
    border: 1px solid rgba(255,255,255,0.05) !important; 
    padding: 25px; 
    color: #d1d1d1 !important;
}
.legal-border-top { border-top: 1px solid rgba(255,255,255,0.08) !important; }
.legal-map-iframe { filter: invert(90%) hue-rotate(180deg); border: 0; width: 100%; height: 100%; }

.legal-table { 
    background: transparent !important; 
    color: #d1d1d1 !important;
}
.legal-table th { 
    background: rgba(255,255,255,0.05) !important; 
    color: #ffffff !important; 
    border-color: rgba(255,255,255,0.1) !important;
}
.legal-table td { 
    background: rgba(0,0,0,0.2) !important;
    color: #d1d1d1 !important; 
    border-color: rgba(255,255,255,0.1) !important; 
}

.legal-badge { background: rgba(255, 65, 108, 0.1) !important; border: 1px solid rgba(255, 65, 108, 0.2) !important; color: #ff416c !important; }
.legal-refund-notice { background: rgba(220, 53, 69, 0.1); border: 1px solid rgba(220, 53, 69, 0.2); padding: 25px; border-radius: 15px; margin: 30px 0; }
.legal-refund-notice h4 { color: #ff4d4d; font-weight: 800; margin-bottom: 15px; display: flex; align-items: center; }
