:root {
    --bg-color: #05050a;
    --panel-bg: rgba(20, 20, 30, 0.45);
    --panel-border: rgba(255, 255, 255, 0.08);
    --panel-inner-glow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #6366f1;
    --accent-hover: #4f46e5;
    --accent-glow: rgba(99, 102, 241, 0.6);
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #f43f5e;
    --font-family: 'Inter', -apple-system, sans-serif;
    --glass-shadow: 0 24px 40px -10px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15), transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.1), transparent 50%);
    background-attachment: fixed;
}

.background-effects {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    animation: float 25s infinite alternate ease-in-out;
}
.orb-1 { top: -10%; left: -10%; background: #4f46e5; }
.orb-2 { bottom: -15%; right: -5%; background: #ec4899; animation-delay: -12s; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(80px, 80px) scale(1.1); }
}

.app-container {
    width: 100%;
    max-width: 900px;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    gap: 36px;
    z-index: 1;
}

.header {
    text-align: center;
    animation: fadeInDown 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.header h1 {
    font-size: 3.8rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 12px;
    color: #fff;
}
.header .highlight {
    background: linear-gradient(135deg, #a855f7, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none; /* remove flat shadow for gradient */
    position: relative;
}
.header .highlight::after {
    content: 'Downloader';
    position: absolute;
    left: 0; top: 0; z-index: -1;
    background: inherit;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: blur(25px);
    opacity: 0.6;
}
.header p { color: var(--text-secondary); font-size: 1.15rem; font-weight: 400; }

.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--panel-border);
    box-shadow: var(--panel-inner-glow), var(--glass-shadow);
    border-radius: 24px;
    padding: 28px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}
.glass-panel:hover {
    box-shadow: var(--panel-inner-glow), 0 30px 60px -12px rgba(0, 0, 0, 0.8), 0 0 30px rgba(99, 102, 241, 0.1);
}

.input-group {
    display: flex;
    gap: 16px;
}
input[type="url"], input[type="text"], .small-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 18px 24px;
    font-size: 1.05rem;
    color: white;
    font-family: var(--font-family);
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.3);
}
input[type="url"]:focus, input[type="text"]:focus, .small-input:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.6);
    border-color: var(--accent-color);
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.3), 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.btn-primary, .btn-secondary {
    color: white;
    border: none;
    border-radius: 16px;
    padding: 16px 32px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(99, 102, 241, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.hidden { display: none !important; }

/* Loader */
.loader {
    width: 22px; height: 22px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s infinite linear;
}
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* Results */
.results-section { animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.results-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.results-header h2 { font-size: 1.6rem; font-weight: 700; color: #fff; }
.actions { display: flex; gap: 12px; }

.small-input { padding: 12px 16px; font-size: 0.95rem; border-radius: 14px; height: 50px; }
.btn-secondary { padding: 12px 24px; height: 50px; border-radius: 14px; min-width: unset; }

.episodes-list { display: flex; flex-direction: column; gap: 16px; }

.episode-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
}
/* Shimmer effect for card hover */
.episode-card::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transform: skewX(-20deg); transition: 0.5s; z-index: 0;
}
.episode-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3), 0 0 20px rgba(99, 102, 241, 0.1);
}
.episode-card:hover::before { left: 150%; }

.ep-top-row { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.ep-title { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; color: #fff; }

.ep-status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    background: rgba(255,255,255,0.08);
    color: var(--text-secondary);
    border: 1px solid rgba(255,255,255,0.05);
}
.ep-status-badge.downloading {
    background: rgba(99, 102, 241, 0.15); color: #a5b4fc;
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
    animation: pulse-glow 2s infinite alternate;
}
@keyframes pulse-glow {
    0% { box-shadow: 0 0 5px rgba(99, 102, 241, 0.2); }
    100% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.6); }
}

.ep-status-badge.extracting { background: rgba(245, 158, 11, 0.15); color: #fcd34d; border-color: rgba(245, 158, 11, 0.4); }
.ep-status-badge.completed { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; border-color: rgba(16, 185, 129, 0.4); }
.ep-status-badge.error { background: rgba(244, 63, 94, 0.15); color: #fda4af; border-color: rgba(244, 63, 94, 0.4); }

.ep-progress-container {
    height: 10px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
    z-index: 1;
}
.ep-progress-bar {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    width: 0%;
    transition: width 0.4s ease;
    box-shadow: 0 0 15px var(--accent-glow);
}

.ep-details {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.9rem; color: var(--text-secondary); position: relative; z-index: 1;
}

/* Metadata Section */
.metadata-section { display: flex; gap: 24px; align-items: flex-start; }
.meta-poster {
    width: 140px; border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    object-fit: cover;
}
.meta-info h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 10px; color: #fff; letter-spacing: -0.02em; }
.meta-info p { color: var(--text-secondary); line-height: 1.6; font-size: 1rem; }

/* History controls in input section */
.history-controls { margin-top: 16px; text-align: right; }
.btn-text-only { background: none; border: none; color: var(--text-secondary); cursor: pointer; font-size: 0.95rem; font-weight: 600; transition: color 0.3s; display: inline-flex; align-items: center; gap: 8px;}
.btn-text-only:hover { color: #fff; }

/* Action Buttons */
.ep-actions { display: flex; gap: 10px; }
.action-btn {
    width: 36px; height: 36px;
    border-radius: 10px; border: none; color: white;
    cursor: pointer; display: flex; justify-content: center; align-items: center;
    font-size: 1rem; transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.action-btn.play { background: rgba(99, 102, 241, 0.2); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.3); }
.action-btn.play:hover { background: #6366f1; color: white; transform: translateY(-2px); box-shadow: 0 8px 15px rgba(99, 102, 241, 0.4); }
.action-btn.pause { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.action-btn.pause:hover { background: #f59e0b; color: white; transform: translateY(-2px); }
.action-btn.cancel { background: rgba(244, 63, 94, 0.2); color: #fda4af; border: 1px solid rgba(244, 63, 94, 0.3); }
.action-btn.cancel:hover { background: #f43f5e; color: white; transform: translateY(-2px); }
.success-icon { color: #10b981; font-size: 1.4rem; filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.5)); }

/* Stats */
.stats-text { font-size: 0.85rem; color: #94a3b8; display: flex; align-items: center; }

/* Toasts */
.toast-container { position: fixed; top: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 16px; }
.toast {
    background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.08); color: white;
    padding: 16px 24px; border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    animation: fadeInRight 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    border-left: 4px solid var(--accent-color);
}
.toast-success { border-left-color: var(--success-color); }
.toast-error { border-left-color: var(--error-color); }

@keyframes fadeInRight { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeOutRight { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(50px); } }

/* History Sidebar */
.history-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); z-index: 100;
}
.history-sidebar {
    position: fixed; top: 0; right: -450px; width: 450px; height: 100vh;
    background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(24px);
    border-left: 1px solid rgba(255,255,255,0.08);
    z-index: 101; padding: 32px; transition: right 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); overflow-y: auto;
}
.history-sidebar.open { right: 0; box-shadow: -20px 0 50px rgba(0,0,0,0.5); }
.history-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.history-header h2 { font-size: 1.6rem; font-weight: 700; color: #fff; }
.history-header button { background: none; border: none; color: var(--text-secondary); font-size: 1.5rem; cursor: pointer; transition: color 0.3s; }
.history-header button:hover { color: #fff; }

.history-item {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05);
    padding: 20px; border-radius: 16px; margin-bottom: 16px; transition: background 0.3s;
}
.history-item:hover { background: rgba(255,255,255,0.05); }
.history-title { font-weight: 700; font-size: 1.1rem; margin-bottom: 6px; color: #fff; }
.history-meta { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 12px; }
.history-meta a { color: var(--accent-color); text-decoration: none; font-weight: 600; }
.history-eps { display: flex; flex-wrap: wrap; gap: 8px; }
.history-ep { font-size: 0.75rem; padding: 4px 8px; border-radius: 6px; background: rgba(255,255,255,0.05); font-weight: 600; }
.history-ep.comp { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.2); }
.history-ep.inc { background: rgba(244,63,94,0.15); color: #fda4af; border: 1px solid rgba(244,63,94,0.2); }
.loader-centered { display: flex; justify-content: center; padding: 50px; }

/* Quality Pills */
.quality-pills {
    display: flex; gap: 8px; align-items: center;
    background: rgba(0, 0, 0, 0.4); padding: 6px; border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.quality-pill {
    background: transparent; border: none; color: var(--text-secondary);
    padding: 10px 18px; border-radius: 14px; font-size: 0.95rem; font-weight: 600;
    cursor: pointer; transition: all 0.3s ease; position: relative; overflow: hidden;
}
.quality-pill:hover { color: white; background: rgba(255, 255, 255, 0.05); }
.quality-pill.active {
    background: linear-gradient(135deg, #6366f1, #a855f7); color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4); transform: translateY(-2px);
}

/* Search Results Grid */
.search-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 20px; margin-top: 24px; }
.search-card {
    background: rgba(20, 20, 20, 0.6); border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px; overflow: hidden; cursor: pointer; transition: all 0.3s ease;
    display: flex; flex-direction: column;
}
.search-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
}
.search-card img { width: 100%; height: 190px; object-fit: cover; }
.search-card h3 {
    font-size: 0.95rem; font-weight: 600; padding: 12px; text-align: center; margin: 0;
    color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Video Modal */
.video-modal {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.9); z-index: 1000;
    display: flex; justify-content: center; align-items: center;
    backdrop-filter: blur(10px);
}
.video-modal.hidden { display: none; }
.video-modal-content {
    width: 90%; max-width: 1000px; position: relative; border-radius: 20px;
    background: #000; padding: 0; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255,255,255,0.1);
}
.video-modal video { width: 100%; border-radius: 20px; outline: none; }
.close-video-btn {
    position: absolute; top: 24px; right: 24px;
    background: rgba(15, 15, 15, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15); 
    color: rgba(255, 255, 255, 0.8);
    width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
    font-size: 1.1rem; z-index: 200; display: flex; justify-content: center; align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4); 
    transition: all 0.3s ease;
}
.close-video-btn:hover { 
    background: rgba(225, 29, 72, 0.8); 
    color: white;
    transform: scale(1.1); 
    border-color: rgba(255, 255, 255, 0.3);
}
/* Watch Party Enhancements */
.video-modal-content.party-layout {
    display: flex;
    padding: 0;
    gap: 0;
    transition: max-width 0.3s ease, height 0.3s ease;
    /* Netflix Style Cinema Mode */
    width: 95vw;
    max-width: 1800px;
    height: 92vh;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 30px 60px rgba(0,0,0,1);
    background: #000;
    border-radius: 12px;
}

.party-layout.chat-active {
    max-width: 1800px;
}

.party-left {
    flex: 1; /* stretches to fill initially */
    position: relative;
    background: #000;
    display: flex;
    flex-direction: column;
}
.party-layout.chat-active .party-left {
    border-radius: 12px 0 0 12px;
}

.video-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center; /* Center horizontally/vertically */
    justify-content: center;
    background: #000;
    /* Native controls usually take ~50-60px. Padding ensures they don't get cut off when flexed. */
    padding-bottom: 60px;
    overflow: hidden;
}

#stream-player {
    width: 100%;
    /* Let the video determine its height based on the available width, up to 100% of its containing block height minus padding */
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    outline: none;
}

.floating-party-btn {
    position: absolute;
    top: 24px;
    left: 24px;
    right: auto;
    bottom: auto;
    background: rgba(15, 15, 15, 0.6);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.floating-party-btn:hover {
    transform: scale(1.05);
    background: rgba(16, 185, 129, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
}

.exit-party-btn {
    top: 24px;
    bottom: auto !important;
    right: auto;
    left: 24px;
    background: rgba(15, 15, 15, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.exit-party-btn:hover {
    background: rgba(220, 38, 38, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.floating-party-btn.hidden {
    display: none;
}

.party-wait-overlay {
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.08) 0%, rgba(5,5,10,0.92) 70%);
    flex-direction: column;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    backdrop-filter: blur(12px);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.party-wait-overlay.hidden {
    display: none;
}

.spinner-glow {
    width: 70px; height: 70px;
    border: 3px solid rgba(255,255,255,0.06);
    border-top: 3px solid var(--accent-color);
    border-right: 3px solid rgba(168, 85, 247, 0.5);
    border-radius: 50%;
    animation: spin 1s linear infinite, drop-glow 2s infinite alternate;
    margin-bottom: 24px;
}
@keyframes drop-glow {
    0% { box-shadow: 0 0 10px var(--accent-color), 0 0 20px rgba(168, 85, 247, 0.2); }
    100% { box-shadow: 0 0 25px var(--accent-color), 0 0 50px rgba(168, 85, 247, 0.3); }
}

.wait-text {
    font-size: 1.8rem;
    color: white;
    margin: 0;
    font-weight: 700;
    text-shadow: 0 2px 20px rgba(99, 102, 241, 0.3);
    letter-spacing: -0.02em;
}
.wait-subtext {
    color: rgba(148, 163, 184, 0.8);
    font-size: 0.95rem;
    margin-top: 8px;
    font-weight: 400;
}

/* ===== CHAT PANEL ===== */
.party-right {
    width: 360px;
    min-width: 360px;
    background: linear-gradient(180deg, rgba(15, 15, 30, 0.85) 0%, rgba(10, 10, 20, 0.95) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    display: none;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0,0,0,0.5), inset 1px 0 0 rgba(255,255,255,0.03);
    z-index: 2;
    border-radius: 0 20px 20px 0;
    position: relative;
    overflow: hidden;
}
/* Ambient glow effect at top of chat */
.party-right::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}
.party-layout.chat-active .party-right {
    display: flex;
}

.chat-header {
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* ===== SPLASH SCREEN ===== */
.splash-screen {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(ellipse at center, rgba(20, 20, 40, 1) 0%, #05050a 70%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.splash-content {
    text-align: center;
}
.splash-logo {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
    animation: splash-pulse 2s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}
.splash-logo i {
    font-size: 2.5rem;
    color: #a78bfa;
}
@keyframes splash-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 30px rgba(99, 102, 241, 0.3); }
    50% { transform: scale(1.08); box-shadow: 0 0 50px rgba(99, 102, 241, 0.5); }
}
.splash-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}
.splash-title span {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.splash-loader {
    width: 200px;
    height: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    overflow: hidden;
    margin: 0 auto 16px auto;
}
.splash-bar {
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #a855f7, #6366f1);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: splash-slide 1.5s ease-in-out infinite;
}
@keyframes splash-slide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}
.splash-text {
    color: rgba(148, 163, 184, 0.6);
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}

/* ===== SUBTITLE BUTTON ===== */
.subtitle-btn {
    top: 24px !important;
    bottom: auto !important;
    right: 80px !important;
    left: auto !important;
    background: rgba(15, 15, 15, 0.6);
    border-color: rgba(255, 255, 255, 0.15);
}
.subtitle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}
.subtitle-btn.active {
    background: rgba(139, 92, 246, 0.8);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.chat-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f8fafc;
    letter-spacing: -0.01em;
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #ef4444;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.party-users-count {
    font-size: 0.7rem;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    letter-spacing: 0.3px;
}

/* ===== LINK BAR ===== */
.party-link-bar {
    display: flex;
    margin: 12px 16px;
    background: rgba(0,0,0,0.35);
    border-radius: 10px;
    border: 1px solid rgba(99, 102, 241, 0.15);
    overflow: hidden;
    position: relative;
    z-index: 1;
    transition: border-color 0.3s;
}
.party-link-bar:hover {
    border-color: rgba(99, 102, 241, 0.35);
}
.party-link-bar.hidden { display: none; }
.party-link-bar input {
    flex: 1; background: transparent; border: none;
    color: rgba(168, 178, 209, 0.9); padding: 10px 14px; outline: none; font-size: 0.78rem;
    font-family: 'Inter', monospace;
    letter-spacing: 0.2px;
}
.party-link-bar button {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
    color: #a78bfa; 
    border: none; 
    border-left: 1px solid rgba(255,255,255,0.06);
    padding: 0 16px; 
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}
.party-link-bar button:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(168, 85, 247, 0.3));
    color: #fff;
}

/* ===== CHAT MESSAGES ===== */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    background: transparent;
    gap: 10px;
    position: relative;
    z-index: 1;
}

/* Custom scrollbar for chat */
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 10px; }
.chat-messages::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

.chat-msg {
    max-width: 85%;
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 10px 14px;
    border-radius: 4px 14px 14px 14px;
    font-size: 0.88rem;
    color: #e2e8f0;
    word-break: break-word;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    animation: slideIn 0.3s ease-out;
    line-height: 1.45;
}
@keyframes slideIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-msg.me {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.18));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 14px 4px 14px 14px;
}

.chat-msg.system {
    align-self: center; 
    background: rgba(99, 102, 241, 0.08); 
    border: 1px solid rgba(99, 102, 241, 0.1);
    padding: 6px 16px; 
    border-radius: 20px;
    max-width: 100%;
    text-align: center; 
    color: rgba(148, 163, 184, 0.8); 
    font-size: 0.72rem; 
    font-weight: 500;
    letter-spacing: 0.2px;
}

.chat-msg .author {
    display: block; 
    font-size: 0.7rem; 
    color: rgba(148, 163, 184, 0.7); 
    margin-bottom: 3px; 
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.chat-msg.me .author {
    color: #a78bfa;
}

/* ===== CHAT FORM ===== */
.chat-form {
    padding: 14px 16px;
    background: rgba(0,0,0,0.25);
    display: flex;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    gap: 10px;
    position: relative;
    z-index: 1;
}
.chat-form input {
    background: rgba(255,255,255,0.04); 
    border: 1px solid rgba(255,255,255,0.08); 
    border-radius: 24px; 
    padding: 11px 18px; 
    width: 100%; 
    color: white;
    font-size: 0.88rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}
.chat-form input::placeholder {
    color: rgba(148, 163, 184, 0.4);
}
.chat-form input:focus {
    background: rgba(255,255,255,0.06);
    border-color: rgba(99, 102, 241, 0.4);
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.chat-submit {
    border-radius: 50%; 
    width: 42px; 
    height: 42px; 
    padding: 0 !important; 
    min-width: unset !important;
    flex-shrink: 0; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border: none;
    color: white;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
}
.chat-submit:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}
.chat-submit:active {
    transform: scale(0.95);
}

/* Guest Join Overlay */
#guest-join-overlay { backdrop-filter: blur(20px); }

/* ===== SEARCH HISTORY DROPDOWN ===== */
.search-history-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 20, 35, 0.97);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0 0 16px 16px;
    z-index: 50;
    overflow: hidden;
    animation: slideDown 0.2s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.sh-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sh-clear {
    background: none;
    border: none;
    color: var(--error-color);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: opacity 0.2s;
}
.sh-clear:hover { opacity: 0.7; }
.sh-list { max-height: 200px; overflow-y: auto; }
.sh-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
}
.sh-item:hover { background: rgba(99, 102, 241, 0.1); }
.sh-item i { color: var(--text-secondary); font-size: 0.8rem; }

/* ===== AUTO-NEXT EPISODE OVERLAY ===== */
.auto-next-overlay {
    position: absolute;
    bottom: 80px;
    right: 20px;
    z-index: 20;
    animation: slideInRight 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes slideInRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
.auto-next-card {
    background: rgba(10, 12, 25, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 20px 24px;
    text-align: center;
    min-width: 220px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}
.auto-next-card h3 { font-size: 1rem; margin-bottom: 6px; color: #fff; }
.auto-next-card p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 16px; }
.auto-next-timer {
    position: relative;
    width: 70px;
    height: 70px;
    margin: 0 auto 16px;
}
.countdown-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 2.5; }
.ring-progress {
    fill: none;
    stroke: var(--accent-color);
    stroke-width: 2.5;
    stroke-dasharray: 100;
    stroke-dashoffset: 0;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
}
.countdown-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
}
.auto-next-actions { display: flex; gap: 10px; justify-content: center; }

/* ===== KEYBOARD SHORTCUTS HINT ===== */
.kb-hint {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    z-index: 15;
    white-space: nowrap;
    animation: fadeInUp 0.3s ease;
    pointer-events: none;
    border: 1px solid rgba(255,255,255,0.08);
}
.kb-key {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: monospace;
    min-width: 28px;
    text-align: center;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .app-container {
        padding: 30px 12px;
        gap: 20px;
    }
    .header h1 {
        font-size: 2.2rem;
    }
    .header p {
        font-size: 0.9rem;
    }
    .glass-panel {
        padding: 16px;
        border-radius: 16px;
    }
    .input-group {
        flex-direction: column;
        gap: 10px;
    }
    .input-group .btn-primary {
        width: 100%;
        justify-content: center;
    }
    .results-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    .actions {
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }
    .small-input {
        width: 100%;
        min-width: unset;
    }
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    .quality-pills {
        flex-wrap: wrap;
    }
    .episode-card {
        padding: 16px;
        border-radius: 14px;
    }
    .ep-top-row {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    .ep-details {
        flex-direction: column;
        gap: 8px;
    }
    .ep-actions {
        width: 100%;
        display: flex;
        gap: 8px;
    }
    .ep-actions .action-btn {
        flex: 1;
        justify-content: center;
    }
    .search-results {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 12px;
    }
    .search-card img {
        height: 140px;
    }
    .search-card h3 {
        font-size: 0.8rem;
        padding: 8px;
    }
    /* Metadata mobile */
    .metadata-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .meta-poster {
        width: 120px;
    }

    /* Video modal mobile */
    .video-modal-content.party-layout {
        flex-direction: column;
        width: 100vw;
        height: 100vh;
        border-radius: 0;
        max-width: 100%;
    }
    .party-layout.chat-active {
        max-width: 100%;
    }
    .party-left {
        flex: none;
        height: 45vh;
        border-radius: 0 !important;
    }
    .party-right {
        border-radius: 0 !important;
        height: 55vh;
    }
    .close-video-btn {
        top: 8px;
        right: 8px;
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    .floating-party-btn {
        font-size: 0.85rem;
        padding: 10px 16px;
    }
    .auto-next-overlay {
        bottom: 60px;
        right: 10px;
        left: 10px;
    }
    .auto-next-card {
        min-width: unset;
    }
    .kb-hint {
        display: none !important;
    }
    /* Toast mobile */
    .toast-container {
        top: 12px;
        right: 12px;
        left: 12px;
    }
    .toast {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    .glow-orb {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 400px) {
    .header h1 { font-size: 1.8rem; }
    .app-container { padding: 20px 8px; }
}

/* ===== PRIORITY A: THEME TOGGLE ===== */
.header-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
}
.theme-toggle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-secondary);
    width: 42px; height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}
.theme-toggle:hover {
    background: rgba(99, 102, 241, 0.15);
    color: #a78bfa;
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-50%) scale(1.08);
}

/* Light Theme */
body.light-theme {
    --bg-color: #f0f2f5;
    --panel-bg: rgba(255, 255, 255, 0.7);
    --panel-border: rgba(0, 0, 0, 0.08);
    --text-primary: #1a1a2e;
    --text-secondary: #64748b;
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.08), transparent 60%),
        radial-gradient(circle at 100% 100%, rgba(168, 85, 247, 0.06), transparent 50%);
}
body.light-theme .glass-panel {
    background: var(--panel-bg);
    border-color: var(--panel-border);
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}
body.light-theme input[type="text"],
body.light-theme input[type="url"] {
    background: rgba(0,0,0,0.03);
    color: var(--text-primary);
    border-color: rgba(0,0,0,0.1);
}
body.light-theme input::placeholder { color: rgba(0,0,0,0.35); }
body.light-theme .episode-card {
    background: rgba(0,0,0,0.02);
    border-color: rgba(0,0,0,0.06);
}
body.light-theme .glow-orb { opacity: 0.3; }
body.light-theme .theme-toggle i::before { content: "\f185"; } /* sun icon */
body.light-theme .search-history-dropdown {
    background: rgba(255,255,255,0.97);
    border-color: rgba(0,0,0,0.08);
}
body.light-theme .sh-item { color: var(--text-primary); }
body.light-theme .sh-item:hover { background: rgba(99, 102, 241, 0.08); }

/* ===== PRIORITY A: CONTINUE WATCHING ===== */
.continue-watching-section,
.favorites-section {
    margin-bottom: 1.5rem;
}
.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-title i {
    color: var(--accent-color);
    font-size: 1rem;
}
.continue-watching-list,
.favorites-list {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
.continue-watching-list::-webkit-scrollbar,
.favorites-list::-webkit-scrollbar { height: 4px; }
.continue-watching-list::-webkit-scrollbar-thumb,
.favorites-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }

/* Continue Watching Card */
.cw-card {
    flex-shrink: 0;
    width: 200px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}
.cw-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    border-color: rgba(99, 102, 241, 0.3);
}
.cw-card img {
    width: 100%;
    height: 110px;
    object-fit: cover;
}
.cw-card .cw-info {
    padding: 10px 12px;
}
.cw-card .cw-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}
.cw-card .cw-episode {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.cw-card .cw-progress-bar {
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    overflow: hidden;
}
.cw-card .cw-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), #a855f7);
    border-radius: 3px;
    transition: width 0.3s;
}
.cw-card .cw-play-icon {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px; height: 36px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    color: white;
    font-size: 0.9rem;
}
.cw-card:hover .cw-play-icon { opacity: 1; }
.cw-card .cw-remove {
    position: absolute;
    top: 6px; right: 6px;
    width: 24px; height: 24px;
    background: rgba(0,0,0,0.5);
    border: none;
    border-radius: 50%;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    font-size: 0.6rem;
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: all 0.2s;
}
.cw-card:hover .cw-remove { opacity: 1; }
.cw-card .cw-remove:hover { background: rgba(239, 68, 68, 0.8); color: white; }

/* Favorites Card */
.fav-card {
    flex-shrink: 0;
    width: 140px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}
.fav-card:hover {
    transform: translateY(-4px) scale(1.02);
}
.fav-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--panel-border);
    transition: border-color 0.3s;
}
.fav-card:hover img {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}
.fav-card h3 {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fav-card .fav-remove {
    position: absolute;
    top: 6px; right: 6px;
    width: 26px; height: 26px;
    background: rgba(0,0,0,0.6);
    border: none; border-radius: 50%;
    color: #ef4444;
    cursor: pointer;
    font-size: 0.7rem;
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: all 0.2s;
}
.fav-card:hover .fav-remove { opacity: 1; }
.fav-card .fav-remove:hover { background: rgba(239, 68, 68, 0.9); color: white; }

/* Add to Favorites Button (in metadata section) */
.fav-btn {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    margin-top: 10px;
}
.fav-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}
.fav-btn.favorited {
    background: rgba(239, 68, 68, 0.85);
    color: white;
    border-color: transparent;
}

/* Resume Badge on Video Player */
.resume-badge {
    position: absolute;
    bottom: 80px;
    left: 20px;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px 16px;
    border-radius: 10px;
    color: white;
    font-size: 0.85rem;
    z-index: 15;
    display: flex; align-items: center; gap: 10px;
    animation: slideInRight 0.4s ease;
    cursor: pointer;
    transition: all 0.3s;
}
.resume-badge:hover {
    background: rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.4);
}
.resume-badge .resume-time {
    font-weight: 700;
    color: var(--accent-color);
}

/* ===== FOOTER ===== */
.site-footer {
    text-align: center;
    padding: 30px 0;
    margin-top: auto; /* Pushes it to the bottom if container has min-height */
    width: 100%;
}
.footer-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}
.footer-content strong {
    color: var(--text-primary);
    font-weight: 600;
}
