:root {
    --bg-color: #000000;
    --accent-color: #E31B23;
    --text-color: #FFFFFF;
    --font-family: 'Open Sans', Arial, sans-serif;
    --card-height: 270px;
}


body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    overflow-x: hidden;
    /* Reset scrollbar to browser default */
    scrollbar-width: auto;
    scrollbar-color: auto;
}

img {
    max-width: 100%;
    height: auto;
}

/* Remove all custom scrollbars */
::-webkit-scrollbar {
    width: auto !important;
    height: auto !important;
}

::-webkit-scrollbar-thumb {
    background: auto !important;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.logo span {
    color: var(--text-color);
}

.logo .cine {
    color: var(--accent-color);
}

nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover, nav a.active {
    color: var(--accent-color);
}

/* Hamburger menu button */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1100;
    padding: 10px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-support {
    background-color: var(--accent-color);
    color: white;
    padding: 10px 25px;
    border-radius: 30px; /* Capsule shape */
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.btn-support:hover {
    background-color: transparent;
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

/* Info Icon & Tooltip */
.info-icon-wrapper {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.info-icon-wrapper.has-badge {
    right: auto;
    left: 10px;
}

.info-icon {
    width: 22px;
    height: 22px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.info-icon:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.info-tooltip {
    position: absolute;
    top: 30px;
    right: 0;
    width: 280px;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid var(--accent-color);
    color: white;
    padding: 15px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    pointer-events: none;
    text-align: left;
    backdrop-filter: blur(10px);
    z-index: 1000;
}

/* Fix for icons on the left side of the card */
.info-icon-wrapper.has-badge .info-tooltip {
    right: auto;
    left: 0;
}

.info-icon-wrapper:hover .info-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

@media (max-width: 768px) {
    .info-tooltip {
        position: fixed;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        transform: translate(-50%, -50%) scale(0.9) !important;
        width: 85vw !important;
        max-width: 320px !important;
        height: auto !important;
        z-index: 10001;
        pointer-events: auto; /* Allow interaction if needed */
        box-sizing: border-box;
    }

    .info-icon-wrapper:hover .info-tooltip {
        transform: translate(-50%, -50%) scale(1) !important;
        opacity: 1;
        visibility: visible;
    }
}

/* Official Badge Elite Aesthetic */
.official-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 48px;
    height: 48px;
    background: url('images/official_badge.png') no-repeat center;
    background-size: contain;
    z-index: 9999; /* Boosted to stay above everything effectively */
    pointer-events: auto; /* Enable for tooltip */
    filter: drop-shadow(0 4px 15px rgba(212, 175, 55, 0.4));
    animation: badge-glow-pulse 4s infinite ease-in-out;
    cursor: pointer;
    transition: all 0.3s ease;
}

.official-badge:hover {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 8px 30px rgba(212, 175, 55, 0.9));
}

@keyframes badge-glow-pulse {
    0% { 
        transform: scale(1) rotate(0deg); 
        filter: drop-shadow(0 4px 15px rgba(212, 175, 55, 0.4)); 
    }
    50% { 
        transform: scale(1.08) rotate(5deg); 
        filter: drop-shadow(0 8px 25px rgba(212, 175, 55, 0.7)); 
    }
    100% { 
        transform: scale(1) rotate(0deg); 
        filter: drop-shadow(0 4px 15px rgba(212, 175, 55, 0.4)); 
    }
}

.official-auth-text {
    font-style: italic;
    color: #D4AF37;
    font-size: 14px;
    margin-top: 5px;
    opacity: 0.9;
}

.creator-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid #D4AF37;
    color: #D4AF37;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    margin-top: 15px;
    transition: all 0.3s;
}

.creator-link-btn:hover {
    background: #D4AF37;
    color: #000;
}

/* Video Grid */
.videos-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding: 0 50px 50px;
    transition: opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 1;
    transform: translateY(0);
    will-change: opacity, transform;
}

.videos-grid-container.grid-hidden {
    opacity: 0;
    transform: translateY(20px);
}

@media (max-width: 768px) {
    .videos-grid-container {
        grid-template-columns: 1fr;
        padding: 0;
        gap: 0;
    }
}

.video-original-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--accent-color);
    text-decoration: none;
    border: 1px solid var(--accent-color);
    padding: 4px 10px;
    border-radius: 4px;
    transition: all 0.3s;
}

.video-original-link:hover {
    background: var(--accent-color);
    color: white;
}

.icons {
    display: flex;
    gap: 20px;
}

.icon {
    width: 24px;
    height: 24px;
    fill: var(--text-color);
    cursor: pointer;
    transition: fill 0.3s ease;
}

.icon:hover {
    fill: var(--accent-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    padding: 0 50px;
    background-color: #000;
    background-size: cover;
    background-position: center;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%),
        linear-gradient(to top, rgba(0, 0, 0, 1) 0%, transparent 30%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin-top: 15vh;
    /* Moved lower */
}

.hero h1,
.hero .hero-title {
    font-size: 64px;
    margin: 0 0 10px 0;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: bold;
}

.rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #f5c518;
}

.hero-desc {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: #c2151d;
    transform: scale(1.05);
}

.btn-primary .play-icon {
    fill: #E31B23;
    background: #fff;
    border-radius: 50%;
}

.card-small {
    position: relative;
    border-radius: 8px;
    
}



.card-title {
    margin-top: 5px; /* Tight attachment */
    font-size: 14px;
    color: var(--text-color);
    text-align: left;
    width: 100%;
    font-weight: 600;
    line-height: 1.4;
    padding: 0 5px;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    flex-shrink: 0; /* Prevent title from shrinking */
}

.card-meta {
    width: 100%;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px; /* Indent meta text for better hierarchy */
}

.card-meta .dot {
    opacity: 0.5;
}

.card-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
    scroll-snap-align: center;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 10px;
    border-radius: 12px;
}

.card-item.card-hidden {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

.videos-grid-container .card-item {
    padding: 0;
}

.card-item:hover {
    transform: translateY(-5px);
    z-index: 100;
}

@media (max-width: 768px) {
    .card-item {
        padding: 0 0 24px 0;
        border-radius: 0;
        box-shadow: none;
        border-bottom: 0px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }
}

.card-item:hover .card-title {
    color: var(--accent-color);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    padding: 15px 30px;
    border-radius: 20px;
    /* Rounded corners */
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    backdrop-filter: blur(5px);
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 50px;
    margin: 60px 0 0 50px;
}

.section-title {
    margin: 0;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.see-all-btn {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    transition: color 0.3s;
}

.see-all-btn:hover {
    color: var(--accent-color);
}

.section-ctrls {
    display: flex;
    gap: 10px;
}

.ctrl-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}


.ctrl-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.section-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 24px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.top10-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 60px 50px 40px 50px;
}

.top10-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top10-title h2 {
    font-size: 80px;
    margin: 0;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--accent-color);
    line-height: 1;
}

.top10-title .sub-title {
    font-size: 18px;
    color: var(--text-color);
    letter-spacing: 5px;
    line-height: 1.2;
    text-transform: uppercase;
    font-weight: 400;
}

.cards-container {
    display: flex;
    flex-wrap: nowrap;
    padding: 0 50px;
    gap: 40px;
    padding-bottom: 40px;
    overflow-x: auto; /* Allow scroll for the snap functionality */
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory; 
    scrollbar-width: none; /* Hide scrollbar for cleaner look */
}

#soon-container, 
#all-movies-container {
    display: flex;
    gap: 15px; /* Reduced gap for tighter look */
    padding: 0 50px 40px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

#soon-container::-webkit-scrollbar,
#all-movies-container::-webkit-scrollbar {
    display: none;
}

#soon-container .card-item,
#all-movies-container .card-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: auto !important; /* Allow growing to fit title */
}

#soon-container .card-item.card-1-1,
#all-movies-container .card-item.card-1-1 {
    width: var(--card-height);
}

#soon-container .card-item.card-16-9,
#all-movies-container .card-item.card-16-9 {
    width: calc(var(--card-height) * 16 / 9);
}

#soon-container .card-1-1, 
#all-movies-container .card-1-1,
#soon-container .card-16-9,
#all-movies-container .card-16-9 {
    height: var(--card-height);
    width: 100%;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
}

/* Mobile responsive basis removed to allow natural widths */

/* Mobile responsive basis removed to allow natural widths */

#top10-container {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: hidden;
    padding-bottom: 60px; /* Space for titles */
}

.rank-card-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 260px;
    height: 320px;
    margin-right: 10px;
    z-index: 1;
    scroll-snap-align: center;
}


/* Ensure subsequent cards have higher z-index for the overlap effect */
.rank-card-wrapper:nth-child(2) { z-index: 2; }
.rank-card-wrapper:nth-child(3) { z-index: 3; }
.rank-card-wrapper:nth-child(4) { z-index: 4; }
.rank-card-wrapper:nth-child(5) { z-index: 5; }


.rank-number {
    font-size: 220px;
    font-weight: 800;
    color: var(--bg-color);
    -webkit-text-stroke: 2px var(--accent-color);
    line-height: 1;
    position: absolute;
    left: -40px;
    bottom: -15px; /* Lower position as requested */
    z-index: 1;
    user-select: none;
    font-family: 'Open Sans', sans-serif;
    text-shadow: 0 0 40px rgba(0, 0, 0, 0.9); /* Added depth shadow */
}



.rank-poster-container {
    position: relative;
    z-index: 2;
    width: calc(var(--card-height) * 0.68); /* ~180px at 270px height */
    height: var(--card-height);
    margin-left: 60px; /* Reduced gap from number */
    margin-top: auto; /* Push to bottom of wrapper but before title */
    /* Offset for number to show */
    border-radius: 8px;
    
    box-shadow: -15px 0 30px rgba(0, 0, 0, 0.8), 0 10px 25px rgba(0, 0, 0, 0.5); /* Stronger left shadow for overlap visibility */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}


.rank-poster-container:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(227, 27, 35, 0.3);
    z-index: 100; /* Move to front in Top 5 section */
}

.rank-poster-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px; /* Added since parent overflow is disabled */
}


/* .rank-card-title removed */

.card-large {
    min-width: 250px;
    height: 380px;
    background-color: #111;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 2;
    /* Lower than number-bg */
}

.card-large:hover {
    transform: translateY(-10px);
}

.card-1-1 {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    position: relative;
}

.card-16-9 {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    position: relative;
}


.card-1-1:hover,
.card-16-9:hover {
    /* Reduced scale for cleaner look */
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .card-1-1, .card-16-9 {
        border-radius: 0;
        box-shadow: none;
        width: 100%;
        min-width: 100%;
    }
}

/* Watch Page */
.watch-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100vh;
    box-sizing: border-box;
    
}

.watch-header {
    text-align: center;
    margin-bottom: 20px;
    background: none;
    position: relative;
}

.watch-header-title {
    font-size: 40px;
    margin: 0;
    color: var(--bg-color);
    text-shadow: -1px -1px 0 var(--text-color), 1px -1px 0 var(--text-color), -1px 1px 0 var(--text-color), 1px 1px 0 var(--text-color);
    /* To make black pop on black */
}

.watch-header-title .cine {
    color: var(--accent-color);
    text-shadow: none;
}

.movie-title {
    font-size: 24px;
    color: var(--text-color);
    margin-top: 10px;
    margin-bottom: 30px;
}

.player-container {
    width: 95%;
    max-width: 1200px;
    aspect-ratio: 16 / 9;
    height: auto;
    max-height: 70vh;
    border-radius: 10px;
    
    box-shadow: 0 10px 30px rgba(227, 27, 35, 0.2);
}

.logo-section,
.title-section {
    text-align: center;
    width: 100%;
}

#rumble-player,
.rumble {
    width: 100%;
    height: 100%;
}

/* Footer Section */
.site-footer {
    background-color: #080808;
    color: #a0a0a0;
    padding: 60px 50px 30px;
    margin-top: 50px;
    border-top: 1px solid rgba(227, 27, 35, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h4 {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 18px;
    position: relative;
    display: inline-block;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-disclaimer {
    font-size: 14px;
    line-height: 1.6;
    margin-top: 20px;
    max-width: 400px;
    text-align: inherit;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 15px;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.contact-email {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-email:hover {
    text-decoration: underline;
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.social-link:hover {
    background: #1877F2; /* Facebook Blue on hover */
    border-color: #1877F2;
    color: #fff;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(24, 119, 242, 0.4);
}

.social-link svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.5px; /* Thicker lines for better icon definition */
}

.social-text-icon {
    font-size: 22px;
    font-weight: 800;
    font-family: 'Open Sans', sans-serif;
    line-height: 1;
    margin-top: 0;
}

/* Push Notification Button */
.push-btn {
    background: none;
    border: none;
    color: #a0a0a0;
    font-size: 15px;
    padding: 0;
    cursor: pointer;
    text-align: left;
    transition: color 0.3s;
    font-family: inherit;
}

.push-btn:hover {
    color: var(--accent-color);
}

.push-btn.subscribed {
    color: #4CAF50;
    cursor: default;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #111;
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    border-radius: 20px;
    border: 1px solid rgba(227, 27, 35, 0.3);
    display: flex;
    flex-direction: column;
    
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.modal-header {
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    margin: 0;
    font-size: 28px;
    color: var(--text-color);
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.3s ease;
}

.close-modal:hover {
    transform: rotate(90deg);
    color: var(--accent-color);
}

.modal-grid {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    justify-items: center;
}

/* Scrollbar for modal */
.modal-grid::-webkit-scrollbar {
    width: 8px;
}
.modal-grid::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

.footer-bottom {

    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 50px;
    padding-top: 30px;
    text-align: center;
    font-size: 14px;
}

@media (max-width: 768px) {
    :root {
        --card-height: 220px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .site-footer {
        padding: 40px 15px 20px;
        margin-top: 30px;
        text-align: center;
    }

    .footer-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-bottom: 30px;
    }

    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-disclaimer {
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
        font-size: 13px;
    }

    .footer-links {
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-section .logo-img {
        height: auto !important;
        max-height: 60px;
        width: auto;
        margin-bottom: 10px;
    }

    /* Global Responsive Adjustments */
    header {
        padding: 15px 20px;
        justify-content: space-between;
    }

    .hamburger {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        backdrop-filter: blur(10px);
    }

    nav.active {
        right: 0;
    }

    nav a {
        font-size: 24px;
    }

    /* burger to X animation */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -7px);
    }

    .hero h1, .hero .hero-title {
        font-size: 32px;
        line-height: 1.1;
        margin-bottom: 15px;
    }

    .hero-desc {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .hero-meta {
        font-size: 14px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .btn-primary {
        padding: 12px 24px;
        font-size: 16px;
    }

    .section-header {
        margin: 40px 20px 0 20px;
        padding-right: 0;
    }

    .section-title {
        font-size: 20px;
    }

    .top10-title {
        margin: 40px 20px 20px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .top10-title h2 {
        font-size: 50px;
    }

    .top10-title .sub-title {
        font-size: 14px;
        letter-spacing: 2px;
    }

    .cards-container {
        padding: 0 20px;
        gap: 20px;
    }

    .rank-card-wrapper {
        min-width: 160px;
        height: 320px;
        margin-right: -15px;
    }

    .rank-number {
        font-size: 150px;
        left: -15px;
        bottom: -15px;
    }

    .rank-poster-container {
        margin-left: 55px;
        width: 108px; /* Maintain ratio on mobile */
    }

    .rank-card-title {
        margin-left: 55px;
        width: 108px;
        font-size: 12px;
    }

    .card-16-9 {
        min-width: calc(var(--card-height) * 1.77);
    }

    .card-1-1 {
        min-width: var(--card-height);
    }


    .section-ctrls {
        display: flex; /* Show arrows on mobile as swipe is disabled */
    }

    .see-all-btn {
        font-size: 12px;
    }

}

@media (max-width: 480px) {
    :root {
        --card-height: 180px;
    }

    .hero h1, .hero .hero-title {
        font-size: 26px;
    }


    .hero {
        height: 75vh;
    }

    .hero-meta {
        font-size: 13px;
    }

    .hero-desc {
        font-size: 13px;
        line-clamp: 3;
        -webkit-line-clamp: 3;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 30px;
    }

    .rank-card-wrapper {
        min-width: 140px;
        height: 240px;
        margin-right: -15px;
    }

    .rank-number {
        font-size: 110px;
        bottom: 10px;
    }

    .modal-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        padding: 20px;
        gap: 20px;
    }

    .modal-content {
        width: 95%;
        height: 95vh;
    }



    .rank-poster-container {
        margin-left: 45px;
    }

    .rank-card-title {
        left: 45px;
        width: calc(var(--card-height) * 0.68);
        font-size: 11px;
    }

    .card-16-9 {
        min-width: calc(var(--card-height) * 1.77);
    }

    .card-1-1 {
        min-width: var(--card-height);
    }


    /* Watch Page Mobile */
    .watch-container {
        height: auto;
        min-height: 100vh;
        padding: 40px 15px;
        gap: 30px;
        overflow-y: auto;
    }

    .watch-container .logo-img {
        height: 60px !important;
    }

    .player-container {
        width: 100%;
        max-height: none;
    }

    .movie-title {
        font-size: 18px !important;
    }
}

/* Content Pages */
.content-page {
    padding: 150px 50px 100px;
    max-width: 900px;
    margin: 0 auto;
    min-height: 60vh;
}

.content-page h1 {
    font-size: 48px;
    margin-bottom: 40px;
    color: var(--text-color);
    position: relative;
    padding-bottom: 15px;
}

.content-page h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
}

.content-page p {
    font-size: 18px;
    line-height: 1.8;
    color: #cccccc;
    margin-bottom: 30px;
}

.info-block {
    background: rgba(212, 175, 55, 0.05);
    border-left: 4px solid #D4AF37;
    padding: 30px;
    border-radius: 0 12px 12px 0;
    margin: 40px 0;
}

.info-block h3 {
    color: #D4AF37;
    margin-top: 0;
    font-size: 22px;
}

.technical-disclaimer {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
    font-style: italic;
}

@media (max-width: 768px) {
    .content-page {
        padding: 120px 20px 60px;
    }

    .content-page h1 {
        font-size: 32px;
    }

    /* Top 5 Mobile Optimization */
    .rank-card-wrapper {
        min-width: 140px; /* More compact width */
        height: 200px;
        margin-right: 25px; /* Added spacing to prevent overlap */
        z-index: 1 !important; /* Reset z-index stacking */
    }

    /* Remove specific z-index stacking on mobile to avoid title overlap */
    .rank-card-wrapper:nth-child(n) { z-index: 1; }

    .rank-number {
        font-size: 110px;
        left: -15px;
        bottom: 0;
        -webkit-text-stroke: 1px var(--accent-color);
    }

    .rank-poster-container {
        width: 110px;
        height: 165px;
        margin-left: 30px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5); /* Simpler shadow for mobile */
    }

    .rank-card-title {
        margin-left: 30px;
        width: 110px;
        font-size: 11px;
        margin-top: 8px;
        line-height: 1.2;
        overflow: visible; /* Show full title if it wraps */
        -webkit-line-clamp: 3; /* Allow up to 3 lines on mobile */
    }
}

@media (max-width: 480px) {
    .rank-card-wrapper {
        min-width: 130px;
        margin-right: 20px;
    }

    .rank-number {
        font-size: 100px;
        left: -12px;
    }

    .rank-poster-container {
        width: 95px;
        height: 145px;
        margin-left: 25px;
    }

    .rank-card-title {
        margin-left: 25px;
        width: 95px;
        font-size: 10px;
    }
}

/* Support Modal Styles */
.support-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.support-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.support-modal-content {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 95%;
    max-width: 450px;
    max-height: 90vh; /* Limit height */
    border-radius: 24px;
    
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.support-modal-overlay.active .support-modal-content {
    transform: scale(1);
}

.support-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
}

.support-modal-title {
    margin: 0;
    font-size: 20px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.support-accent-bar {
    width: 4px;
    height: 24px;
    background: #E31B23;
    border-radius: 2px;
}

.support-close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.support-close-btn:hover {
    color: #fff;
    transform: rotate(90deg);
}

.support-modal-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto; /* Enable scrolling */
    flex: 1;
}

/* Custom Scrollbar for Modal Body */
.support-modal-body::-webkit-scrollbar {
    width: 5px;
}

.support-modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.support-modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.support-modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

.support-modal-desc {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    text-align: center;
    margin-bottom: 10px;
}

.support-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 16px;
    transition: all 0.3s;
    border-left: 4px solid #444;
}

.support-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.tbc-card { border-left-color: #00ADEF; }
.bog-card { border-left-color: #F36E21; }

.support-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.support-card-icon {
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.tbc-card .support-card-icon { color: #00ADEF; }
.bog-card .support-card-icon { color: #F36E21; }

.support-card-info h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.support-account-holder {
    margin: 2px 0;
    font-size: 13px;
    color: #fff;
    font-weight: 500;
    opacity: 0.9;
}

.support-card-info span {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
}

.support-copy-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.support-iban {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 12px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    word-break: break-all;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.support-copy-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #000;
    border: none;
    padding: 0 15px;
    height: 36px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.support-copy-btn i {
    width: 14px;
    height: 14px;
}

.support-copy-btn:hover {
    background: #e0e0e0;
    transform: scale(1.02);
}

.support-copy-btn.copied {
    background: #4CAF50;
    color: #fff;
}

.support-modal-footer {
    padding: 15px;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
}

.support-modal-footer p {
    margin: 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 480px) {
    .support-modal-content {
        width: 95%;
    }
    .support-copy-row {
        flex-direction: column;
        align-items: stretch;
    }
    .support-copy-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Category Sub-Navbar Styling */
.category-navbar {
    padding: 0 50px;
}

@media (max-width: 768px) {
    .category-navbar {
        padding: 0 20px;
    }
}

.category-nav-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-family: inherit;
}

.category-nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.category-nav-item.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(227, 27, 35, 0.3);
}

.category-navbar::-webkit-scrollbar {
    display: none;
}