/*
Theme Name: KINOVAST AI SUITE
Author: KINOVAST.COM
Version: 1.0.0
Description: All-in-one AI media workspace, subtitle translation, voice studio, book reader, horoscope and productivity tools suite.
*/

:root {
    --primary-color: #e50914;
    --primary-hover: #b20710;
    --bg-color: #141414;
    --surface-color: #181818;
    --text-color: #ffffff;
    --text-muted: #b3b3b3;
    --border-color: #404040;
    --container-width: 1400px;
    --header-height: 70px;
    --font-main: 'Inter',
        sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.movie-card,
.sidebar-widget,
.hero-content {
    animation: slideUpFade 0.6s ease-out forwards;
}

/* Stagger Attempt (Optional, simplistic) */
.movie-card:nth-child(1) {
    animation-delay: 0.1s;
}

.movie-card:nth-child(2) {
    animation-delay: 0.15s;
}

.movie-card:nth-child(3) {
    animation-delay: 0.2s;
}

.movie-card:nth-child(4) {
    animation-delay: 0.25s;
}

.movie-card:nth-child(5) {
    animation-delay: 0.3s;
}

.movie-card:nth-child(n+6) {
    animation-delay: 0.35s;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background-color: #000000;
    /* Pure Black */
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.site-logo a {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.logo-text .highlight {
    color: var(--primary-color);
}

.main-navigation {
    flex-grow: 1;
    margin-left: 120px;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
    margin: 0;
    padding: 0;
    width: 100%;
}

/* User Profile Enhancements */
.oio-profile-cover {
    width: 100%;
    height: 300px;
    position: relative;
    border-radius: 12px 12px 0 0;
    margin-bottom: -60px;
    /* Pull header up */
    overflow: hidden;
    background-color: #222;
}

.oio-profile-cover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, transparent, var(--bg-main));
    pointer-events: none;
}

.oio-cover-edit-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(4px);
    transition: all 0.2s;
    z-index: 10;
}

.oio-cover-edit-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.5);
}

.oio-profile-bio p {
    margin-bottom: 0;
}

.oio-stat-block[title] {
    cursor: help;
}

.main-navigation .menu-item-upload {
    margin-left: 60px;
}

.main-navigation a {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

.highlight-link {
    color: #46d369 !important;
    /* Green for Sinhala Sub */
}

.nav-upload-btn {
    color: #f5c518 !important;
    /* Yellow/Orange */
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-upload-btn:hover {
    color: #fff !important;
}

/* ── BOOK READER nav button ── */
.nav-book-reader-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #00c9a7, #0099ff) !important;
    color: #fff !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.8px;
    padding: 5px 12px !important;
    border-radius: 20px !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 2px 12px rgba(0, 201, 167, 0.35);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
.nav-book-reader-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: rgba(255, 255, 255, 0.18);
    transform: skewX(-20deg);
    animation: oio-reader-shimmer 3s infinite;
}
@keyframes oio-reader-shimmer {
    0%   { left: -60%; }
    60%  { left: 130%; }
    100% { left: 130%; }
}
.nav-book-reader-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 201, 167, 0.55) !important;
    color: #fff !important;
}
.nav-book-reader-icon {
    font-size: 1.05em;
    line-height: 1;
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-search-toggle {
    cursor: pointer;
    font-size: 20px;
    color: #fff;
}

.user-profile {
    font-size: 14px;
    font-weight: 600;
}

/* Header Responsiveness */
/* Header Responsiveness - Squeeze before Switch */
@media screen and (max-width: 1450px) {
    .container {
        padding: 0 20px;
        max-width: 100%;
    }

    .main-navigation {
        margin-left: 30px;
        /* Massive reduction from 120px */
    }

    .main-navigation ul {
        gap: 15px;
        /* Reduce gap */
    }

    .main-navigation .menu-item-upload {
        margin-left: 20px;
        /* Reduce from 60px */
    }

    .main-navigation a {
        font-size: 13px;
    }
}

/* Header Responsiveness - ROBUST SWITCHER */
/* Header Responsiveness - Compact Intermediate (1200px) */
/* Header Responsiveness - Compact Intermediate (1200px -> 768px) */
@media screen and (max-width: 1200px) {
    .main-navigation {
        margin-left: 10px;
        /* Tight */
    }

    .main-navigation ul {
        gap: 8px;
        /* Very tight */
    }

    .main-navigation a {
        font-size: 11px;
        /* Smallest readable font */
        letter-spacing: 0;
    }

    .logo-text {
        font-size: 20px;
    }

    /* Shrink search bar to icon only or very small */
    .static-search-wrapper {
        min-width: 40px !important;
        width: 40px !important;
        /* Force icon only initially on tight screens if needed */
        transition: width 0.3s ease;
    }

    .static-search-wrapper:hover,
    .static-search-wrapper:focus-within {
        width: 200px !important;
        /* Expand on hover/focus */
    }

    .static-search-input {
        padding: 0 5px;
    }
}

/* Header Responsiveness - ROBUST SWITCHER (Mobile Only < 768px) */
@media screen and (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }

    /* Hide Desktop Navigation */
    .main-navigation {
        display: none !important;
    }

    /* Show Mobile Toggle */
    #mobile-menu-toggle {
        display: block !important;
    }

    /* Adjust Logo Size */
    .site-logo a {
        font-size: 20px;
    }

    /* Hide Search on Mobile */
    .static-search-wrapper,
    #mobile-search-toggle {
        display: none !important;
    }
}

/* Mobile Adjustments */
@media screen and (max-width: 768px) {
    .site-logo a {
        font-size: 20px;
    }

    .header-right {
        gap: 15px;
    }
}

/* Hero Slider Overrides */
.hero-slider {
    width: 100%;
    height: 85vh;
    /* Fixed height for consistency */
    position: relative;
    overflow: hidden;
}

.hero-slider .swiper-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    position: relative;
}

.hero-slider .hero-section {
    height: 100%;
    /* Ensure content fills slide */
    background: none;
    /* BG is on slide now */
}

/* Fix Hero Content Position in Slider */
.hero-slider .hero-content {
    position: relative;
    z-index: 20;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 100px;
    padding-bottom: 80px;
    /* Add space at bottom for pagination/overlap */
}


.login-link {
    color: #fff;
    text-transform: uppercase;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-name {
    color: var(--primary-color);
}

.logout-link {
    color: var(--text-muted);
}

.logout-link:hover {
    color: #fff;
}

/* Search Overlay */
.search-overlay {
    display: none;
    /* JS to toggle */
    position: fixed;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn:hover {
    transform: scale(1.05);
    color: #fff;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-secondary {
    background-color: rgba(109, 109, 110, 0.7);
    color: #fff;
}

/* Main Content Layout */
.main-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin-top: -60px;
    /* Reduced from -150px to prevent covering slider content */
    /* Overlap hero */
    position: relative;
    z-index: 10;
    padding-bottom: 50px;
}

/* Content Sections */
.content-section {
    margin-bottom: 50px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
}

.view-all {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

/* Movie Card */
.movie-card {
    transition: transform 0.3s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
}

.poster-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 2/3;
    background-color: #222;
}

.movie-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.movie-card:hover .card-overlay {
    opacity: 1;
}

.play-icon {
    font-size: 40px;
    color: #fff;
    background: var(--primary-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #46d369;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.movie-info {
    padding-top: 10px;
}

.movie-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

/* Sidebar */
.sidebar-widget {
    background-color: var(--surface-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.widget-list {
    list-style: none;
}

.widget-item {
    margin-bottom: 15px;
}

.widget-link {
    display: flex;
    gap: 15px;
    align-items: center;
}

.widget-thumb {
    width: 60px;
    height: 90px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

.widget-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.widget-info {
    flex-grow: 1;
}

.widget-post-title {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 5px;
    line-height: 1.3;
}

.widget-meta {
    font-size: 0.75rem;
    color: #e50914;
    /* Red */
    font-weight: 600;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Footer */
.site-footer {
    background-color: #000;
    padding: 50px 0;
    margin-top: 50px;
    color: var(--text-muted);
    text-align: center;
}

/* Single Movie Page Styles */
.single-movie-page {
    margin-top: -70px;
    /* Pull behind header */
}

.movie-backdrop {
    height: 60vh;
    background-size: cover;
    background-position: center top;
    position: relative;
}

.backdrop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(20, 20, 20, 0.3) 0%, rgba(20, 20, 20, 0.8) 60%, var(--bg-color) 100%);
}

.movie-content-wrapper {
    position: relative;
    z-index: 10;
    margin-top: -150px;
    /* Overlap backdrop */
}

.movie-header {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    align-items: flex-end;
}

.movie-poster-container {
    width: 300px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.movie-info-container {
    flex-grow: 1;
    padding-bottom: 20px;
}

.single-movie-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.single-movie-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.meta-badge {
    background-color: #f5c518;
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
}

.meta-item {
    font-size: 1.1rem;
    color: #ddd;
}

.meta-genres {
    display: flex;
    gap: 10px;
}

.genre-tag {
    border: 1px solid var(--text-muted);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #ddd;
}

.single-movie-plot {
    font-size: 1.1rem;
    color: #ccc;
    max-width: 800px;
    line-height: 1.7;
}

/* Subtitles Table */
.subtitles-section-wrapper {
    background-color: var(--surface-color);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.section-title-bar {
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
    margin-bottom: 25px;
}

.section-title-bar h3 {
    font-size: 1.5rem;
    margin: 0;
}

.subtitles-table {
    width: 100%;
    border-collapse: collapse;
    color: #ddd;
}

.subtitles-table th {
    text-align: left;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.subtitles-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.subtitles-table tr:last-child td {
    border-bottom: none;
    overflow: hidden;
}

.widget-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.widget-info {
    flex-grow: 1;
}

.widget-post-title {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 5px;
    line-height: 1.3;
}

.widget-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Footer */
.site-footer {
    background-color: #000;
    padding: 50px 0;
    margin-top: 50px;
    color: var(--text-muted);
    text-align: center;
}

/* Single Movie Page Styles */
.single-movie-page {
    margin-top: -70px;
    /* Pull behind header */
}

.movie-backdrop {
    height: 60vh;
    background-size: cover;
    background-position: center top;
    position: relative;
}

.backdrop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(20, 20, 20, 0.3) 0%, rgba(20, 20, 20, 0.8) 60%, var(--bg-color) 100%);
}

.movie-content-wrapper {
    position: relative;
    z-index: 10;
    margin-top: -150px;
    /* Overlap backdrop */
}

.movie-header {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    align-items: flex-start;
}

.movie-poster-container {
    width: 300px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: margin-top 0.3s ease;
    /* Smooth transition for JS adjustment */
}

.movie-info-container {
    flex-grow: 1;
    padding-bottom: 20px;
}

.single-movie-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.single-movie-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.meta-badge {
    background-color: #f5c518;
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
}

.meta-item {
    font-size: 1.1rem;
    color: #ddd;
}

.meta-genres {
    display: flex;
    gap: 10px;
}

.genre-tag {
    border: 1px solid var(--text-muted);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #ddd;
    transition: all 0.2s ease;
}

.genre-tag:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(229, 9, 20, 0.1);
}

.single-movie-plot {
    font-size: 1.1rem;
    color: #ccc;
    max-width: 800px;
    line-height: 1.7;
}

/* Subtitles Table */
.subtitles-section-wrapper {
    background-color: var(--surface-color);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.section-title-bar {
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
    margin-bottom: 25px;
}

.section-title-bar h3 {
    font-size: 1.5rem;
    margin: 0;
}

.subtitles-table {
    width: 100%;
    border-collapse: collapse;
    color: #ddd;
}

.subtitles-table th {
    text-align: left;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.subtitles-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.subtitles-table tr:last-child td {
    border-bottom: none;
}

.lang-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.lang-sinhala {
    background-color: #007bff;
    color: #fff;
}


/* Trailer Section */
.trailer-section-wrapper {
    background-color: var(--surface-color);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.trailer-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.trailer-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Comments Section */
.comments-section-wrapper {
    background-color: var(--surface-color);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-body {
    background: #222;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.comment-meta {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.fn {
    font-weight: bold;
    color: #fff;
    font-size: 1rem;
    margin-right: 10px;
}

.comment-content p {
    margin-bottom: 0;
    color: #ddd;
}

.reply {
    margin-top: 10px;
    font-size: 0.85rem;
}

.comment-reply-link {
    color: var(--primary-color);
}

/* Comment Form */
.comment-respond {
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.comment-reply-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: block;
}

.comment-form-comment label,
.comment-form-author label,
.comment-form-email label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"] {
    width: 100%;
    padding: 12px;
    background-color: #333;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 20px;
}

.form-submit .submit {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.form-submit .submit:hover {
    background-color: var(--primary-hover);
}

/* User Profile Page */
.profile-page-container {
    padding-top: 50px;
    padding-bottom: 50px;
}

.profile-header {
    background-color: var(--surface-color);
    padding: 30px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.profile-avatar img {
    border-radius: 50%;
    border: 3px solid var(--primary-color);
}

.profile-info {
    flex-grow: 1;
}

.profile-name {
    font-size: 2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-meta {
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.profile-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-stats {
    display: flex;
    gap: 20px;
    text-align: center;
}

.stat-box {
    background: #222;
    padding: 15px 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.profile-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.profile-section {
    background-color: var(--surface-color);
    padding: 30px;
    border-radius: 12px;
}

.profile-list {
    list-style: none;
    padding: 0;
}

.profile-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.status-badge {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: bold;
}

.status-approved {
    background-color: #28a745;
    color: #fff;
}

.status-pending {
    background-color: #ffc107;
    color: #000;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
}

.history-item {
    aspect-ratio: 2/3;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s;
}

.history-item:hover {
    transform: scale(1.05);
}

.history-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-data {
    color: var(--text-muted);
    font-style: italic;
}

/* Badges */
.user-badge {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    vertical-align: middle;
}

.profile-badge {
    font-size: 1rem;
    padding: 4px 12px;
    border-radius: 20px;
    background: #333;
    border: 1px solid var(--border-color);
}

.badge-top-fan {
    background-color: #ffd700;
    /* Gold */
    color: #000;
}

.badge-regular {
    background-color: #c0c0c0;
    /* Silver */
    color: #000;
}

.badge-newbie {
    background-color: #cd7f32;
    /* Bronze */
    color: #fff;
}

.badge-contributor {
    background-color: #9c27b0;
    /* Purple */
    color: #fff;
}



/* Responsive */
@media (max-width: 768px) {
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .header-search {
        display: none;
        /* Hide search on mobile for now */
    }

    /* Single Page Mobile */
    .movie-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: -100px;
    }

    .movie-poster-container {
        width: 200px;
    }

    .single-movie-title {
        font-size: 2rem;
    }

    .single-movie-meta {
        justify-content: center;
    }

    .table-responsive {
        overflow-x: auto;
    }

    .subtitles-table th,
    .subtitles-table td {
        white-space: nowrap;
    }

    /* Header Mobile */
    .main-navigation {
        display: none;
        /* Hide nav on mobile for now, use toggle */
    }
}

/* ============================
   Reviews / Comments Section (Added)
   ============================ */
.oio-reviews-section {
    margin-top: 40px;
    background: #1f1f1f;
    padding: 30px;
    border-radius: 8px;
}

.comments-title {
    font-size: 24px;
    color: #fff;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.comments-title .highlight-bar {
    width: 4px;
    height: 24px;
    background-color: #f5c518;
    /* IMDb Yellow */
    display: inline-block;
    border-radius: 2px;
}

.count-tag {
    font-size: 14px;
    background: #333;
    color: #ccc;
    padding: 2px 8px;
    border-radius: 4px;
}

/* --- Community Notification Badge --- */
.user-name-link {
    position: relative;
    display: flex;
    align-items: center;
}

.community-notify-badge,
.user-notify-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
    box-shadow: 0 0 10px rgba(255, 75, 43, 0.6);
    border: 1.5px solid #000;
    z-index: 10;
    animation: oio-pulse-red 2s infinite;
    line-height: 1;
}

@keyframes oio-pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 75, 43, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(255, 75, 43, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 75, 43, 0);
    }
}

.user-name {
    margin-right: 4px;
}


.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.comment-list li.comment {
    background: #141414;
    border: 1px solid #333;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.comment-body {
    display: flex;
    gap: 15px;
}

.comment-author .avatar {
    border-radius: 50%;
    width: 48px;
    height: 48px;
}

.comment-meta {
    flex-grow: 1;
}

.fn {
    font-weight: bold;
    color: #f5c518;
    font-style: normal;
    font-size: 16px;
}

.comment-metadata {
    font-size: 12px;
    color: #777;
    margin-bottom: 10px;
}

.comment-metadata a {
    color: #777;
    text-decoration: none;
}

.comment-content p {
    color: #ddd;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 0;
}

.reply {
    margin-top: 10px;
    text-align: right;
}

.comment-reply-link {
    font-size: 12px;
    color: #3498db;
    text-decoration: none;
}

/* Comment Form */
.comment-respond {
    background: #141414;
    padding: 25px;
    border-radius: 6px;
    border: 1px solid #333;
}

.comment-reply-title {
    color: #fff;
    font-size: 20px;
    margin-bottom: 20px;
    display: block;
}

.comment-form-comment label {
    display: block;
    color: #ccc;
    font-weight: bold;
    margin-bottom: 8px;
}

.comment-form textarea {
    width: 100%;
    background: #000;
    border: 1px solid #444;
    color: #fff;
    padding: 12px;
    border-radius: 4px;
    font-family: inherit;
    resize: vertical;
}

.comment-form textarea:focus {
    border-color: #f5c518;
    outline: none;
}

.form-submit {
    margin-top: 15px;
    text-align: right;
}

.form-submit .submit {
    background-color: #f5c518;
    color: #000;
    border: none;
    padding: 10px 24px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.form-submit .submit:hover {
    background-color: #e2b607;
}

.logged-in-as {
    color: #888;
    font-size: 13px;
    margin-bottom: 15px;
}

.logged-in-as a {
    color: #f5c518;
}

/* Genres Page */
.genres-page-container {
    padding-top: 120px;
    padding-bottom: 80px;
}

.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.genres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.genre-card {
    position: relative;
    background: var(--surface-color);
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
}

.genre-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    /* Darken image */
    transition: background 0.3s ease;
    z-index: 1;
}

.genre-card:hover::before {
    background: rgba(0, 0, 0, 0.4);
    /* Lighten on hover */
}

.genre-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(229, 9, 20, 0.2);
}

.genre-card-content {
    z-index: 2;
}

.genre-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
    transition: color 0.3s ease;
}

.genre-card:hover .genre-name {
    color: var(--primary-color);
}

.genre-count {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.genre-card:hover .genre-count {
    background: rgba(229, 9, 20, 0.1);
    color: #fff;
}

.genre-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(229, 9, 20, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.genre-card:hover .genre-card-bg {
    opacity: 1;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2.2rem;
    }

    .genres-page-container {
        padding-top: 100px;
    }

    .genres-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }

    .genre-card {
        padding: 20px;
    }

    .genre-name {
        font-size: 1.2rem;
    }
}

/* Home Page Hero Section (Restored) */
.hero-section {
    position: relative;
    height: 85vh;
    background-size: cover;
    background-position: center top;
    display: flex;
    align-items: center;
    margin-top: -70px;
    /* Behind header */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(20, 20, 20, 1) 0%, rgba(20, 20, 20, 0.6) 30%, rgba(20, 20, 20, 0) 70%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 40%, rgba(20, 20, 20, 0.8) 70%, #141414 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-info {
    max-width: 650px;
    padding-top: 100px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 1.1rem;
    font-weight: 600;
}

.hero-meta .rating {
    color: #46d369;
    /* Match Netflix match score */
}

.hero-meta .year {
    color: #aaa;
}

.hero-desc {
    font-size: 1.2rem;
    color: #ddd;
    margin-bottom: 30px;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.hero-actions {
    display: flex;
    gap: 15px;
}

@media (max-width: 768px) {
    .hero-section {
        height: 70vh;
        background-position: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-info {
        padding-top: 50px;
        text-align: center;
        margin: 0 auto;
    }

    .hero-meta {
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
    }
}

/* Fix Download Button Hover */
.btn-download {
    background-color: #e50914;
    /* Red Default */
    color: #fff;
    font-size: 14px;
    padding: 10px 24px;
    margin: 0;
    border: none;
    font-weight: bold;
    text-transform: uppercase;
}

.btn-download:hover {
    background-color: #b20710 !important;
    transform: scale(1.05);
}

/* =========================================
   OIO Profile Page Styles (IMDb Redesign)
   ========================================= */

.oio-profile-wrapper {
    background-color: var(--bg-color);
    min-height: 100vh;
    padding-top: 100px;
    /* Account for fixed header */
    padding-bottom: 50px;
}

.oio-profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.oio-profile-header {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.oio-profile-user {
    display: flex;
    align-items: center;
    gap: 20px;
}

.oio-avatar-circle img {
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--text-muted);
}

.oio-user-details h1 {
    font-size: 2rem;
    color: #fff;
    margin: 0 0 5px 0;
    line-height: 1.2;
}

.oio-user-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.oio-profile-stats-header {
    display: flex;
    gap: 30px;
    align-items: center;
}

.oio-stat-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.oio-stat-num {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.oio-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* Grid Layout */
.oio-profile-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    align-items: start;
}

/* Main Content & Section Common */
.oio-section {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

.oio-section-title {
    font-size: 1.2rem;
    color: #f5c518;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 3px solid #f5c518;
    padding-left: 10px;
}

/* Badges */
.oio-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.oio-badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    text-align: center;
}

.oio-badge-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #f5c518;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.oio-badge-name {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.2;
}

/* Recently Viewed Carousel */
.oio-carousel {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.oio-carousel::-webkit-scrollbar {
    height: 8px;
}

.oio-carousel::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

.oio-card {
    width: 140px;
    flex-shrink: 0;
    text-decoration: none;
}

.oio-card-poster {
    position: relative;
    aspect-ratio: 2/3;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.oio-card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.oio-card-overlay {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.8);
    color: #f5c518;
    font-size: 0.8rem;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: bold;
}

.oio-card-info {
    font-size: 0.9rem;
}

.oio-card-title {
    display: block;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.oio-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.oio-star {
    color: #f5c518;
}

/* Reviews */
.oio-review-item {
    border: 1px solid var(--border-color);
    background: #1a1a1a;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.oio-review-header {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    align-items: center;
}

.oio-review-thumb {
    width: 40px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

.oio-review-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.oio-review-meta h4 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    color: #fff;
}

.oio-review-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.oio-review-body {
    font-style: italic;
    color: #ddd;
    font-size: 0.95rem;
}

/* Sidebar Widgets */
.oio-sidebar-box {
    margin-bottom: 30px;
}

.oio-section-subtitle {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.oio-chart-placeholder {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 100px;
    padding-top: 10px;
    border-bottom: 1px solid var(--border-color);
}

.oio-bar {
    flex: 1;
    background-color: #333;
    border-radius: 2px 2px 0 0;
    transition: height 0.5s;
}

.oio-bar:hover {
    background-color: #f5c518;
}

.oio-list-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.oio-list-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #1a1a1a;
    border-radius: 4px;
    color: #ddd;
    transition: background 0.2s;
}

.oio-list-link:hover {
    background: #252525;
    color: #fff;
}

.oio-count-tag {
    background: #333;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    color: #aaa;
}

.oio-logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #e50914;
    /* Red for logout */
    font-weight: 600;
}

.oio-logout-btn:hover {
    color: #ff4d4d;
}

/* Responsive */
@media (max-width: 900px) {
    .oio-profile-grid {
        grid-template-columns: 1fr;
    }

    .oio-profile-header {
        flex-direction: column;
        text-align: center;
    }

    .oio-profile-stats-header {
        flex-wrap: wrap;
        justify-content: center;
    }

    .oio-profile-user {
        flex-direction: column;
    }

    /* Pagination */
    .pagination {
        margin-top: 50px;
        display: flex;
        justify-content: center;
    }

    .pagination .nav-links {
        display: flex;
        gap: 10px;
        align-items: center;
    }

    .pagination .page-numbers {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 40px;
        height: 40px;
        padding: 0 10px;
        background-color: var(--surface-color);
        color: #fff;
        border-radius: 4px;
        text-decoration: none;
        border: 1px solid var(--border-color);
        font-weight: 600;
        transition: all 0.2s ease;
    }

    .pagination .page-numbers.current,
    .pagination .page-numbers:hover {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
        color: #fff;
    }

    .pagination .page-numbers.dots {
        background: transparent;
        border: none;
        cursor: default;
        color: var(--text-muted);
    }

    /* Fix Modal Visibility */
    .modal {
        display: none;
        /* Hidden by default */
        position: fixed;
        /* Stay in place */
        z-index: 1000;
        /* Sit on top */
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0, 0, 0, 0.8);
        /* Black w/ opacity */
    }

    .modal-content {
        background-color: #fefefe;
        margin: 15% auto;
        padding: 20px;
        border: 1px solid #888;
        width: 80%;
        max-width: 600px;
        border-radius: 8px;
        background: #1a1a1a;
        color: #fff;
        text-align: center;
    }

    .close-modal {
        color: #aaa;
        float: right;
        font-size: 28px;
        font-weight: bold;
        cursor: pointer;
    }

    .close-modal:hover,
    .close-modal:focus {
        color: #fff;
        text-decoration: none;
        cursor: pointer;
    }

    /* Footer Layout Customization */
    .site-footer {
        background-color: #000;
        padding: 30px 0;
        border-top: 1px solid #222;
        font-size: 0.9rem;
        color: #888;
    }

    .footer-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 20px;
    }

    .site-info p {
        margin: 0;
        color: #aaa;
    }

    /* Target the specific class we added in footer.php */
    .footer-menu-list {
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        gap: 25px !important;
        align-items: center !important;
        flex-wrap: wrap !important;
    }

    .footer-navigation a {
        color: #aaa;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s;
        font-size: 0.9rem;
    }

    .footer-navigation a:hover {
        color: #fff;
    }



    .oio-list-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        background: #1a1a1a;
        border-radius: 4px;
        color: #ddd;
        transition: background 0.2s;
    }

    .oio-list-link:hover {
        background: #252525;
        color: #fff;
    }

    .oio-count-tag {
        background: #333;
        padding: 2px 8px;
        border-radius: 10px;
        font-size: 0.75rem;
        color: #aaa;
    }

    .oio-logout-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: #e50914;
        /* Red for logout */
        font-weight: 600;
    }

    .oio-logout-btn:hover {
        color: #ff4d4d;
    }

    /* Responsive */
    @media (max-width: 900px) {
        .oio-profile-grid {
            grid-template-columns: 1fr;
        }

        .oio-profile-header {
            flex-direction: column;
            text-align: center;
        }

        .oio-profile-stats-header {
            flex-wrap: wrap;
            justify-content: center;
        }

        .oio-profile-user {
            flex-direction: column;
        }

        /* Pagination */
        .pagination {
            margin-top: 50px;
            display: flex;
            justify-content: center;
        }

        .pagination .nav-links {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .pagination .page-numbers {
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 40px;
            height: 40px;
            padding: 0 10px;
            background-color: var(--surface-color);
            color: #fff;
            border-radius: 4px;
            text-decoration: none;
            border: 1px solid var(--border-color);
            font-weight: 600;
            transition: all 0.2s ease;
        }

        .pagination .page-numbers.current,
        .pagination .page-numbers:hover {
            background-color: var(--primary-color);
            border-color: var(--primary-color);
            color: #fff;
        }

        .pagination .page-numbers.dots {
            background: transparent;
            border: none;
            cursor: default;
            color: var(--text-muted);
        }

        /* Fix Modal Visibility */
        .modal {
            display: none;
            /* Hidden by default */
            position: fixed;
            /* Stay in place */
            z-index: 1000;
            /* Sit on top */
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0, 0, 0, 0.8);
            /* Black w/ opacity */
        }

        .modal-content {
            background-color: #fefefe;
            margin: 15% auto;
            padding: 20px;
            border: 1px solid #888;
            width: 80%;
            max-width: 600px;
            border-radius: 8px;
            background: #1a1a1a;
            color: #fff;
            text-align: center;
        }

        .close-modal {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
        }

        .close-modal:hover,
        .close-modal:focus {
            color: #fff;
            text-decoration: none;
            cursor: pointer;
        }

        /* Footer Layout Customization */
        .site-footer {
            background-color: #000;
            padding: 30px 0;
            border-top: 1px solid #222;
            font-size: 0.9rem;
            color: #888;
        }

        .footer-inner {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;
        }

        .site-info p {
            margin: 0;
            color: #aaa;
        }

        /* Target the specific class we added in footer.php */
        .footer-menu-list {
            list-style: none !important;
            margin: 0 !important;
            padding: 0 !important;
            display: flex !important;
            gap: 25px !important;
            align-items: center !important;
            flex-wrap: wrap !important;
        }

        .footer-navigation a {
            color: #aaa;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.2s;
            font-size: 0.9rem;
        }

        .footer-navigation a:hover {
            color: #fff;
        }

        @media (max-width: 768px) {
            .footer-inner {
                flex-direction: column;
                text-align: center;
            }

        }
    }

    /* Trending Ticker Styles */
    .trending-ticker-wrapper {
        background: #111;
        border-bottom: 1px solid #222;
        padding: 10px 0;
        overflow: hidden;
        position: relative;
        display: flex;
        align-items: center;
        margin-top: 70px !important;
        /* Fix for fixed header */
        z-index: 900;
    }

    .ticker-title {
        background: #e50914;
        color: #fff;
        padding: 5px 15px;
        font-weight: bold;
        font-size: 0.8rem;
        text-transform: uppercase;
        position: absolute;
        left: 0;
        z-index: 10;
        height: 100%;
        display: flex;
        align-items: center;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    }

    .trending-ticker-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        left: 140px;
        /* Width of the title label */
        width: 100px;
        /* Fade width */
        height: 100%;
        background: linear-gradient(to right, #0b0b0b 20%, transparent 100%);
        /* Matches body bg */
        z-index: 20;
        pointer-events: none;
    }

    .trending-ticker-swiper {
        width: 100%;
        overflow: hidden;
        padding-left: 140px;
        /* Space for title */
    }

    .trending-ticker-swiper .swiper-wrapper {
        transition-timing-function: linear;
    }

    .ticker-track {
        display: flex;
        gap: 20px;
        width: max-content;
        animation: tickerScroll 40s linear infinite;
    }

    .trending-ticker-wrapper:hover .ticker-track {
        animation-play-state: paused;
    }

    .ticker-item {
        flex: 0 0 auto;
        width: fit-content;
        /* Force fit to content */
        height: 60px;
        position: relative;
        margin-right: 15px;
    }

    .ticker-item a {
        text-decoration: none;
        display: flex;
        /* Horizontal Layout */
        align-items: center;
        color: #fff;
        background: #1a1a1a;
        height: 100%;
        border-radius: 4px;
        overflow: hidden;
        border: 1px solid #333;
        padding-right: 15px;
        transition: all 0.3s ease;
    }

    .ticker-item:hover a {
        background: #252525;
        border-color: #e50914;
        transform: translateY(-2px);
    }

    .ticker-item .ticker-img-box {
        width: 45px;
        height: 100%;
        position: relative;
        flex-shrink: 0;
    }

    .ticker-item img {
        width: 100%;
        height: 100%;
        /* Fill the box */
        object-fit: cover;
        border-radius: 0;
        /* Flush with container */
        border: none;
    }

    .ticker-rank {
        position: absolute;
        bottom: 0;
        left: 0;
        background: rgba(229, 9, 20, 0.9);
        color: #fff;
        font-size: 9px;
        padding: 1px 4px;
        font-weight: bold;
        border-top-right-radius: 4px;
    }

    .ticker-item-title {
        display: block;
        font-size: 0.85rem;
        font-weight: 600;
        white-space: nowrap;
        margin-top: 0;
        margin-left: 12px;
        color: #ddd;
        line-height: 1.2;
    }

    @keyframes tickerScroll {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(-50%);
        }
    }

    @media (max-width: 600px) {
        .ticker-item {
            width: fit-content;
            /* Auto width on mobile too */
            max-width: 80vw;
            /* Safety cap for mobile */
        }

        .ticker-item img {
            height: 60px;
        }

        .ticker-title {
            font-size: 0.7rem;
            padding: 0 10px;
        }

        .trending-ticker {
            padding-left: 110px;
        }
    }

    /* Modern Subtitle List (Div Structure) */
    .subtitles-list-wrapper {
        background-color: var(--surface-color);
        border-radius: 12px;
        padding: 30px;
        margin-bottom: 50px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        overflow: hidden;
    }

    .subtitles-header-row {
        display: grid;
        grid-template-columns: 80px 1fr 1fr 100px 140px;
        padding: 15px;
        border-bottom: 1px solid var(--border-color);
        color: var(--text-muted);
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: 700;
    }

    .subtitle-row {
        display: grid;
        grid-template-columns: 80px 1fr 1fr 100px 140px;
        padding: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        align-items: center;
        transition: background-color 0.2s;
    }

    .subtitle-row:hover {
        background-color: rgba(255, 255, 255, 0.03);
    }

    .subtitle-row:last-child {
        border-bottom: none;
    }

    .season-header-row {
        background: #222;
        padding: 15px 20px;
        font-weight: bold;
        font-size: 1.1em;
        color: var(--primary-color);
        border-bottom: 2px solid #333;
        display: flex;
        align-items: center;
        cursor: pointer;
        user-select: none;
    }

    .episode-header-row {
        background: #1a1a1a;
        padding: 12px 20px;
        font-weight: 600;
        color: #fff;
        border-bottom: 1px solid #333;
        display: flex;
        align-items: center;
        cursor: pointer;
        user-select: none;
        transition: background-color 0.2s;
    }

    .episode-header-row:hover {
        background: #252525;
    }

    .episode-header-row .dashicons,
    .season-header-row .dashicons {
        margin-right: 10px;
        transition: transform 0.3s ease;
    }

    /* Accordion Animation (Grid Method) */
    .episode-content-wrapper {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .episode-content-wrapper.open {
        grid-template-rows: 1fr;
    }

    .episode-content-inner {
        overflow: hidden;
        min-height: 0;
        /* Required for grid transition to work properly */
    }

    /* Responsive adjustments for the grid */
    @media (max-width: 900px) {

        .subtitles-header-row,
        .subtitle-row {
            grid-template-columns: 60px 1fr 100px;
            /* Hide uploader and download count on mobile if tight */
            font-size: 0.9rem;
        }

        .subtitles-header-row>div:nth-child(3),
        .subtitles-header-row>div:nth-child(4),
        .subtitle-row>div:nth-child(3),
        .subtitle-row>div:nth-child(4) {
            display: none;
        }
    }

    .trending-ticker {
        width: 100%;
        overflow: hidden;
        padding-left: 140px;
        /* Space for title */
    }

    .ticker-track {
        display: flex;
        gap: 20px;
        width: max-content;
        animation: tickerScroll 40s linear infinite;
    }

    .trending-ticker-wrapper:hover .ticker-track {
        animation-play-state: paused;
    }

    .ticker-item {
        flex: 0 0 auto;
        width: 150px;
        /* Thumbnail width */
        position: relative;
    }

    .ticker-item a {
        text-decoration: none;
        display: block;
        color: #fff;
    }

    .ticker-item img {
        width: 100%;
        height: 85px;
        /* Cinematic aspect ratio approx */
        object-fit: cover;
        border-radius: 4px;
        border: 1px solid #333;
        transition: transform 0.2s;
    }

    .ticker-item:hover img {
        transform: scale(1.05);
        border-color: #e50914;
    }

    .ticker-item-title {
        display: block;
        font-size: 0.75rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-top: 5px;
        color: #ccc;
    }

    @keyframes tickerScroll {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(-50%);
        }
    }

    @media (max-width: 600px) {
        .ticker-item {
            width: 100px;
        }

        .ticker-item img {
            height: 60px;
        }

        .ticker-title {
            font-size: 0.7rem;
            padding: 0 10px;
        }

        .trending-ticker {
            padding-left: 110px;
        }
    }

    /* Modern Subtitle List (Div Structure) */
    .subtitles-list-wrapper {
        background-color: var(--surface-color);
        border-radius: 12px;
        padding: 30px;
        margin-bottom: 50px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        overflow: hidden;
    }

    .subtitles-header-row {
        display: grid;
        grid-template-columns: 80px 1fr 1fr 100px 140px;
        padding: 15px;
        border-bottom: 1px solid var(--border-color);
        color: var(--text-muted);
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: 700;
    }

    .subtitle-row {
        display: grid;
        grid-template-columns: 80px 1fr 1fr 100px 140px;
        padding: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        align-items: center;
        transition: background-color 0.2s;
    }

    .subtitle-row:hover {
        background-color: rgba(255, 255, 255, 0.03);
    }

    .subtitle-row:last-child {
        border-bottom: none;
    }

    .season-header-row {
        background: #222;
        padding: 15px 20px;
        font-weight: bold;
        font-size: 1.1em;
        color: var(--primary-color);
        border-bottom: 2px solid #333;
        display: flex;
        align-items: center;
        cursor: pointer;
        user-select: none;
    }

    .episode-header-row {
        background: #1a1a1a;
        padding: 12px 20px;
        font-weight: 600;
        color: #fff;
        border-bottom: 1px solid #333;
        display: flex;
        align-items: center;
        cursor: pointer;
        user-select: none;
        transition: background-color 0.2s;
    }

    .episode-header-row:hover {
        background: #252525;
    }

    .episode-header-row .dashicons,
    .season-header-row .dashicons {
        margin-right: 10px;
        transition: transform 0.3s ease;
    }

    /* Accordion Animation (Grid Method) */
    .episode-content-wrapper {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .episode-content-wrapper.open {
        grid-template-rows: 1fr;
    }

    .episode-content-inner {
        overflow: hidden;
        min-height: 0;
        /* Required for grid transition to work properly */
    }

    /* Responsive adjustments for the grid */
    @media (max-width: 900px) {

        .subtitles-header-row,
        .subtitle-row {
            grid-template-columns: 60px 1fr 100px;
            /* Hide uploader and download count on mobile if tight */
            font-size: 0.9rem;
        }

        .subtitle-row>div:nth-child(3),
        /* Uploader */
        .subtitle-row>div:nth-child(4),
        /* Downloads */
        .subtitles-header-row>div:nth-child(3),
        .subtitles-header-row>div:nth-child(4) {
            display: none;
        }
    }
}

/* =========================================
   Most Popular Grid Section
   ========================================= */
.popular-section-wrapper {
    background-color: var(--surface-color);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.popular-tabs {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.popular-tabs h3 {
    margin: 0;
    cursor: pointer;
    font-size: 1.2rem;
    color: #777;
    transition: color 0.3s;
}

.popular-tabs h3:hover {
    color: #fff;
}

.popular-tabs h3.active {
    color: var(--primary-color);
    font-weight: bold;
    border-bottom: 2px solid var(--primary-color);
}

.popular-tabs .separator {
    color: #555;
    font-size: 1.2rem;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-bottom: 30px;
    min-height: 380px;
    /* Prevent collapse during loading */
    transition: opacity 0.3s ease-in-out;
}

.popular-grid.loading {
    opacity: 0.5;
    pointer-events: none;
}

@media (max-width: 768px) {
    .popular-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .popular-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.popular-grid-item {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.popular-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.popular-grid-item a {
    text-decoration: none;
    color: #fff;
}

.popular-poster {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.popular-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.popular-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.popular-grid-item:hover .popular-poster img {
    transform: scale(1.05);
}

.popular-grid-item:hover .popular-overlay {
    opacity: 1;
}

.play-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(229, 9, 20, 0.4);
}

.play-icon .dashicons {
    font-size: 28px;
    color: #fff;
    width: 28px;
    height: 28px;
}

.popular-rating {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #f5c518;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.popular-rating .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
}

.popular-info {
    padding: 12px;
}

.popular-title {
    font-size: 0.95rem;
    margin: 0 0 6px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.popular-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.views-count {
    display: flex;
    align-items: center;
    gap: 4px;
}

.views-count .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.popular-pagination {
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

@media (max-width: 600px) {
    .popular-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
}

/* New Episode Badge */
.card-badge-new-ep {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #28a745;
    color: #fff;
    font-size: 0.7rem;
    /* Smaller font */
    font-weight: 700;
    padding: 2px 6px;
    /* Smaller padding */
    border-radius: 3px;
    z-index: 5;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    line-height: 1;
}

/* Hot Status Badge */
.card-badge-hot {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(45deg, #ff4500, #ff8c00);
    color: #fff;
    font-size: 0.7rem;
    /* Smaller font */
    font-weight: 800;
    padding: 2px 6px;
    /* Smaller padding */
    border-radius: 3px;
    z-index: 6;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 3px;
    line-height: 1;
}

/* If New Episode also exists, stack them */
.poster-wrapper .card-badge-new-ep+.card-badge-hot,
.popular-poster .card-badge-new-ep+.card-badge-hot,
.movie-card .card-badge-new-ep+.card-badge-hot {
    top: 32px;
    /* Adjusted down to fit below smaller badge */
    left: 8px;
    /* Aligned left */
}

/* Fix Logo Image Size */
.site-logo img {
    max-height: 40px;
    /* Restrict height to fit header */
    width: auto;
    /* Maintain aspect ratio */
    display: block;
    /* Remove extra space */
}

/* Ensure container allows it */
.site-logo {
    display: flex;
    align-items: center;
}

/* =========================================
   GLOBAL MODAL STYLES (Fixes Download/Trailer)
   ========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #1a1a1a;
    padding: 0;
    border: 1px solid #333;
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 8px 8px 0 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.download-actions {
    padding: 20px;
    text-align: center;
    background: #222;
    border-radius: 0 0 8px 8px;
}

.close-modal {
    color: #fff;
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.2s;
}

/* Rotation Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* =========================================
   Sidebar Premium Widgets (Added)
   ========================================= */
.sidebar-widget {
    background: #111;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
    border-color: #333;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #e50914;
    /* Netflix Red */
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 1px;
    background: #e50914;
}

.widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-item {
    border-bottom: 1px solid #222 !important;
    /* Override inline styles */
    padding: 12px 0 !important;
    transition: all 0.2s ease;
}

.widget-item:last-child {
    border-bottom: none !important;
}

.widget-item:hover {
    padding-left: 10px !important;
    background: rgba(255, 255, 255, 0.02);
}

.widget-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-decoration: none;
    color: #ccc;
    transition: color 0.2s;
}

/* =========================================
   Cinematic Badges
   ========================================= */

/* 1. NEW Badge - Moving Stroke (Neon Snake) */
@keyframes neonSnake {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.card-badge-new {
    position: absolute;
    top: auto;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    z-index: 10;
    padding: 1px;
    /* The border width */
    border-radius: 4px;
    overflow: hidden;
    font-size: 10px;
    font-weight: 800;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: #000;
    /* Neon Base */
}

/* Static Red Border for Card Badge */
.card-badge-new::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid #ff0000;
    border-radius: 4px;
}

/* The Inner Content Background */
.card-badge-new .badge-inner {
    background: #000;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    text-transform: uppercase;
}

/* 2. UPDATED Badge - Blue Neon Snake (same structure as NEW, different color) */
.card-badge-updated {
    position: absolute;
    top: auto;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    z-index: 10;
    padding: 1px;
    border-radius: 4px;
    overflow: hidden;
    font-size: 10px;
    font-weight: 800;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: #000;
}

.card-badge-updated::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, transparent, transparent, #00bfff);
    animation: neonSnake 2s linear infinite;
    top: -50%;
    left: -50%;
}

.card-badge-updated .badge-inner {
    background: #000;
    color: #00bfff;
    padding: 2px 6px;
    border-radius: 3px;
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    text-transform: uppercase;
}

/* SIDEBAR SPECIFIC OVERRIDE ("Small Red") */
.widget-ep-badge.new-update-bg {
    background: #e50914 !important;
    /* Force Red */
    border: none !important;
    box-shadow: none !important;
    width: auto !important;
    left: auto !important;
    right: 0 !important;
    bottom: 0 !important;
    padding: 2px 6px !important;
    border-radius: 4px 0 4px 0;
    /* Corner style or simple rect */
}

.widget-ep-badge.new-update-bg .widget-ep-text {
    animation: none !important;
    /* Disable Shimmer if preferred simple */
    background: transparent !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    text-shadow: none !important;
}

/* Mobile Poster Wrapper (For positioning badges) */
.mobile-poster-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 2/3;
    background: #111;
}

/* Mobile Specific New Badge Position (Ensure consistency) */
.mobile-card-wrapper .card-badge-new {
    top: auto;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    font-size: 9px;
    background: #e50914;
    /* Ensure Red */
}

.mobile-card-wrapper .card-badge-new .badge-inner {
    padding: 2px 5px;
}

/* Widget Specific New Badge Position */
.widget-thumb .card-badge-new {
    top: auto;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    font-size: 8px;
    border-radius: 2px;
}

.widget-thumb .card-badge-new .badge-inner {
    padding: 1px 4px;
    border-radius: 2px;
}

/* PULSE BORDER FOR NEW UPDATES */
@keyframes pulseBorder {
    0% {
        box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.7);
        border-color: #e50914;
    }

    70% {
        box-shadow: 0 0 0 6px rgba(229, 9, 20, 0);
        border-color: #ff4d4d;
    }

    100% {
        box-shadow: 0 0 0 0 rgba(229, 9, 20, 0);
        border-color: #e50914;
    }
}

.pulse-border {
    border: 1px solid #e50914;
}

/* 2. HOT Badge - Fire Flicker */
@keyframes fireFlicker {
    0% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 5px #ff4500;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.9;
        box-shadow: 0 0 10px #ff8c00;
    }

    100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 5px #ff4500;
    }
}

.card-badge-hot {
    background: linear-gradient(45deg, #ff4500, #ff8c00);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    position: absolute;
    top: 10px;
    left: 10px;
    /* Left side to not conflict */
    font-weight: bold;
    z-index: 10;
    animation: fireFlicker 1.5s infinite alternate;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 3. Episode/Updated Badge - Blue/Green Shimmer */
@keyframes textShimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* removed duplicate block */
/* Episode Badge & Shimmer */
.widget-ep-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    padding: 4px;
    text-align: center;
}

/* Special BG for New Updates */
.widget-ep-badge.new-update-bg,
.card-badge-new-ep.new-update-bg {
    background: #000;
    /* Deep Black */
    border-top: 2px solid #e50914;
    /* Red accent line */
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.5);
}

.widget-ep-text {
    font-size: 11px;
    font-weight: bold;
    color: #ccc;
    display: block;
}

/* Shimmer Animation (Only applies when .animate-shimmer class is present) */
.animate-shimmer {
    background: linear-gradient(to right, #999 0%, #fff 50%, #999 100%);
    background-size: 200% auto;
    color: #000;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShimmer 2s linear infinite;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    display: inline-block;
    /* Ensure gradient works */
}

@keyframes textShimmer {
    to {
        background-position: 200% center;
    }
}

.widget-link:hover .lang-name,
.widget-link:hover .country-name {
    color: #fff;
}

.lang-count,
.country-count {
    background: #1a1a1a !important;
    color: #777 !important;
    font-weight: 600;
    font-size: 0.75rem !important;
    border: 1px solid #333;
    min-width: 24px;
    text-align: center;
}



/* =========================================
   Mobile Responsiveness (AMP Compatible Style)
   ========================================= */
@media (max-width: 768px) {

    /* Container */
    .container {
        padding: 0 15px;
    }

    /* Header */
    .site-header {
        height: auto;
        position: relative;
        padding: 10px 0;
    }

    .header-inner {
        flex-wrap: wrap;
        gap: 10px;
    }

    /* Logo & Search Row */
    .site-logo {
        flex: 1;
        /* Takes available space */
        order: 1;
    }

    .header-right {
        order: 2;
        gap: 15px;
    }

    /* Hide Desktop Navigation on Mobile - Mobile Drawer is Used */
    .main-navigation {
        display: none !important;
    }

    /* Show Mobile Menu Toggle */
    #mobile-menu-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }

    /* Search Bar Mobile */
    .static-search-wrapper,
    #mobile-search-toggle {
        display: none !important;
    }

    /* Grids: 2 Columns */
    .popular-grid,
    .movies-grid,
    .related-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }

    .popular-grid-item {
        margin-bottom: 15px;
    }

    .popular-poster {
        height: auto;
        aspect-ratio: 2/3;
    }

    .popular-title {
        font-size: 0.9rem;
    }

    /* Single Movie Page */
    .single-movie-page {
        margin-top: 0;
    }

    .movie-header-content {
        flex-direction: column;
    }

    .movie-poster-large {
        width: 140px;
        margin: 0 auto 20px;
    }

    .movie-details {
        text-align: center;
    }

    .movie-meta-row {
        justify-content: center;
    }

    .action-buttons {
        justify-content: center;
    }

    /* Footer */
    .footer-widgets {
        grid-template-columns: 1fr;
    }

    /* Mobile Subtitles Table (Card View) */
    .subtitles-table thead {
        display: none;
    }

    .subtitles-table,
    .subtitles-table tbody,
    .subtitles-table tr,
    .subtitles-table td {
        display: block;
        width: 100%;
    }

    .subtitles-table tr {
        margin-bottom: 15px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid #333;
        border-radius: 8px;
        padding: 10px;
    }

    .subtitles-table td {
        text-align: left;
        padding-left: 0;
        padding-right: 0;
        border: none;
        position: relative;
        padding-bottom: 5px;
    }

    /* Hide Uploader and Downloads on very small screens if needed, or style them */
    .subtitles-table td:nth-of-type(3),
    /* Uploader */
    .subtitles-table td:nth-of-type(4)

    /* Downloads */
        {
        font-size: 0.85rem;
        color: #ddd;
        display: inline-block;
        width: auto;
        margin-right: 15px;
    }

    /* Action Column (Download Button) */
    .subtitles-table td:last-child {
        margin-top: 10px;
        text-align: center;
    }

    .btn.btn-download {
        width: 100%;
        justify-content: center;
    }
}

/* Single Movie Plot & Read More */
.single-movie-plot {
    font-size: 1.1rem;
    color: #ccc;
    max-width: 800px;
    line-height: 1.7;
    transition: max-height 0.3s ease;
}

.single-movie-plot.collapsed {
    max-height: 100px;
    /* Show ~3-4 lines */
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-top: 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.read-more-btn:hover {
    text-decoration: underline;
}

/* Custom Tooltip */
.oio-tooltip-trigger {
    position: relative;
}

.oio-custom-tooltip {
    visibility: hidden;
    width: 250px;
    background-color: #222;
    color: #fff;
    text-align: left;
    border-radius: 8px;
    padding: 12px;
    position: absolute;
    z-index: 100;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.85rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid #444;
    line-height: 1.4;
    font-weight: normal;
    text-transform: none;
    letter-spacing: normal;
    pointer-events: none;
}

.oio-custom-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #444 transparent transparent transparent;
}

.oio-tooltip-trigger:hover .oio-custom-tooltip {
    visibility: visible;
    opacity: 1;
}

/* Header Community Link */
.header-community-btn {
    display: inline-flex;
    align-items: center;
    color: #0ea5e9;
    /* Bright Sky Blue */
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-right: -5px;
    /* Pull it slightly closer to the search box against the 20px flex gap */
}

.header-community-btn:hover {
    color: #38bdf8;
    text-decoration: none;
    text-shadow: 0 0 10px rgba(14, 165, 233, 0.4);
}

.header-pricing-mobile-btn {
    display: none !important;
}

@media screen and (max-width: 600px) {
    .site-header {
        height: 64px;
        max-width: 100vw;
    }

    .header-inner {
        flex-wrap: nowrap;
        gap: 6px;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .site-logo {
        flex: 0 0 auto;
    }

    .site-logo img {
        max-height: 28px;
        width: auto;
    }

    .header-right {
        flex: 1 1 auto;
        justify-content: flex-end;
        gap: 6px !important;
        min-width: 0;
    }

    .header-community-btn {
        display: none !important;
    }

    .header-pricing-mobile-btn {
        display: inline-flex !important;
        height: 28px !important;
        align-items: center;
        justify-content: center;
        padding: 0 8px !important;
        border-radius: 14px !important;
        background: #ffca28;
        color: #000000 !important;
        font-weight: 800;
        font-size: 10px !important;
        letter-spacing: 0.4px;
        text-transform: uppercase;
        white-space: nowrap;
        box-shadow: 0 2px 8px rgba(255, 202, 40, 0.3);
        flex: 0 0 auto;
        margin-left: 6px !important;
        margin-right: 0 !important;
        text-decoration: none;
    }

    .header-pricing-mobile-btn i {
        margin-right: 4px !important;
        font-size: 13px !important;
    }

    .static-search-wrapper,
    #mobile-search-toggle {
        display: none !important;
    }

    .user-info {
        gap: 8px;
    }

    .user-name-link {
        display: none !important;
    }

    .logout-link {
        width: 32px;
        height: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

.desktop-mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: min(280px, 82vw);
    height: 100vh;
    background: #1a1a1a;
    z-index: 11000;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 2px 0 18px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
}

.desktop-mobile-drawer.active {
    transform: translateX(0);
}

.desktop-mobile-drawer .drawer-header {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid #333;
    background: #111;
}

.desktop-mobile-drawer .drawer-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}

.desktop-mobile-drawer .close-btn {
    font-size: 28px;
    color: #fff;
    line-height: 1;
    background: none;
    border: none;
}

.desktop-mobile-drawer .drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.desktop-mobile-drawer .mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.desktop-mobile-drawer .mobile-menu-list li {
    border-bottom: 1px solid #2a2a2a;
}

.desktop-mobile-drawer .mobile-menu-list a {
    display: block;
    padding: 12px 0;
    color: #ddd;
    font-size: 16px;
    text-decoration: none;
}

.desktop-mobile-drawer .mobile-menu-list a:hover {
    color: #fff;
}

body.drawer-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.68);
    z-index: 10900;
}

/* =========================================
   OIO Social Media Styles
   ========================================= */
:root {
    --social-bg-hover: #222222;
    --social-upvote: #ff4500;
    --social-downvote: #7193ff;
    --social-radius: 12px;
    --accent: #e50914;
    --primary-blue: #2979ff;
}

.social-layout {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    gap: 30px;
    max-width: var(--container-width);
    margin: 100px auto 40px;
    padding: 0 20px;
}

.social-layout aside {
    position: -webkit-sticky;
    position: sticky;
    top: min(90px, calc(100vh - 100% - 24px));
    align-self: start;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.social-layout aside::-webkit-scrollbar {
    width: 4px;
}

.social-layout aside::-webkit-scrollbar-track {
    background: transparent;
}

.social-layout aside::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}

.social-layout aside::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 189, 248, 0.4);
}

/* Tablet: Hide right sidebar, keep left nav */
@media screen and (max-width: 1200px) {
    .social-layout {
        grid-template-columns: 250px 1fr;
    }

    .social-right {
        display: none;
    }
}

/* Mobile: Single column, hide left nav */
@media screen and (max-width: 900px) {
    .social-layout {
        grid-template-columns: 1fr;
        margin-top: 20px;
        gap: 20px;
    }

    .social-left {
        display: none;
    }
}

.nav-section {
    margin-bottom: 24px;
}

.nav-title {
    font-size: 0.7rem;
    font-weight: 800;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-left: 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: #b3b3b3;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.2s;
    text-decoration: none;
    cursor: pointer;
}

.nav-item i {
    font-size: 1.2rem;
    color: #888;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.nav-item:hover i {
    color: #fff;
}

.nav-item.active {
    background: rgba(229, 9, 20, 0.1);
    color: var(--primary-color);
    font-weight: 700;
}

.nav-item.active i {
    color: var(--primary-color);
}

/* Specific button in nav */
.nav-section button.nav-item {
    font-family: inherit;
    font-size: 0.95rem;
    padding-left: 12px;
}

/* Feed Headers/Widgets */
.right-widget {
    margin-bottom: 24px;
}

.widget-title {
    font-size: 0.75rem;
    font-weight: 800;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-title i {
    font-size: 1rem;
    color: #555;
}

.suggest-item {
    padding: 2px 0;
}

.suggest-item a:hover {
    background: transparent;
}

.btn-follow {
    background: #fff;
    color: #000;
    border: none;
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-follow:hover {
    background: #eee;
}

.social-card {
    background: var(--surface-color);
    border: 1px solid #2a2a2a;
    border-radius: var(--social-radius);
    padding: 16px;
    margin-bottom: 16px;
    transition: border-color 0.2s ease;
}

.search-wrapper {
    background: var(--surface-color) !important;
    border: 1px solid #2a2a2a !important;
}

.create-post-wrapper:hover {
    background: #1c1c1c !important;
}

.create-input {
    background: rgba(255, 255, 255, 0.03) !important;
    border-radius: 20px !important;
    border: 1px solid #333 !important;
    color: #888 !important;
    font-size: 0.95rem !important;
}

.social-card:hover .create-input {
    border-color: #444 !important;
}

.social-card:hover {
    border-color: #333;
}

.post {
    display: flex;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.post-vote {
    width: 48px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
    border-right: 1px solid var(--border-color);
}

.vote-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s;
}

.vote-btn:hover.up,
.vote-btn.active.up {
    color: var(--social-upvote);
    background: rgba(255, 69, 0, 0.1);
}

.vote-btn:hover.down,
.vote-btn.active.down {
    color: var(--social-downvote);
    background: rgba(113, 147, 255, 0.1);
}

.vote-count {
    font-size: 0.85rem;
    font-weight: 700;
    margin: 4px 0;
    transition: color 0.2s;
}

.vote-count.up-color {
    color: var(--social-upvote);
}

.vote-count.down-color {
    color: var(--social-downvote);
}

.post-content {
    padding: 16px;
    flex: 1;
}

.post-header {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.post-group {
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    margin-right: 4px;
}

.post-group:hover {
    text-decoration: underline;
}

.post-author {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 4px;
}

.post-author:hover {
    text-decoration: underline;
}

.post-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #fff;
    line-height: 1.4;
}

.post-text {
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.5;
    margin-bottom: 12px;
}

.post-text p {
    margin-bottom: 10px;
}

.post-text p:last-child {
    margin-bottom: 0;
}

.post-text h2 {
    font-size: 1.22rem;
    font-weight: 800;
    color: #ffffff;
    margin: 18px 0 10px 0;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 3px solid #f43f5e;
    padding-left: 10px;
}

.post-text h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #38bdf8;
    margin: 14px 0 8px 0;
}

.post-text blockquote {
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid #f59e0b;
    border-radius: 0 10px 10px 0;
    padding: 12px 16px;
    margin: 14px 0;
    color: #e2e8f0;
    font-style: italic;
}

/* Perfect Single-Row Alignment for IMDb & Genre/Year Chips */
.oio-review-quick-meta-card {
    margin: 0 0 14px 0 !important;
    padding: 5px 9px !important;
    border-radius: 8px !important;
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
}
.oio-review-quick-meta-card p,
.oio-review-quick-meta-card br {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.oio-rqm-hero-row,
.oio-rqm-tags-row,
.oio-rqm-genre-chips {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    line-height: 1 !important;
    vertical-align: middle !important;
}
.oio-rqm-score-badge,
.oio-rqm-chip,
.oio-rqm-year-chip,
.oio-rqm-votes-pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
    gap: 4px !important;
    height: 24px !important;
    line-height: 1 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}
.oio-rqm-verdict-badge {
    display: none !important;
}

/* Cinematic Photo Motion Effects (Subtle Zoom & Hover Float) */
@keyframes oioCinematicBreathe {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.035) translate3d(0, -2px, 0);
    }
    100% {
        transform: scale(1);
    }
}

.oio-article-still-wrap {
    position: relative;
    margin: 26px 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
    background: #080b12;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.6s ease, border-color 0.6s ease;
}

.oio-article-still-wrap:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.75), 0 0 30px rgba(56, 189, 248, 0.2);
}

.oio-article-still-wrap img {
    width: 100%;
    max-height: 540px;
    object-fit: cover;
    display: block;
    transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.8s ease;
    animation: oioCinematicBreathe 16s ease-in-out infinite alternate;
    will-change: transform;
}

.oio-article-still-wrap:hover img {
    transform: scale(1.06);
    animation-play-state: paused;
}

.post-media-container,
.post-image {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease;
    will-change: transform;
}

.post-media-container:hover .post-image,
.social-card .post-image:hover {
    transform: scale(1.03);
}

.post-footer {
    display: flex;
    gap: 4px;
}

.footer-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.footer-btn:hover {
    background: var(--social-bg-hover);
    color: #fff;
}

.footer-btn i {
    font-size: 1.1rem;
}

/* 1-Click Comment Emoji & Phrase Buttons */
.oio-comment-emoji-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 3px 6px;
    font-size: 1.05rem;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}
.oio-comment-emoji-btn:hover {
    transform: scale(1.3);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(244, 63, 94, 0.5);
}
.oio-comment-phrase-btn {
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #38bdf8;
    border-radius: 14px;
    padding: 3px 9px;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    line-height: 1.3;
}
.oio-comment-phrase-btn:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
    color: #fff;
    transform: translateY(-1px);
}

/* Top 10 Sidebar Collections Widget */
.oio-top10-item-row {
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.oio-top10-item-row:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    transform: translateX(3px);
}
.oio-top10-item-row:hover img {
    transform: scale(1.08);
}
.oio-top10-item-row img {
    transition: transform 0.3s ease;
}

/* Custom Movie Lists & Ranked Entries (IMDb / Letterboxd Style) */
.oio-ranked-movie-entry {
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}
.oio-ranked-movie-entry:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 189, 248, 0.35) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
}
.oio-ranked-movie-entry:hover img {
    transform: scale(1.05);
}
.oio-ranked-movie-entry img {
    transition: transform 0.4s ease;
}

.oio-poster-strip-wrap::-webkit-scrollbar {
    display: none;
}
.oio-poster-strip-wrap > div {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.oio-poster-strip-wrap > div:hover {
    transform: translateY(-4px) scale(1.04);
    z-index: 10;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
    border-color: rgba(56, 189, 248, 0.5) !important;
}

.oio-ml-item-row input:focus,
.oio-ml-item-row textarea:focus {
    border-color: #38bdf8 !important;
    outline: none !important;
}

/* =========================================
   Ikman.lk Style Classified Ads & Showcase
   ========================================= */
.oio-ikman-ad-wrapper {
    width: 100%;
}
.oio-ikman-gallery-card {
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.oio-ikman-gallery-card:hover {
    border-color: rgba(56, 189, 248, 0.4) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.75) !important;
}
.oio-ikman-gallery-card:hover img {
    transform: scale(1.02);
    transition: transform 0.4s ease;
}
.oio-ikman-gallery-card img {
    transition: transform 0.4s ease;
}
.oio-ikman-primary-cta-btn:hover {
    transform: translateY(-3px) scale(1.03);
    filter: brightness(1.15);
    box-shadow: 0 10px 30px rgba(0, 136, 204, 0.6) !important;
}
.oio-ikman-primary-cta-btn:active {
    transform: translateY(0) scale(0.98);
}
.oio-feed-classified-preview {
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}
.oio-feed-classified-preview:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5) !important;
}

/* Auto-Linked URLs in Posts & Comments */
.oio-auto-link {
    color: #38bdf8 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    font-weight: 700;
    transition: all 0.2s ease;
}
.oio-auto-link:hover {
    color: #f43f5e !important;
    text-shadow: 0 0 10px rgba(244, 63, 94, 0.5);
}

/* Sidebar Ad & Channel Showcase Cards */
.oio-sidebar-ad-card {
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}
.oio-sidebar-ad-card:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 189, 248, 0.4) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
}
.oio-sidebar-ad-card:hover img {
    transform: scale(1.05);
}

/* Global Circular Profile Avatars & Glow Rings */
img.avatar,
.avatar,
.avatar img,
.oio-author-avatar-link img,
.oio-author-avatar-wrap img,
.social-card .avatar {
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
}
.oio-author-avatar-link:hover {
    transform: scale(1.08);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.45) !important;
}

/* Full Clickable Ad Card */
.oio-ad-card-full-link {
    cursor: pointer;
    text-decoration: none !important;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}
.oio-ad-card-full-link:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 189, 248, 0.5) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6) !important;
}
.oio-ad-card-full-link:hover img {
    transform: scale(1.05);
}

/* In-Feed Sponsored / Free Community Ad Cards */
.oio-infeed-ad-card {
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}
.oio-infeed-ad-card:hover {
    transform: translateY(-2px);
    border-color: rgba(244, 63, 94, 0.65) !important;
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.65), 0 0 28px rgba(244, 63, 94, 0.25) !important;
}
.oio-infeed-post-ad-btn:hover {
    background: rgba(244, 63, 94, 0.2) !important;
    border-color: rgba(244, 63, 94, 0.6) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(244, 63, 94, 0.35);
}

/* Subtitle Gratitude & Reaction Buttons (Dark Theme High Contrast) */
.oio-sub-gratitude-strip {
    background: rgba(12, 18, 34, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.oio-sub-thanks-btn {
    border-radius: 20px !important;
    padding: 6px 14px !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    user-select: none !important;
    box-sizing: border-box !important;
    outline: none !important;
}

/* Default Dark Glass State for each reaction */
.oio-sub-thanks-btn.oio-stb-love {
    background: rgba(244, 63, 94, 0.12) !important;
    border: 1.5px solid rgba(244, 63, 94, 0.45) !important;
    color: #ff6b81 !important;
}
.oio-sub-thanks-btn.oio-stb-fire {
    background: rgba(245, 158, 11, 0.12) !important;
    border: 1.5px solid rgba(245, 158, 11, 0.45) !important;
    color: #fbbf24 !important;
}
.oio-sub-thanks-btn.oio-stb-popcorn {
    background: rgba(56, 189, 248, 0.12) !important;
    border: 1.5px solid rgba(56, 189, 248, 0.45) !important;
    color: #38bdf8 !important;
}

/* Hover State */
.oio-sub-thanks-btn:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5) !important;
}
.oio-sub-thanks-btn.oio-stb-love:hover {
    background: rgba(244, 63, 94, 0.25) !important;
    border-color: #f43f5e !important;
    color: #fff !important;
}
.oio-sub-thanks-btn.oio-stb-fire:hover {
    background: rgba(245, 158, 11, 0.25) !important;
    border-color: #f59e0b !important;
    color: #fff !important;
}
.oio-sub-thanks-btn.oio-stb-popcorn:hover {
    background: rgba(56, 189, 248, 0.25) !important;
    border-color: #38bdf8 !important;
    color: #fff !important;
}

/* Active State (When this specific reaction is chosen) */
.oio-sub-thanks-btn.active.oio-stb-love {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.35), rgba(225, 29, 72, 0.45)) !important;
    border-color: #f43f5e !important;
    color: #fff !important;
    box-shadow: 0 0 16px rgba(244, 63, 94, 0.5) !important;
    transform: scale(1.05) !important;
}
.oio-sub-thanks-btn.active.oio-stb-fire {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.35), rgba(217, 119, 6, 0.45)) !important;
    border-color: #f59e0b !important;
    color: #fff !important;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.5) !important;
    transform: scale(1.05) !important;
}
.oio-sub-thanks-btn.active.oio-stb-popcorn {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.35), rgba(2, 132, 199, 0.45)) !important;
    border-color: #38bdf8 !important;
    color: #fff !important;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.5) !important;
    transform: scale(1.05) !important;
}

/* ============================
   Community Polls Interactive Styles
   ============================ */
.oio-composer-avatar-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
}

.oio-poll-option-row {
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}
.oio-poll-option-row:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.4) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}
.oio-poll-option-row.voted {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.25) !important;
}
.oio-poll-option-row img {
    transition: transform 0.3s ease;
}
.oio-poll-option-row:hover img {
    transform: scale(1.1);
}

.oio-poll-builder-row input:focus {
    border-color: #fbbf24 !important;
    outline: none !important;
}

.oio-modal-ml-row {
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.oio-modal-ml-row:hover {
    border-color: rgba(56, 189, 248, 0.3) !important;
    background: rgba(0, 0, 0, 0.45) !important;
}
.oio-modal-ml-row input:focus,
.oio-modal-ml-row textarea:focus {
    border-color: #38bdf8 !important;
    outline: none !important;
}
.oio-modal-poster-preview {
    transition: transform 0.25s ease;
}
.oio-modal-ml-row:hover .oio-modal-poster-preview {
    transform: scale(1.08);
}

/* Up/Down Arrow Votes Pill Styling */
.oio-arrow-votes-pill {
    transition: all 0.2s ease;
}
.oio-arrow-votes-pill:hover {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}
.oio-arrow-votes-pill .vote-btn {
    transition: transform 0.15s ease, color 0.2s ease;
}
.oio-arrow-votes-pill .vote-btn.up:hover {
    color: #f43f5e !important;
    transform: scale(1.25);
}
.oio-arrow-votes-pill .vote-btn.down:hover {
    color: #38bdf8 !important;
    transform: scale(1.25);
}
.oio-arrow-votes-pill .vote-btn:active {
    transform: scale(0.9);
}
.oio-arrow-votes-pill .vote-count {
    transition: color 0.2s ease;
}
.oio-arrow-votes-pill .vote-count.up-color {
    color: #f43f5e !important;
}
.oio-arrow-votes-pill .vote-count.down-color {
    color: #38bdf8 !important;
}

/* ============================
   Notification Bell & Dropdown
   ============================ */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Notification Wrapper */
.oio-notif-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* Bell Button */
.oio-notif-bell {
    position: relative;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.2s, transform 0.2s;
}

.oio-notif-bell:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.08);
}

.oio-notif-bell .community-notify-badge,
.oio-notif-bell .user-notify-badge {
    position: absolute;
    top: -5px;
    right: -5px;
}

/* Dropdown Panel */
.oio-notif-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 340px;
    background: #1e1e2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    overflow: hidden;
}

.oio-notif-dropdown.oio-notif-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media screen and (max-width: 900px) {
    .oio-notif-dropdown {
        position: fixed;
        top: 76px;
        left: 10px;
        right: 10px;
        width: auto;
        max-width: none;
    }
}

/* Tabs inside Dropdown */
.oio-notif-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 14px 14px 0 0;
}

.oio-notif-tab {
    flex: 1;
    background: none;
    border: none;
    color: #888;
    padding: 14px 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
    position: relative;
}

.oio-notif-tab:hover {
    color: #fff;
    background: rgba(255,255,255,0.03);
}

.oio-notif-tab.active {
    color: #fff;
    border-bottom-color: var(--accent, #00ff88);
}

.oio-tab-badge {
    background: #e50914;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
}

.oio-notif-see-all {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent, #00ff88);
    text-decoration: none;
    transition: opacity 0.2s;
}

.oio-notif-see-all:hover {
    opacity: 0.75;
}

/* Notification List */
.oio-notif-list {
    max-height: 380px;
    overflow-y: auto;
    padding: 6px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.oio-notif-list::-webkit-scrollbar {
    width: 4px;
}

.oio-notif-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

/* Loading State */
.oio-notif-loading {
    text-align: center;
    padding: 24px;
    color: #888;
    font-size: 0.9rem;
}

/* Individual Notification Item */
.oio-notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    color: #ddd;
    transition: background 0.15s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.oio-notif-item:last-child {
    border-bottom: none;
}

.oio-notif-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.oio-notif-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.oio-notif-body {
    flex: 1;
    min-width: 0;
}

.oio-notif-title {
    font-size: 0.88rem;
    font-weight: 500;
    color: #eee;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 3px;
}

.oio-notif-meta {
    font-size: 0.76rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 8px;
}

.oio-notif-meta .oio-notif-stats {
    display: flex;
    gap: 8px;
}

.oio-notif-meta .oio-notif-stat {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.73rem;
    color: #777;
}

/* Empty State */
.oio-notif-empty {
    text-align: center;
    padding: 24px;
    color: #888;
    font-size: 0.9rem;
}

/* SEO Breadcrumbs */
.oio-breadcrumbs {
    padding: 15px 0;
    margin-bottom: 5px;
    font-size: 0.85rem;
    color: #999;
}

.oio-breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.oio-breadcrumbs li {
    display: inline-flex;
    align-items: center;
}

.oio-breadcrumbs a {
    color: #ddd; /* Light color for contrast on dark background */
    text-decoration: none;
    transition: color 0.2s;
}

.oio-breadcrumbs a:hover {
    color: #e50914; /* Netflix Red */
}

.oio-breadcrumbs .separator {
    margin: 0 8px;
    color: #555;
    font-size: 0.8rem;
}

.oio-breadcrumbs .current span {
    color: #fff;
    font-weight: 500;
}

/* Telegram Sidebar Widget */
.oio-tg-sidebar-widget {
    background: #1a1a1a;
    border-left: 3px solid #0088cc !important;
}

.oio-tg-sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.oio-tg-sidebar-icon {
    width: 32px;
    height: 32px;
    color: #0088cc;
    flex-shrink: 0;
}

.oio-tg-sidebar-icon svg {
    width: 100%;
    height: 100%;
}

/* Telegram Search Notice - Compact Premium v2 */
.oio-tg-notice {
    margin: 20px 0;
    padding: 15px 20px;
    background: #1a1a1a;
    background: linear-gradient(145deg, #1a1a1a 0%, #111111 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 3px solid #0088cc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: slideUpFade 0.6s ease-out forwards;
}

.oio-tg-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.oio-tg-icon {
    background: linear-gradient(135deg, #0088cc 0%, #00aaff 100%);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 136, 204, 0.3);
}

.oio-tg-icon svg {
    width: 24px;
    height: 24px;
}

.oio-tg-text h4 {
    margin: 0;
    font-size: 0.95rem;
    color: #fff;
    font-weight: 700;
}

.oio-tg-text p {
    margin: 2px 0 0 0;
    font-size: 0.82rem;
    color: #999;
    line-height: 1.4;
}

.oio-tg-btn-wrap {
    flex-shrink: 0;
}

.oio-tg-btn {
    background: #0088cc;
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.oio-tg-btn:hover {
    background: #00aaff;
    transform: translateY(-1px);
}

@media screen and (max-width: 900px) {
    .oio-tg-notice {
        flex-direction: column;
        text-align: center;
        padding: 15px;
        gap: 12px;
    }
    .oio-tg-content {
        flex-direction: column;
        gap: 10px;
    }
    .oio-tg-btn {
        width: 100%;
        justify-content: center;
    }
}
