/* ============================================
   نادي 85 Podcast - Modern Dark RTL Styles
   ============================================ */

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #1a1a1a;
    --bg-card-hover: #222222;
    --bg-elevated: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #666666;
    --accent: #f0a500;
    --accent-hover: #ffbc2a;
    --accent-dim: rgba(240, 165, 0, 0.15);
    --border: #2a2a2a;
    --border-light: #333333;
    --gradient-primary: linear-gradient(135deg, #f0a500, #ff8c00);
    --gradient-dark: linear-gradient(180deg, #0a0a0a 0%, #1a1a2e 100%);
    --gradient-card: linear-gradient(180deg, #1a1a1a 0%, #141414 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-accent: 0 0 30px rgba(240, 165, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 50%;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --header-height: 80px;
    --max-width: 1200px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body { font-family: var(--font-primary); background-color: var(--bg-primary); color: var(--text-primary); line-height: 1.8; overflow-x: hidden; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

.header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(10, 10, 10, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); height: var(--header-height); transition: var(--transition); }
.header.scrolled { background: rgba(10, 10, 10, 0.95); box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-height); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-primary); }
.logo-img { width: 45px; height: 45px; object-fit: contain; flex-shrink: 0; }
.logo-text { font-size: 22px; font-weight: 300; letter-spacing: -0.5px; }
.logo-text strong { font-weight: 900; color: var(--accent); }
.nav-list { display: flex; list-style: none; gap: 5px; }
.nav-link { display: inline-block; padding: 10px 20px; color: var(--text-secondary); text-decoration: none; font-size: 15px; font-weight: 500; border-radius: var(--radius-sm); transition: var(--transition); position: relative; }
.nav-link:hover, .nav-link.active { color: var(--text-primary); background: rgba(255, 255, 255, 0.05); }
.nav-link.active::after { content: ''; position: absolute; bottom: 0; right: 50%; transform: translateX(50%); width: 20px; height: 3px; background: var(--gradient-primary); border-radius: 2px; }
.header-actions { display: flex; align-items: center; gap: 15px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border: none; border-radius: var(--radius-sm); font-family: var(--font-primary); font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; transition: var(--transition); }
.btn-primary { background: var(--gradient-primary); color: #000; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-accent); }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-outline { background: transparent; border: 2px solid var(--border-light); color: var(--text-primary); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.menu-toggle { display: none; flex-direction: column; justify-content: center; align-items: center; width: 40px; height: 40px; background: transparent; border: none; cursor: pointer; gap: 5px; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: var(--transition); }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; background: var(--gradient-dark); overflow: hidden; padding-top: var(--header-height); }
.hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(ellipse at 20% 50%, rgba(240, 165, 0, 0.08) 0%, transparent 50%), radial-gradient(ellipse at 80% 50%, rgba(240, 165, 0, 0.05) 0%, transparent 50%), radial-gradient(ellipse at 50% 100%, rgba(240, 165, 0, 0.03) 0%, transparent 50%); pointer-events: none; }
.hero-bg-grid { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-image: radial-gradient(rgba(240, 165, 0, 0.08) 1px, transparent 1px); background-size: 30px 30px; pointer-events: none; }
.hero-content { position: relative; z-index: 1; max-width: 800px; padding: 40px 20px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px; background: var(--accent-dim); border: 1px solid rgba(240, 165, 0, 0.3); border-radius: var(--radius-full); color: var(--accent); font-size: 14px; font-weight: 500; margin-bottom: 30px; }
.hero-badge i { font-size: 12px; }
.hero-title { font-size: clamp(36px, 6vw, 72px); font-weight: 900; line-height: 1.5; margin-bottom: 20px; padding-bottom: 0.15em; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: clamp(18px, 2.5vw, 28px); font-weight: 300; color: var(--text-secondary); margin-bottom: 15px; line-height: 1.6; }
.hero-desc { font-size: 16px; color: var(--text-muted); margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; justify-content: center; gap: 50px; margin-top: 60px; }
.stat-item { text-align: center; }
.stat-number { font-size: 36px; font-weight: 900; color: var(--accent); display: block; }
.stat-label { font-size: 14px; color: var(--text-muted); margin-top: 5px; }

.section { padding: 100px 0; position: relative; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-label { display: inline-block; padding: 6px 16px; background: var(--accent-dim); border-radius: var(--radius-full); color: var(--accent); font-size: 13px; font-weight: 700; margin-bottom: 15px; letter-spacing: 1px; }
.section-title { font-size: clamp(28px, 4vw, 42px); font-weight: 900; margin-bottom: 15px; line-height: 1.3; }
.section-desc { font-size: 16px; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

#videos { background: var(--bg-secondary); }
.video-scroll-wrapper { position: relative; }
.video-grid { display: flex; overflow-x: auto; overflow-y: hidden; gap: 25px; padding: 10px 5px 20px; scroll-behavior: smooth; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: #2a2a2a transparent; }
.video-grid::-webkit-scrollbar { height: 5px; }
.video-grid::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.03); border-radius: 10px; margin: 0 40px; }
.video-grid::-webkit-scrollbar-thumb { background: rgba(240, 165, 0, 0.25); border-radius: 10px; transition: background 0.3s; }
.video-grid::-webkit-scrollbar-thumb:hover { background: rgba(240, 165, 0, 0.6); }
.video-scroll-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 72px; background: rgba(10, 10, 10, 0.75); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 10px; color: rgba(255, 255, 255, 0.7); font-size: 20px; cursor: pointer; z-index: 5; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; backdrop-filter: blur(10px); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4); }
.video-scroll-arrow:hover { background: var(--accent); color: #000; border-color: var(--accent); box-shadow: 0 6px 30px rgba(240, 165, 0, 0.35); width: 46px; }
.video-scroll-arrow.prev { left: 0; border-radius: 0 10px 10px 0; }
.video-scroll-arrow.next { right: 0; border-radius: 10px 0 0 10px; }
.video-scroll-arrow.hidden { opacity: 0; pointer-events: none; }

.video-card { flex: 0 0 auto; width: 340px; max-width: 85vw; background: var(--gradient-card); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; transition: var(--transition); cursor: pointer; position: relative; scroll-snap-align: start; }
.video-card:hover { transform: translateY(-8px); border-color: var(--accent); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), var(--shadow-accent); }
.video-card-thumbnail { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.video-card-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-slow); }
.video-card:hover .video-card-thumbnail img { transform: scale(1.05); }
.video-card-thumbnail::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.2); transition: var(--transition); }
.video-card:hover .video-card-thumbnail::after { background: rgba(0, 0, 0, 0.1); }
.video-card-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; background: var(--accent); border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; z-index: 2; opacity: 0; transition: var(--transition); box-shadow: 0 0 30px rgba(240, 165, 0, 0.4); }
.video-card:hover .video-card-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.video-card-play i { color: #000; font-size: 24px; margin-right: 3px; }
.video-card-category { position: absolute; top: 12px; right: 12px; padding: 5px 14px; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(10px); border-radius: var(--radius-full); font-size: 12px; font-weight: 700; color: var(--accent); z-index: 2; border: 1px solid rgba(240, 165, 0, 0.3); }
.video-card-body { padding: 20px; }
.video-card-title { font-size: 17px; font-weight: 700; line-height: 1.5; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: var(--transition); }
.video-card:hover .video-card-title { color: var(--accent); }
.video-card-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 15px; }
.video-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 15px; border-top: 1px solid var(--border); }
.video-card-date { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.video-card-date i { font-size: 11px; }
.video-card-btn { padding: 6px 16px; font-size: 12px; font-weight: 700; border-radius: var(--radius-sm); background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(240, 165, 0, 0.3); cursor: pointer; transition: var(--transition); font-family: var(--font-primary); }
.video-card-btn:hover { background: var(--accent); color: #000; }

.category-filter { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.category-btn { padding: 10px 24px; background: transparent; border: 1px solid var(--border); border-radius: var(--radius-full); color: var(--text-secondary); font-family: var(--font-primary); font-size: 14px; font-weight: 500; cursor: pointer; transition: var(--transition); }
.category-btn:hover { border-color: var(--accent); color: var(--accent); }
.category-btn.active { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 700; }

#about { background: var(--bg-primary); }
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text h3 { font-size: 28px; font-weight: 900; margin-bottom: 20px; }
.about-text p { color: var(--text-secondary); margin-bottom: 20px; font-size: 16px; line-height: 1.9; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.about-feature { display: flex; align-items: flex-start; gap: 15px; }
.about-feature-icon { width: 45px; height: 45px; min-width: 45px; background: var(--accent-dim); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 18px; }
.about-feature-text h4 { font-size: 16px; font-weight: 700; margin-bottom: 5px; }
.about-feature-text p { font-size: 13px; color: var(--text-muted); margin: 0; }
.about-image { position: relative; }
.about-image-box { background: var(--gradient-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; text-align: center; position: relative; overflow: hidden; }
.about-image-box::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(240, 165, 0, 0.05) 0%, transparent 70%); animation: rotate-bg 20s linear infinite; }
@keyframes rotate-bg { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.about-image-box .big-number { font-size: 120px; font-weight: 900; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; position: relative; z-index: 1; }
.about-image-box p { font-size: 16px; color: var(--text-secondary); margin-top: 10px; position: relative; z-index: 1; }

#categories { background: var(--bg-secondary); }
.categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.category-card { background: var(--gradient-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 40px 30px; text-align: center; transition: var(--transition); cursor: pointer; text-decoration: none; color: var(--text-primary); }
.category-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--shadow-accent); }
.category-card-icon { width: 70px; height: 70px; margin: 0 auto 20px; background: var(--accent-dim); border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--accent); transition: var(--transition); }
.category-card:hover .category-card-icon { background: var(--accent); color: #000; }
.category-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.category-card p { font-size: 13px; color: var(--text-muted); }

.footer { background: var(--bg-primary); border-top: 1px solid var(--border); padding: 80px 0 0; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 60px; border-bottom: 1px solid var(--border); }
.footer-brand .logo { margin-bottom: 20px; }
.footer-desc { color: var(--text-muted); font-size: 14px; line-height: 1.8; margin-bottom: 25px; }
.social-links { display: flex; gap: 12px; }
.social-link { width: 42px; height: 42px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); text-decoration: none; font-size: 16px; transition: var(--transition); }
.social-link:hover { background: var(--accent); color: #000; border-color: var(--accent); transform: translateY(-3px); }
.footer-title { font-size: 16px; font-weight: 700; margin-bottom: 25px; color: var(--text-primary); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; transition: var(--transition); display: flex; align-items: center; gap: 8px; }
.footer-links a:hover { color: var(--accent); padding-right: 5px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 25px 0; font-size: 13px; color: var(--text-muted); }

.modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 2000; padding: 20px; align-items: center; justify-content: center; }
.modal.active { display: flex; }
.modal-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(10px); animation: fadeIn 0.3s ease; }
.modal-content { position: relative; max-width: 850px; width: 100%; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; animation: slideUp 0.3s ease; max-height: 90vh; display: flex; flex-direction: column; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 25px; border-bottom: 1px solid var(--border); }
.modal-title { font-size: 18px; font-weight: 700; flex: 1; margin-left: 20px; }
.modal-close { width: 36px; height: 36px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-full); color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); font-size: 16px; }
.modal-close:hover { background: #ff4444; color: white; border-color: #ff4444; }
.modal-body { padding: 0; position: relative; aspect-ratio: 16/9; }
.video-wrapper { width: 100%; height: 100%; }
.video-wrapper iframe { width: 100%; height: 100%; border: none; }
.video-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; background: var(--bg-elevated); color: var(--text-muted); text-align: center; padding: 40px 20px; }
.video-placeholder i { font-size: 60px; color: var(--accent); margin-bottom: 5px; }
.video-placeholder h3 { font-size: 20px; font-weight: 800; color: var(--text-primary); }
.video-placeholder p { font-size: 14px; color: var(--text-muted); max-width: 350px; line-height: 1.6; }
.modal-footer { padding: 20px 25px; border-top: 1px solid var(--border); }
.modal-description { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

.scroll-top { position: fixed; bottom: 30px; left: 30px; width: 45px; height: 45px; background: var(--accent); border: none; border-radius: var(--radius-full); color: #000; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(20px); transition: var(--transition); z-index: 999; box-shadow: 0 4px 20px rgba(240, 165, 0, 0.3); }
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-3px); box-shadow: 0 6px 30px rgba(240, 165, 0, 0.4); }

.youtube-subscribe-container { display: inline-flex; align-items: center; position: relative; }
.youtube-subscribe-container .g-ytsubscribe { position: absolute !important; opacity: 0 !important; pointer-events: none !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.youtube-subscribe-container .g-ytsubscribe iframe { width: 1px !important; height: 1px !important; min-width: 1px !important; }
.youtube-subscribe-container .btn { transition: all 0.3s ease; pointer-events: auto; }
.btn.subscribed { background: rgba(0, 200, 83, 0.15) !important; border: 1px solid rgba(0, 200, 83, 0.3) !important; color: #00c853 !important; background-image: none !important; }
.btn.subscribed i { color: #00c853; }
.btn.subscribed:hover { background: rgba(0, 200, 83, 0.25) !important; transform: translateY(-2px); }
.subscribe-toast { position: fixed; bottom: 30px; right: 30px; background: var(--accent, #f0a500); color: #000; padding: 16px 28px; border-radius: 12px; font-family: 'Tajawal', sans-serif; font-weight: 700; font-size: 15px; z-index: 9999; box-shadow: 0 10px 40px rgba(240, 165, 0, 0.3); direction: rtl; }
@media (max-width: 480px) { .subscribe-toast { right: 16px; left: 16px; text-align: center; } }

.loading-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.loading-spinner { width: 50px; height: 50px; border: 3px solid var(--border); border-top: 3px solid var(--accent); border-radius: var(--radius-full); animation: spin 1s linear infinite; margin: 0 auto 20px; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state i { font-size: 60px; color: var(--accent); margin-bottom: 20px; }
.empty-state h3 { font-size: 20px; color: var(--text-primary); margin-bottom: 10px; }

@media (max-width: 992px) {
    .video-card { width: 300px; }
    .video-grid { gap: 20px; padding: 8px 4px 16px; }
    .video-scroll-arrow { width: 32px; height: 50px; font-size: 15px; border-radius: 8px; }
    .about-content { grid-template-columns: 1fr; gap: 40px; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr 1fr; }
    .hero-stats { gap: 30px; }
}

@media (max-width: 768px) {
    :root { --header-height: 70px; }
    .header { height: var(--header-height); }
    .header-inner { height: var(--header-height); }
    .nav { position: fixed; top: var(--header-height); left: 0; right: 0; background: rgba(10, 10, 10, 0.98); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); padding: 20px; transform: translateY(-100%); opacity: 0; visibility: hidden; transition: var(--transition); }
    .nav.active { transform: translateY(0); opacity: 1; visibility: visible; }
    .nav-list { flex-direction: column; gap: 5px; }
    .nav-link { display: block; padding: 12px 20px; font-size: 16px; }
    .menu-toggle { display: flex; }
    .hero { min-height: 90vh; }
    .hero-stats { flex-wrap: wrap; gap: 20px; }
    .stat-number { font-size: 28px; }
    .video-card { width: 250px; }
    .video-grid { gap: 16px; padding: 6px 0 14px; scroll-snap-type: x mandatory; }
    .video-scroll-arrow { width: 28px; height: 42px; font-size: 13px; border-radius: 7px; }
    .video-scroll-arrow.prev { left: -2px; }
    .video-scroll-arrow.next { right: -2px; }
    .video-grid::-webkit-scrollbar { height: 3px; }
    .video-grid::-webkit-scrollbar-track { margin: 0 20px; }
    .section { padding: 60px 0; }
    .section-header { margin-bottom: 40px; }
    .categories-grid { grid-template-columns: 1fr 1fr; }
    .category-card { padding: 25px 20px; }
    .footer-content { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
    .modal { padding: 10px; }
    .modal-content { border-radius: var(--radius-md); }
    .modal-header { padding: 15px; }
    .modal-title { font-size: 16px; }
    .about-features { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .categories-grid { grid-template-columns: 1fr; }
    .stat-number { font-size: 24px; }
    .video-card { width: 230px; max-width: 78vw; }
    .video-grid { gap: 12px; padding: 4px 0 10px; }
    .video-scroll-arrow { width: 24px; height: 36px; font-size: 11px; border-radius: 6px; }
    .video-scroll-arrow.prev { left: -3px; }
    .video-scroll-arrow.next { right: -3px; }
    .video-grid::-webkit-scrollbar { height: 3px; }
    .video-grid::-webkit-scrollbar-track { margin: 0 14px; }
}

#live { background: var(--bg-primary); overflow: hidden; }
.live-tv { max-width: 800px; margin: 0 auto; position: relative; }
.tv-bezel { background: linear-gradient(145deg, #1a1a1a, #0d0d0d); border-radius: 20px; padding: 15px; border: 1px solid #2a2a2a; box-shadow: 0 20px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05); position: relative; }
.tv-bezel::before { content: ''; position: absolute; inset: -1px; border-radius: 21px; padding: 1px; background: linear-gradient(135deg, #f0a500, #ff8c00, #f0a500); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0.3; pointer-events: none; }
.tv-screen { position: relative; aspect-ratio: 16/9; background: #000; border-radius: 10px; overflow: hidden; box-shadow: inset 0 0 30px rgba(0,0,0,0.8); }
.tv-screen iframe, .tv-screen > div { width: 100%; height: 100%; border: none; position: relative; z-index: 1; }
.live-tv.offline .tv-stand { display: none; }
.tv-offline-card { display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 50px 30px; background: radial-gradient(ellipse at center, #111, #000); border-radius: 10px; position: absolute; top: 15px; left: 15px; right: 15px; bottom: 63px; z-index: 2; }
.live-tv.offline .tv-offline-card { display: flex; }
.tv-offline-icon { width: 100px; height: 100px; border-radius: var(--radius-full); background: rgba(240,165,0,0.1); border: 2px solid rgba(240,165,0,0.2); display: flex; align-items: center; justify-content: center; margin-bottom: 25px; animation: pulse-signal 2s ease-in-out infinite; }
.tv-offline-icon i { font-size: 40px; color: var(--accent); }
@keyframes pulse-signal { 0%, 100% { transform: scale(1); opacity: 0.7; } 50% { transform: scale(1.05); opacity: 1; } }
.tv-offline-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; color: var(--text-primary); }
.tv-offline-card p { font-size: 15px; color: var(--text-muted); max-width: 400px; line-height: 1.7; }
.tv-controls { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px 5px; }
.tv-brand { font-size: 16px; font-weight: 300; color: var(--text-secondary); letter-spacing: 1px; }
.tv-brand span { color: var(--accent); font-weight: 900; }
.tv-indicators { display: flex; align-items: center; gap: 15px; }
.live-indicator { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--text-muted); padding: 5px 14px; border-radius: var(--radius-full); background: rgba(255,255,255,0.03); border: 1px solid var(--border); transition: var(--transition); }
.live-indicator.active { color: #ff4444; border-color: rgba(255,68,68,0.3); background: rgba(255,68,68,0.1); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #666; transition: var(--transition); }
.live-indicator.active .live-dot { background: #ff4444; box-shadow: 0 0 10px rgba(255,68,68,0.5); animation: live-pulse 1.5s ease-in-out infinite; }
@keyframes live-pulse { 0%, 100% { box-shadow: 0 0 10px rgba(255,68,68,0.5); } 50% { box-shadow: 0 0 20px rgba(255,68,68,0.8); } }
.tv-stand { display: flex; justify-content: center; margin-top: -2px; }
.tv-stand-base { width: 160px; height: 20px; background: linear-gradient(180deg, #1a1a1a, #0d0d0d); border-radius: 0 0 12px 12px; border: 1px solid #2a2a2a; border-top: none; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
.tv-stand-base::before { content: ''; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); width: 4px; height: 12px; background: linear-gradient(180deg, #0d0d0d, #1a1a1a); border-radius: 2px 2px 0 0; }

@media (max-width: 992px) {
    .live-tv { max-width: 100%; }
    .tv-bezel { padding: 12px; border-radius: 16px; }
    .tv-bezel::before { border-radius: 17px; }
    .tv-screen { border-radius: 8px; }
    .tv-controls { padding: 12px 15px 3px; }
    .tv-brand { font-size: 14px; }
    .tv-stand-base { width: 130px; height: 16px; }
    .tv-stand-base::before { top: -10px; height: 10px; }
    .tv-offline-card { top: 12px; left: 12px; right: 12px; bottom: 50px; padding: 35px 20px; border-radius: 8px; }
    .tv-offline-icon { width: 80px; height: 80px; margin-bottom: 20px; }
    .tv-offline-icon i { font-size: 32px; }
    .tv-offline-card h3 { font-size: 19px; }
    .tv-offline-card p { font-size: 14px; max-width: 320px; }
    .live-indicator { font-size: 11px; padding: 4px 10px; }
}

@media (max-width: 768px) {
    .tv-bezel { padding: 8px; border-radius: 12px; }
    .tv-bezel::before { border-radius: 13px; }
    .tv-screen { border-radius: 6px; }
    .tv-controls { padding: 10px 12px 2px; }
    .tv-brand { font-size: 13px; letter-spacing: 0.5px; }
    .tv-indicators { gap: 8px; }
    .live-indicator { font-size: 10px; padding: 3px 8px; }
    .tv-stand-base { width: 100px; height: 12px; border-radius: 0 0 8px 8px; }
    .tv-stand-base::before { top: -8px; height: 8px; width: 3px; }
    .tv-offline-card { top: 8px; left: 8px; right: 8px; bottom: 42px; padding: 25px 15px; border-radius: 6px; }
    .tv-offline-icon { width: 64px; height: 64px; margin-bottom: 16px; }
    .tv-offline-icon i { font-size: 26px; }
    .tv-offline-card h3 { font-size: 17px; margin-bottom: 8px; }
    .tv-offline-card p { font-size: 13px; max-width: 260px; line-height: 1.6; }
}

@media (max-width: 480px) {
    .tv-bezel { padding: 6px; border-radius: 10px; }
    .tv-bezel::before { border-radius: 11px; }
    .tv-screen { border-radius: 5px; }
    .tv-controls { padding: 8px 8px 2px; }
    .tv-brand { font-size: 11px; }
    .tv-stand-base { width: 80px; height: 10px; border-radius: 0 0 6px 6px; }
    .tv-stand-base::before { top: -6px; height: 6px; width: 2px; }
    .tv-offline-card { top: 6px; left: 6px; right: 6px; bottom: 35px; padding: 20px 12px; border-radius: 5px; }
    .tv-offline-icon { width: 50px; height: 50px; margin-bottom: 12px; }
    .tv-offline-icon i { font-size: 22px; }
    .tv-offline-card h3 { font-size: 15px; margin-bottom: 6px; }
    .tv-offline-card p { font-size: 12px; max-width: 220px; line-height: 1.5; }
    .tv-offline-card .btn-sm { padding: 6px 14px; font-size: 11px; }
}