:root {
  --gd45-color-hex-e0e0e0: #e0e0e0;
  --gd45-color-hex-121212: #121212;
  --gd45-color-hex-1e1e1e: #1e1e1e;
  --gd45-color-hex-ffffff: white;
  --text-on-theme: var(--gd45-color-hex-ffffff);
  --gd45-icon-primary: var(--gd45-color-hex-e0e0e0);
  --gd45-color-rgba-0-0-0-0-3: rgba(0, 0, 0, 0.3);
  --gd45-color-hex-ff6b6b: #ff6b6b;
  --gd45-color-rgba-255-107-107-0-1: rgba(255, 107, 107, 0.1);
  --gd45-color-rgba-255-107-107-0-15: rgba(255, 107, 107, 0.15);
  --gd45-color-hex-2a2a2a: #2a2a2a;
  --gd45-color-hex-444444: #444;
  --gd45-color-rgba-0-0-0-0-6: rgba(0, 0, 0, 0.6);
  --gd45-color-rgba-68-68-68-0-5: rgba(68, 68, 68, 0.5);
  --gd45-color-hex-888888: #888;
  --gd45-color-hex-333333: #333;
  --gd45-color-hex-b0b0b0: #b0b0b0;
  --gd45-color-rgba-0-0-0-0-4: rgba(0, 0, 0, 0.4);
  --gd45-color-rgba-255-107-107-0-9: rgba(255, 107, 107, 0.9);
  --gd45-color-rgba-255-255-255-0-2: rgba(255, 255, 255, 0.2);
  --gd45-color-hex-ff5252: #ff5252;
  --gd45-color-rgba-255-107-107-0-3: rgba(255, 107, 107, 0.3);
  --gd45-color-rgba-255-107-107-0-4: rgba(255, 107, 107, 0.4);
  --gd45-color-hex-ff4444: #ff4444;
  --gd45-color-rgba-255-255-255-0-05: rgba(255, 255, 255, 0.05);
  --gd45-color-rgba-255-255-255-0-1: rgba(255, 255, 255, 0.1);
  --gd45-color-rgba-255-107-107-0-5: rgba(255, 107, 107, 0.5);
  --gd45-color-hex-000000: Black;
  --gd45-color-rgba-255-215-0-0-6: rgba(255, 215, 0, 0.6);
  --gd45-color-rgba-255-255-255-0-03: rgba(255, 255, 255, 0.03);
  --gd45-color-rgba-255-255-255-0-08: rgba(255, 255, 255, 0.08);
  --gd45-color-rgba-0-0-0-0-2: rgba(0, 0, 0, 0.2);
  --gd45-color-rgba-0-0-0-0-8: rgba(0, 0, 0, 0.8);
  --gd45-color-hex-666666: #666;
  --gd45-color-rgba-255-255-255-0-12: rgba(255, 255, 255, 0.12);
  --gd45-color-hex-ff8e8e: #ff8e8e;
  --gd45-color-hex-1a1a1a: #1a1a1a;
  --gd45-color-hex-3a3a3a: #3a3a3a;
  --gd45-color-rgba-68-68-68-0-3: rgba(68, 68, 68, 0.3);
  --gd45-color-rgba-255-107-107-0-2: rgba(255, 107, 107, 0.2);
  --gd45-color-rgba-255-255-255-0-15: rgba(255, 255, 255, 0.15);
  --gd45-color-rgba-255-255-255-0-5: rgba(255, 255, 255, 0.5);
  --gd45-color-hex-ff7979: #ff7979;
  --gd45-color-hex-2c2c2c: #2c2c2c;
  --gd45-color-rgba-18-18-18-0-9: rgba(18, 18, 18, 0.9);
  --gd45-color-hex-555555: #555;
  --gd45-color-hex-777777: #777;
  --gd45-color-rgba-18-18-18-0-95: rgba(18, 18, 18, 0.95);
  --gd45-color-rgba-0-0-0-0-5: rgba(0, 0, 0, 0.5);
  --gd45-color-hex-e05353: #e05353;
  --gd45-color-rgba-255-107-107-0-35: rgba(255, 107, 107, 0.35);
  --gd45-color-rgba-255-107-107-0-12: rgba(255, 107, 107, 0.12);
  --gd45-color-rgba-255-82-82-0-15: rgba(255, 82, 82, 0.15);
  --gd45-color-rgba-255-82-82-0-5: rgba(255, 82, 82, 0.5);
  --gd45-color-transparent: transparent;
  --gd45-select-indicator: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ff6b6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --gd45-rank-gold: #de9f17;
  --gd45-rank-silver: #a2a2a4;
  --gd45-rank-bronze: #b05d2c;
  --gd45-rank-neutral: #8a8a8a;
}

/*
Theme Name: 45. Cinema Rank
Description: Dark cinema theme with video ranking section and responsive grid layout.
Version: 1.0.0
Author: Developer
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cinema_rank
*/

/* Universal Box Sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: var(--gd45-color-transparent);
    text-decoration: none;
}


/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gd45-color-hex-e0e0e0);
    background: var(--gd45-color-hex-121212);
}

/* Header */
.header {
    background: var(--gd45-color-hex-1e1e1e);
    color: var(--gd45-color-hex-ffffff);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px var(--gd45-color-rgba-0-0-0-0-3);
    position: relative;
    z-index: 1200;
    /* Ensure header is above other content */
}

.logo-link {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

.nav {
    display: flex;
    gap: 2rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
}

.nav-link {
    color: var(--gd45-color-hex-ffffff);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    height: auto;
    line-height: 1.2;
    box-sizing: border-box;
}

.nav-link:hover {
    color: var(--gd45-color-hex-ff6b6b);
    background: var(--gd45-color-rgba-255-107-107-0-1);
}

.nav-link.active {
    color: var(--gd45-color-hex-ff6b6b);
    background: var(--gd45-color-rgba-255-107-107-0-15);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: var(--gd45-color-hex-ff6b6b);
    border-radius: 1px;
}

/* Genre Dropdown */
.genre-dropdown {
    position: relative;
    display: inline-block;
}

.genre-btn {
    background: none;
    border: none;
    font-size: inherit;
    font-family: inherit;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    color: var(--gd45-color-hex-ffffff);
    text-decoration: none;
    height: auto;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
}

.genre-btn:hover {
    color: var(--gd45-color-hex-ff6b6b);
    background: var(--gd45-color-rgba-255-107-107-0-1);
}

.genre-btn.active {
    color: var(--gd45-color-hex-ff6b6b);
    background: var(--gd45-color-rgba-255-107-107-0-15);
    font-weight: 600;
}

.genre-dropdown-menu {
    overflow: hidden;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gd45-color-hex-2a2a2a);
    border: 1px solid var(--gd45-color-hex-444444);
    border-radius: 8px;
    min-width: 320px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1101;
    /* Ensure it's above the language dropdown and ads */
    margin-top: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    box-shadow: 0 8px 25px var(--gd45-color-rgba-0-0-0-0-6);
}

.genre-dropdown:hover .genre-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.genre-option {
    display: block;
    color: var(--gd45-color-hex-ffffff);
    padding: 0.75rem 0.5rem;
    text-decoration: none;
    transition: background 0.2s ease;
    font-size: 0.8rem;
    white-space: nowrap;
    border-bottom: 1px solid var(--gd45-color-rgba-68-68-68-0-5);
    text-align: center;
}

.genre-option:hover {
    background: var(--gd45-color-hex-ff6b6b);
}

.genre-option:not(:nth-child(4n)) {
    border-right: 1px solid var(--gd45-color-rgba-68-68-68-0-5);
}

.genre-option:nth-child(n+17) {
    border-bottom: none;
}

.genre-option:nth-child(1) {
    border-radius: 8px 0 0 0;
}

.genre-option:nth-child(4) {
    border-radius: 0 8px 0 0;
}

.genre-option:nth-child(17) {
    border-radius: 0 0 0 8px;
}

.genre-option:nth-child(20) {
    border-radius: 0 0 8px 0;
}

/* Mobile/Desktop Responsive Nav */
.mobile-only {
    display: none;
}

.desktop-nav {
    display: flex;
}

/* Mobile Landscape - Force burger menu */


/* Burger Button (hidden on desktop, shown ≤1024px) */
.burger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    margin-left: auto;
}

.burger-line {
    width: 100%;
    height: 2px;
    background: var(--gd45-icon-primary);
    transition: all 0.3s ease;
    transform-origin: center;
}

.burger-btn.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-btn.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-btn.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

/* Search Container */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    background: var(--gd45-color-hex-2a2a2a);
    border: 1px solid var(--gd45-color-hex-444444);
    color: var(--gd45-color-hex-ffffff);
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border-radius: 20px;
    width: 200px;
    outline: none;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    border-color: var(--gd45-color-hex-ff6b6b);
}

.search-input::placeholder {
    color: var(--gd45-color-hex-888888);
}

.search-btn {
    position: absolute;
    right: 0.25rem;
    background: var(--gd45-color-transparent);
    border: none;
    color: var(--gd45-color-hex-888888);
    padding: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s ease;
    border-radius: 50%;
}

.search-btn:hover {
    color: var(--gd45-color-hex-ff6b6b);
    background: var(--gd45-color-rgba-255-107-107-0-1);
}

/* Language Switcher */
.language-switcher {
    position: relative;
}

.lang-btn {
    background: var(--gd45-color-hex-2a2a2a);
    border: 1px solid var(--gd45-color-hex-444444);
    color: var(--gd45-color-hex-ffffff);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 0.9rem;
}

.lang-btn:hover {
    background: var(--gd45-color-hex-333333);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--gd45-color-hex-2a2a2a);
    border: 1px solid var(--gd45-color-hex-444444);
    border-radius: 8px;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1100;
    margin-top: 0.5rem;
}

.language-switcher:hover .lang-dropdown,
.language-switcher:focus-within .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Disable hover on mobile and tablet to prevent conflicts */

.lang-option {
    display: block;
    color: var(--gd45-color-hex-ffffff);
    padding: 0.75rem 1rem;
    text-decoration: none;
    transition: background 0.2s ease;
    font-size: 0.9rem;
}

.lang-option:hover {
    background: var(--gd45-color-hex-ff6b6b);
}

.lang-option:first-child {
    border-radius: 8px 8px 0 0;
}

.lang-option:last-child {
    border-radius: 0 0 8px 8px;
}

/* Main Content */
.main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}


/* Hero Section */
.hero {
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--gd45-color-hex-ffffff);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--gd45-color-hex-b0b0b0);
    margin-bottom: 15px;
}

/* Movies Section */
.section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--gd45-color-hex-ffffff);
}

/* Movie Grid - Desktop (4 columns) */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Movie Link Wrapper */
.movie-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
    /* Apply border-radius and overflow here to clip content */
    border-radius: 8px;
    overflow: hidden;
}

/* Movie Card */
.movie-card {
    position: relative;
    /* Make this a positioning context */
    background: var(--gd45-color-hex-1e1e1e);
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--gd45-color-rgba-0-0-0-0-4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Default overflow */
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--gd45-color-rgba-0-0-0-0-6);
}

/* Movie Poster Wrapper - Uses CSS custom property for consistent aspect ratio */
.movie-poster-wrapper {
    position: relative;
    overflow: hidden;
    /* Clip the image inside */
    border-radius: 8px 8px 0 0;
    aspect-ratio: var(--fv-thumb-aspect-ratio, 16/9);
}

.movie-poster {
    width: 100%;
    height: 100%;
    display: block;
    background: var(--gd45-color-hex-2a2a2a);
    object-fit: cover;
}

.movie-genre {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: var(--gd45-color-rgba-255-107-107-0-9);
    color: var(--text-on-theme);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    backdrop-filter: blur(4px);
    border: 1px solid var(--gd45-color-rgba-255-255-255-0-2);
}

.movie-title {
    padding: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gd45-color-hex-ffffff);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Load More Button */
.load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.load-more-btn {
    background: linear-gradient(135deg, var(--gd45-color-hex-ff6b6b), var(--gd45-color-hex-ff5252));
    border: none;
    color: var(--text-on-theme);
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px var(--gd45-color-rgba-255-107-107-0-3);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--gd45-color-rgba-255-107-107-0-4);
    background: linear-gradient(135deg, var(--gd45-color-hex-ff5252), var(--gd45-color-hex-ff4444));
}

.load-more-btn:active {
    transform: translateY(0);
}

.load-more-icon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.load-more-btn:hover .load-more-icon {
    transform: scale(1.1);
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gd45-color-rgba-255-255-255-0-05);
    padding: 0.75rem 1rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--gd45-color-rgba-255-255-255-0-1);
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    background: var(--gd45-color-rgba-255-255-255-0-1);
    color: var(--text-on-theme);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--gd45-color-transparent);
}

.pagination-btn:hover {
    background: linear-gradient(135deg, var(--gd45-color-hex-ff6b6b), var(--gd45-color-hex-ff5252));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--gd45-color-rgba-255-107-107-0-3);
}

.pagination-btn:active {
    transform: translateY(0);
}

.pagination-icon {
    font-size: 1.1rem;
    font-weight: bold;
}

.pagination-text {
    font-size: 0.85rem;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0 0.5rem;
}

.pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    background: var(--gd45-color-rgba-255-255-255-0-1);
    color: var(--text-on-theme);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--gd45-color-transparent);
}

.pagination-number:hover {
    background: var(--gd45-color-rgba-255-255-255-0-2);
    transform: translateY(-1px);
    border-color: var(--gd45-color-rgba-255-107-107-0-5);
}

.pagination-number.active {
    background: linear-gradient(135deg, var(--gd45-color-hex-ff6b6b), var(--gd45-color-hex-ff5252));
    color: var(--text-on-theme);
    box-shadow: 0 2px 8px var(--gd45-color-rgba-255-107-107-0-4);
    border-color: var(--gd45-color-hex-ff5252);
}

.pagination-number.active:hover {
    background: linear-gradient(135deg, var(--gd45-color-hex-ff5252), var(--gd45-color-hex-ff4444));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--gd45-color-rgba-255-107-107-0-5);
}

.pagination-dots {
    color: var(--gd45-color-hex-b0b0b0);
    font-weight: bold;
    padding: 0 0.25rem;
    font-size: 0.9rem;
}

/* Ranking Section Styles */
.ranking-section {
    margin-bottom: 3rem;
}

/* New Ranking Grid Layout */
.ranking-grid-new {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Hàng đầu tiên chứa video top 1 */
.ranking-row-first {
    display: flex;
    justify-content: center;
}

.ranking-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.ranking-row-first {
    justify-content: center;
}

.ranking-row-others {
    justify-content: center;
    flex-wrap: wrap;
}

/* Ensure all ranking cards have same size */
.ranking-card {
    flex: 0 0 auto;
    width: calc(100% / 5);
    position: relative;
    /* Allow icon to overflow */
    overflow: visible;
}

/* Make Top 1 movie stand out */
.ranking-row-first .ranking-card {
    width: calc(100% / 3);
    /* Larger width for top 1 */
}

/* Ranking Icon Styles */
.ranking-icon {
    position: absolute;
    top: -15px;
    left: -15px;
    z-index: 20;
    height: 60px;
    width: 60px;
    background-color: var(--gd45-rank-neutral);
    -webkit-mask: center / contain no-repeat;
    mask: center / contain no-repeat;
    pointer-events: none;
}

.ranking-icon--1 {
    height: 90px;
    width: 90px;
    background-color: var(--gd45-rank-gold);
}

.ranking-icon--2 { background-color: var(--gd45-rank-silver); }
.ranking-icon--3 { background-color: var(--gd45-rank-bronze); }
.ranking-icon--4,
.ranking-icon--5 { background-color: var(--gd45-rank-neutral); }

.ranking-icon--1 { -webkit-mask-image: url('img/ranking/1.svg'); mask-image: url('img/ranking/1.svg'); }
.ranking-icon--2 { -webkit-mask-image: url('img/ranking/2.svg'); mask-image: url('img/ranking/2.svg'); }
.ranking-icon--3 { -webkit-mask-image: url('img/ranking/3.svg'); mask-image: url('img/ranking/3.svg'); }
.ranking-icon--4 { -webkit-mask-image: url('img/ranking/4.svg'); mask-image: url('img/ranking/4.svg'); }
.ranking-icon--5 { -webkit-mask-image: url('img/ranking/5.svg'); mask-image: url('img/ranking/5.svg'); }

/* Wrapper styles for positioning */
.ranking-badge-1,
.ranking-badge-2,
.ranking-badge-3,
.ranking-badge-4,
.ranking-badge-5 {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

.ranking-number {
    font-family: 'Arial var(--gd45-color-hex-000000)', Arial, sans-serif;
    line-height: 1;
}

.ranking-crown {
    font-size: 0.8rem;
    margin-left: 0.1rem;
}

/* Ranking Card Hover Effects */
.ranking-card:hover .ranking-badge {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 25px var(--gd45-color-rgba-0-0-0-0-4);
}

.ranking-badge-1:hover {
    box-shadow: 0 8px 30px var(--gd45-color-rgba-255-215-0-0-6);
}

/* Ranking Featured Poster - Consistent aspect ratio with custom property */
.ranking-featured .movie-poster-wrapper {
    position: relative;
    overflow: visible;
    aspect-ratio: var(--fv-thumb-aspect-ratio, 16/9);
}


.ranking-featured .movie-poster {
    transition: transform 0.3s ease;
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: var(--fv-thumb-aspect-ratio, 16/9);
}

.ranking-featured:hover .movie-poster {
    transform: scale(1.05);
}

/* Ranking View More Button Styles */
.ranking-view-more {
    margin-top: 2rem;
    text-align: center;
}

.view-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 14px 28px;
    background: var(--gd45-color-hex-1e1e1e);
    color: var(--gd45-color-hex-ffffff);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px var(--gd45-color-rgba-0-0-0-0-4);
    border: 2px solid var(--gd45-color-hex-333333);
    position: relative;
    overflow: hidden;
}

.view-more-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--gd45-color-rgba-0-0-0-0-6);
    border-color: var(--gd45-color-hex-ff6b6b);
    background: var(--gd45-color-hex-2a2a2a);
}

.view-more-text {
    font-weight: 600;
}

.view-more-icon {
    transition: transform 0.2s ease;
    font-size: 0.9rem;
    color: var(--gd45-color-hex-ff6b6b);
}

.view-more-btn:hover .view-more-icon {
    transform: translateX(4px);
}

/* Keywords Section Styles */
.keywords-section {
    margin-bottom: 3rem;
    padding: 2.5rem 1.5rem;
    background: var(--gd45-color-rgba-255-255-255-0-03);
    border-radius: 20px;
    border: 1px solid var(--gd45-color-rgba-255-255-255-0-08);
    backdrop-filter: blur(15px);
}

.keywords-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
}

.keyword-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    background: var(--gd45-color-rgba-255-255-255-0-05);
    color: var(--gd45-color-hex-b0b0b0);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--gd45-color-rgba-255-255-255-0-1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
    white-space: nowrap;
}

.keyword-tag:hover {
    background: var(--gd45-color-rgba-255-255-255-0-1);
    color: var(--text-on-theme);
    border-color: var(--gd45-color-rgba-255-107-107-0-3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--gd45-color-rgba-0-0-0-0-2);
}

.keyword-tag:active {
    transform: translateY(0);
}


/* Hashtag style - simple and clean */

/* Bottom Sheet */
.bottom-sheet-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gd45-color-rgba-0-0-0-0-8);
    backdrop-filter: blur(8px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.bottom-sheet-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--gd45-color-hex-1e1e1e);
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
    max-height: 80vh;
    overflow-y: auto;
}

.bottom-sheet.active {
    transform: translateY(0);
}

.bottom-sheet-handle {
    display: flex;
    justify-content: center;
    padding: 1rem 0 0.5rem 0;
    cursor: pointer;
}

.handle-bar {
    width: 40px;
    height: 4px;
    background: var(--gd45-color-hex-666666);
    border-radius: 2px;
}

.bottom-sheet-content {
    padding: 0 1.5rem 2rem 1.5rem;
}

.bottom-sheet-title {
    color: var(--gd45-color-hex-ffffff);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Nav Cards Grid */
.nav-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.nav-card {
    background: var(--gd45-color-hex-2a2a2a);
    border-radius: 12px;
    padding: 1rem;
    text-decoration: none;
    color: var(--gd45-color-hex-ffffff);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    border: 1px solid var(--gd45-color-transparent);
}

.nav-card:hover {
    background: var(--gd45-color-hex-333333);
    border-color: var(--gd45-color-hex-ff6b6b);
    transform: translateY(-2px);
}

.nav-card.active {
    background: var(--gd45-color-hex-333333);
    border-color: var(--gd45-color-hex-ff6b6b);
    box-shadow: 0 0 15px var(--gd45-color-rgba-255-107-107-0-3);
}

.nav-card.active .nav-card-icon {
    color: var(--gd45-color-hex-ff6b6b);
}

.nav-card-icon {
    font-size: 2rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.nav-card-icon svg {
    width: 2rem;
    height: 2rem;
    fill: currentColor;
    display: block;
}

.nav-card-icon img {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
    display: block;
}

.nav-card-text {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Genre Section */
.genre-section {
    border-top: 1px solid var(--gd45-color-hex-333333);
    padding-top: 1.5rem;
}

.genre-section-title {
    color: var(--gd45-color-hex-ffffff);
    font-size: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.genre-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.genre-card {
    background: var(--gd45-color-hex-2a2a2a);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--gd45-color-hex-ffffff);
    font-size: 0.85rem;
    text-align: center;
    transition: all 0.2s ease;
    border: 1px solid var(--gd45-color-transparent);
}

.genre-card:hover {
    background: var(--gd45-color-hex-ff6b6b);
    transform: scale(1.02);
}

/* Footer */
.footer {
    background: var(--gd45-color-hex-1e1e1e);
    color: var(--gd45-color-hex-ffffff);
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

.backlinks-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.backlink-tag {
    display: inline-block;
    background: var(--gd45-color-rgba-255-255-255-0-08);
    border: 1px solid var(--gd45-color-rgba-255-255-255-0-12);
    border-radius: 20px;
    padding: 0.35rem 0.85rem;
    color: var(--gd45-color-hex-b0b0b0);
    font-size: 0.8rem;
    transition: all 0.25s ease;
}

.backlink-tag:hover {
    background: var(--gd45-color-rgba-255-107-107-0-15);
    border-color: var(--gd45-color-rgba-255-107-107-0-4);
    color: var(--gd45-color-hex-ff8e8e);
}

.theme-tags-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

/* Mobile Responsive - 2 columns */

/* Extra small screens */

/* ===== VIDEO PAGE STYLES ===== */

/* Video Main Layout */
.video-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

/* Breadcrumb Navigation */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: var(--gd45-color-hex-1e1e1e);
    border-radius: 8px;
    border: 1px solid var(--gd45-color-hex-333333);
}

.breadcrumb-link {
    color: var(--gd45-color-hex-ff6b6b);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.breadcrumb-link:hover {
    color: var(--gd45-color-hex-ff5252);
    text-decoration: underline;
}

.breadcrumb-separator {
    color: var(--gd45-color-hex-666666);
    font-size: 0.8rem;
}

.breadcrumb-current {
    color: var(--gd45-color-hex-e0e0e0);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

/* Video Section Layout */
.video-section {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 1rem;
    margin-bottom: 3rem;
}

/* Video Container (Left Side) */
.video-container {
    background: var(--gd45-color-hex-1e1e1e);
    border-radius: 12px;
    border: 1px solid var(--gd45-color-hex-333333);
    overflow: hidden;
}

/* Movie Header */
.movie-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gd45-color-hex-333333);
}

.video-title {
    font-size: 2rem;
    color: var(--gd45-color-hex-ffffff);
    margin-bottom: 1rem;
    font-weight: bold;
}


/* Video Player */
.video-player-wrapper {
    padding: 1.5rem;
}

.video-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--gd45-color-hex-000000);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gd45-color-hex-1a1a1a), var(--gd45-color-hex-2a2a2a));
    cursor: pointer;
    transition: background 0.3s ease;
}

.video-placeholder:hover {
    background: linear-gradient(135deg, var(--gd45-color-hex-2a2a2a), var(--gd45-color-hex-3a3a3a));
}

.play-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--gd45-color-hex-ff6b6b);
    transition: all 0.3s ease;
}

.play-button:hover {
    transform: scale(1.1);
    color: var(--gd45-color-hex-ff5252);
}

.play-icon {
    font-size: 4rem;
    filter: drop-shadow(0 4px 8px var(--gd45-color-rgba-0-0-0-0-3));
}

.play-text {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Server Selection */
.server-selection {
    background: var(--gd45-color-hex-2a2a2a);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--gd45-color-hex-444444);
}


.server-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.server-btn {
    background: var(--gd45-color-hex-1e1e1e);
    color: var(--gd45-color-hex-e0e0e0);
    border: 1px solid var(--gd45-color-hex-444444);
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.server-btn:hover {
    background: var(--gd45-color-hex-333333);
    border-color: var(--gd45-color-hex-ff6b6b);
}

.server-btn.active {
    background: var(--gd45-color-hex-ff6b6b);
    color: var(--text-on-theme);
    border-color: var(--gd45-color-hex-ff6b6b);
    box-shadow: 0 2px 8px var(--gd45-color-rgba-255-107-107-0-3);
}

/* Movie Actions */
.movie-actions {
    padding: 1.5rem;
    border-top: 1px solid var(--gd45-color-hex-333333);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.action-stats {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.action-stats span {
    color: var(--gd45-color-hex-b0b0b0);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gd45-color-hex-2a2a2a);
    color: var(--gd45-color-hex-e0e0e0);
    border: 1px solid var(--gd45-color-hex-444444);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: var(--gd45-color-hex-333333);
    border-color: var(--gd45-color-hex-ff6b6b);
    transform: translateY(-1px);
}

.like-btn.liked {
    background: var(--gd45-color-hex-ff6b6b);
    color: var(--text-on-theme);
    border-color: var(--gd45-color-hex-ff6b6b);
}

.views-display {
    padding-top: 0.65rem;
    /* Adjust vertical padding */
    padding-bottom: 0.65rem;
    /* Adjust vertical padding */
}

.action-btn.non-clickable {
    cursor: default;
    /* Keep the cursor as default */
}

.action-btn.non-clickable:hover {
    background: var(--gd45-color-hex-2a2a2a);
    /* Prevent background color change on hover */
    border-color: var(--gd45-color-hex-444444);
    /* Prevent border color change on hover */
    transform: none;
    /* Prevent transform on hover */
}

/* Movie Details Sidebar (Right Side) */
.movie-details {
    background: var(--gd45-color-hex-1e1e1e);
    border-radius: 12px;
    border: 1px solid var(--gd45-color-hex-333333);
    overflow: hidden;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

/* Movie Info */
.movie-info {
    padding: 1.5rem;
}

.detail-title {
    color: var(--gd45-color-hex-ffffff);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.movie-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.genre-tag {
    background: var(--gd45-color-hex-2a2a2a);
    color: var(--gd45-color-hex-e0e0e0);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid var(--gd45-color-hex-444444);
}

/* Movie Plot */
.movie-plot {
    margin-bottom: 2rem;
}

.plot-title {
    color: var(--gd45-color-hex-ffffff);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.plot-text {
    color: var(--gd45-color-hex-b0b0b0);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Movie Details Grid */
.movie-details-grid {
    display: grid;
    gap: 0.75rem;
}

.detail-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gd45-color-rgba-68-68-68-0-3);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-value a {
    color: inherit;
    /* Inherit color from parent */
    text-decoration: none;
    /* Remove underline */
    transition: color 0.2s ease;
}

.detail-value a:hover {
    color: var(--gd45-color-hex-ff6b6b);
    /* Highlight color on hover */
    text-decoration: none;
    /* Remove underline on hover */
}

.detail-label {
    color: var(--gd45-color-hex-888888);
    font-size: 0.85rem;
    font-weight: 500;
}

.detail-value {
    color: var(--gd45-color-hex-e0e0e0);
    font-size: 0.9rem;
}

/* Related Movies Section */
.related-movies {
    margin-top: 3rem;
}

.related-movies .section-title {
    margin-bottom: 2rem;
}

/* Mobile Responsive for Video Page */


/* ===== BOTTOM NAVIGATION BAR STYLES ===== */

/* Bottom Navigation Bar - Hidden on Desktop */
.bottom-nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--gd45-color-hex-1e1e1e) 0%, var(--gd45-color-hex-2a2a2a) 100%);
    border-top: 1px solid var(--gd45-color-hex-444444);
    display: none;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    z-index: 9999;
    backdrop-filter: blur(10px);
    box-shadow: 0 -4px 20px var(--gd45-color-rgba-0-0-0-0-3);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.bottom-nav-bar.hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

/* Drag-to-close functionality */
.bottom-sheet.dragging {
    transition: none !important;
}

.bottom-sheet.dragging .bottom-sheet-content {
    transition: none !important;
}

.bottom-nav-bar.dragging {
    transition: none !important;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--gd45-color-hex-b0b0b0);
    transition: all 0.3s ease;
    padding: 6px 8px;
    border-radius: 12px;
    cursor: pointer;
    min-width: 60px;
    position: relative;
}

/* Distribute space evenly for all items except the menu button */
.bottom-nav-item:not(.bottom-nav-menu) {
    flex: 1;
}


.bottom-nav-item.active {
    color: var(--gd45-color-hex-ff6b6b);
    background: var(--gd45-color-rgba-255-107-107-0-15);
    border-radius: 12px;
    transform: translateY(-2px);
}

.bottom-nav-item.active .bottom-nav-icon {
    transform: scale(1.1);
    color: var(--gd45-color-hex-ff6b6b);
}

.bottom-nav-item.active .bottom-nav-text {
    font-weight: 600;
}

.bottom-nav-icon {
    font-size: 1.4rem;
    margin-bottom: 2px;
    transition: transform 0.3s ease;
}


.bottom-nav-text {
    font-size: 0.7rem;
    font-weight: 500;
    text-align: center;
    line-height: 1;
}

/* Special styling for MENU button */
.bottom-nav-menu {
    background: linear-gradient(135deg, var(--gd45-color-hex-ff6b6b) 0%, var(--gd45-color-hex-ff8e8e) 100%);
    color: var(--text-on-theme);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    min-width: 56px;
    /* Override .bottom-nav-item's min-width */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    /* Ensure no padding is affecting alignment */
    flex: none;
    /* Do not grow or shrink, size based on width/height */
}


.bottom-nav-menu .bottom-nav-icon {
    font-size: 1.6rem;
    margin: 0;
    /* Reset margin */
    padding: 0;
    /* Reset padding */
    line-height: 1;
    /* Prevent extra line height */
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Language Grid Styling */
.language-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.language-card {
    background: var(--gd45-color-rgba-255-255-255-0-08);
    border: 1px solid var(--gd45-color-rgba-255-255-255-0-1);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    color: var(--gd45-color-hex-e0e0e0);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.language-card:hover {
    background: var(--gd45-color-rgba-255-107-107-0-15);
    border-color: var(--gd45-color-rgba-255-107-107-0-3);
    color: var(--gd45-color-hex-ff6b6b);
    transform: translateY(-2px);
}

.language-card.selected {
    background: var(--gd45-color-rgba-255-107-107-0-2);
    border-color: var(--gd45-color-hex-ff6b6b);
    color: var(--gd45-color-hex-ff6b6b);
}

/* Search Input Section */
.search-input-section {
    margin-bottom: 2rem;
}

.search-form {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.search-input-field {
    flex: 1;
    background: var(--gd45-color-rgba-255-255-255-0-1);
    border: 1px solid var(--gd45-color-rgba-255-255-255-0-2);
    border-radius: 12px;
    padding: 0.875rem 1rem;
    color: var(--gd45-color-hex-ffffff);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input-field:focus {
    outline: none;
    border-color: var(--gd45-color-hex-ff6b6b);
    background: var(--gd45-color-rgba-255-255-255-0-15);
    box-shadow: 0 0 0 3px var(--gd45-color-rgba-255-107-107-0-2);
}

.search-input-field::placeholder {
    color: var(--gd45-color-rgba-255-255-255-0-5);
}

.search-submit-btn {
    background: linear-gradient(135deg, var(--gd45-color-hex-ff6b6b) 0%, var(--gd45-color-hex-ff8e8e) 100%);
    border: none;
    border-radius: 12px;
    padding: 0.875rem 1.25rem;
    color: var(--text-on-theme);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 60px;
}

.search-submit-btn:hover {
    background: linear-gradient(135deg, var(--gd45-color-hex-ff5252) 0%, var(--gd45-color-hex-ff7979) 100%);
    transform: scale(1.05);
}

/* Search Keywords Grid */
.search-keywords-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.search-keyword {
    background: var(--gd45-color-rgba-255-255-255-0-08);
    border: 1px solid var(--gd45-color-rgba-255-255-255-0-1);
    border-radius: 10px;
    padding: 0.75rem;
    text-align: center;
    color: var(--gd45-color-hex-e0e0e0);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    cursor: pointer;
}

.search-keyword:hover {
    background: var(--gd45-color-rgba-255-107-107-0-15);
    border-color: var(--gd45-color-rgba-255-107-107-0-3);
    color: var(--gd45-color-hex-ff6b6b);
    transform: translateY(-1px);
}

/* Responsive Media Queries for Bottom Navigation */
/* Show bottom navigation on tablet and mobile */

/* Tablet specific adjustments */

/* Mobile specific adjustments */

/* Extra small mobile adjustments */


/* ===== Skeleton Loading Animation ===== */
.skeleton-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem 0;
}

.skeleton-row-first {
    display: flex;
    justify-content: center;
}

.skeleton-row-others {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.skeleton-card-large {
    width: calc(100% / 3);
}

.skeleton-card-small {
    width: calc((100% / 4) - 1.5rem);
}

.skeleton-poster {
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    background-color: var(--gd45-color-hex-2a2a2a);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.skeleton-title-line {
    width: 80%;
    height: 1rem;
    margin-top: 0.75rem;
    background-color: var(--gd45-color-hex-2a2a2a);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

/* Shimmer Effect */
@keyframes shimmer-animation {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.skeleton-poster::after,
.skeleton-title-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            var(--gd45-color-transparent),
            var(--gd45-color-rgba-255-255-255-0-08),
            var(--gd45-color-transparent));
    animation: shimmer-animation 1.5s infinite linear;
}

/* Responsive Skeleton */


/* Skeleton Loading Styles */
.skeleton {
    background-color: var(--gd45-color-hex-2c2c2c);
    /* Màu nền tối hơn cho skeleton */
    background-image: linear-gradient(90deg,
            var(--gd45-color-hex-2c2c2c) 0px,
            var(--gd45-color-hex-3a3a3a) 40px,
            var(--gd45-color-hex-2c2c2c) 80px);
    background-size: 600px;
    animation: skeleton-shine 1.6s infinite linear;
    border-radius: var(--radius-md, 8px);
}

.skeleton-poster {
    width: 100%;
    height: 100%;
    /* Sẽ co giãn theo movie-poster-wrapper */
    display: block;
}

.skeleton-text {
    width: 80%;
    height: 1.2em;
    /* Chiều cao tương đương với dòng chữ */
    display: inline-block;
    vertical-align: middle;
}

.movie-title .skeleton-text {
    width: 100%;
    height: 1.2em;
}


/* ===== Loading Overlay Styles ===== */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gd45-color-rgba-18-18-18-0-9);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#loading-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--gd45-color-hex-444444);
    border-top-color: var(--gd45-color-hex-ff6b6b);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes skeleton-shine {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: calc(200px + 100%) 0;
    }
}

#top5-loading .movie-poster-wrapper {
    aspect-ratio: 2/3;
    /* Giữ đúng tỷ lệ cho poster */
    background-color: var(--gd45-color-hex-2c2c2c);
    border-radius: var(--radius-md, 8px);
}

#top5-loading .movie-title {
    height: 42px;
    /* Chiều cao cố định cho tiêu đề để tránh layout shift */
    margin-top: 10px;
    display: flex;
    align-items: center;
}


/* ===== ARTICLE CONTAINER STYLES ===== */

/* Article Container - Main wrapper to avoid conflicts */
.article-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--gd45-color-hex-1e1e1e);
    border-radius: 12px;
    border: 1px solid var(--gd45-color-hex-333333);
}

/* Article Element */
.article-container article {
    background: var(--gd45-color-transparent);
}

/* Article Header */
.article-container header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gd45-color-hex-333333);
}

.article-container header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gd45-color-hex-ffffff);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-container header .lead {
    font-size: 1rem;
    color: var(--gd45-color-hex-b0b0b0);
    max-width: 800px;
    margin: 0 auto;
}

.article-container header .lead strong {
    color: var(--gd45-color-hex-ff6b6b);
    font-weight: 600;
}

.article-container header .lead a {
    color: var(--gd45-color-hex-ff6b6b);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.article-container header .lead a:hover {
    color: var(--gd45-color-hex-ff5252);
    text-decoration: underline;
}

/* Table of Contents */
.article-container .toc {
    background: var(--gd45-color-hex-2a2a2a);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2.5rem;
}

.article-container .toc strong {
    display: block;
    font-size: 1.1rem;
    color: var(--gd45-color-hex-ffffff);
    margin-bottom: 1rem;
    font-weight: 600;
}

.article-container .toc ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-container .toc ol li {
    margin-bottom: 0.5rem;
}

.article-container .toc ol li:last-child {
    margin-bottom: 0;
}

.article-container .toc ol li a {
    color: var(--gd45-color-hex-e0e0e0);
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-container .toc ol li a:hover {
    color: var(--gd45-color-hex-ff6b6b);
}

/* Article Sections */
.article-container section {
    margin-bottom: 2.5rem;
}

.article-container section h2 {
    font-size: 1.8rem;
    color: var(--gd45-color-hex-ffffff);
    margin-bottom: 1.5rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gd45-color-hex-ff6b6b);
    display: inline-block;
}

.article-container section p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gd45-color-hex-e0e0e0);
    margin-bottom: 1.5rem;
}

.article-container section p strong {
    color: var(--gd45-color-hex-ff6b6b);
    font-weight: 600;
}

.article-container section p em {
    color: var(--gd45-color-hex-b0b0b0);
    font-style: italic;
}

.article-container section ul {
    list-style-type: disc;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.article-container section ul li {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: var(--gd45-color-hex-e0e0e0);
}

/* Article Links */
.article-container section a {
    color: var(--gd45-color-hex-ff6b6b);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.article-container section a:hover {
    color: var(--gd45-color-hex-ff5252);
    text-decoration: underline;
}

/* Article Footer */
.article-container footer {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gd45-color-hex-333333);
    text-align: center;
    font-size: 0.9rem;
    color: var(--gd45-color-hex-888888);
}

.article-container footer p em {
    font-style: italic;
}

/* Responsive adjustments for Article */

/* ===== FILTER TABS STYLES ===== */

/* Filter Tabs Container */
.filter-tabs-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.filter-tabs {
    display: flex;
    background: var(--gd45-color-rgba-255-255-255-0-05);
    border-radius: 12px;
    padding: 0.5rem;
    gap: 0.5rem;
    border: 1px solid var(--gd45-color-rgba-255-255-255-0-1);
}

.filter-tab {
    background: var(--gd45-color-transparent);
    border: 1px solid var(--gd45-color-hex-ff6b6b);
    color: var(--gd45-color-hex-b0b0b0);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-tab:hover {
    background: var(--gd45-color-rgba-255-255-255-0-1);
    color: var(--gd45-color-hex-e0e0e0);
}

.filter-tab.active {
    background: var(--gd45-color-hex-ff6b6b);
    color: var(--text-on-theme);
    font-weight: 600;
    box-shadow: 0 2px 8px var(--gd45-color-rgba-255-107-107-0-3);
}

/* Loading Container */
.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    color: var(--gd45-color-hex-ff6b6b);
}

.css-loader {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gd45-color-hex-444444);
    border-top-color: var(--gd45-color-hex-ff6b6b);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Responsive Filter Tabs */


/* ===== 404 PAGE STYLES ===== */
.error-container {
    max-width: 600px;
    margin: 0 auto;
}

.error-code {
    font-size: 8rem;
    color: var(--gd45-color-hex-ff6b6b);
    margin: 0;
    font-weight: bold;
    text-shadow: 0 4px 8px var(--gd45-color-rgba-255-107-107-0-3);
}

.error-title {
    font-size: 2.5rem;
    color: var(--gd45-color-hex-ffffff);
    margin: 1rem 0;
    font-weight: 600;
}

.error-description {
    font-size: 1.2rem;
    color: var(--gd45-color-hex-b0b0b0);
    margin: 1.5rem 0;
    line-height: 1.6;
}


/* Autocomplete Dropdown */
.autocomplete-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--gd45-color-hex-2a2a2a);
    border: 1px solid var(--gd45-color-hex-444444);
    border-radius: 0 0 12px 12px;
    border-top: none;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1200;
    box-shadow: 0 8px 25px var(--gd45-color-rgba-0-0-0-0-6);
    scrollbar-width: thin;
    scrollbar-color: var(--gd45-color-hex-555555) var(--gd45-color-hex-2a2a2a);
}

.autocomplete-dropdown::-webkit-scrollbar {
    width: 6px;
}

.autocomplete-dropdown::-webkit-scrollbar-track {
    background: var(--gd45-color-hex-2a2a2a);
    border-radius: 0 0 12px 0;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb {
    background: var(--gd45-color-hex-555555);
    border-radius: 3px;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--gd45-color-hex-777777);
}

.autocomplete-item {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--gd45-color-hex-e0e0e0);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--gd45-color-rgba-68-68-68-0-5);
    transition: background 0.15s ease;
}

.autocomplete-item:hover {
    background: var(--gd45-color-rgba-255-107-107-0-15);
    color: var(--gd45-color-hex-ff6b6b);
}

.autocomplete-item:last-child {
    border-bottom: none;
}

/* Search container needs relative for dropdown positioning */
.search-container,
.search-form {
    position: relative;
}

.search-input-section {
    position: relative;
}

.search-input-section .autocomplete-dropdown {
    top: calc(100% + 2px);
    border-radius: 12px;
    border: 1px solid var(--gd45-color-hex-444444);
    max-height: 200px;
}

/* Bottom sheet: cho phép dropdown tràn ra ngoài */
#searchSheet .search-input-section {
    position: relative;
    z-index: 10;
}

#searchSheet .bottom-sheet-content {
    overflow: visible;
}

/* Banner Ads */
.fv-header-banner,
.fv-footer-banner,
.fv-square-banner {
    text-align: center;
    margin: 20px auto;
    overflow: hidden;    z-index: 100;
}

/* ======== VIDEO PAGE ======== */

/* Video Section Layout */
.video-section {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 1rem;
    margin-bottom: 3rem;
}

/* Video Container (Left Side) */
.video-container {
    background: var(--gd45-color-hex-1e1e1e);
    border-radius: 12px;
    border: 1px solid var(--gd45-color-hex-333333);
    overflow: hidden;
}

/* Movie Header */
.movie-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gd45-color-hex-333333);
}

.video-title {
    font-size: 2rem;
    color: var(--gd45-color-hex-ffffff);
    margin-bottom: 1rem;
    font-weight: bold;
}

/* Video Player */
.video-player-wrapper {
    padding: 1.5rem;
}

.video-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--gd45-color-hex-000000);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

/* Lazy-load player pattern (WP) */
.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.player-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.player-poster.hidden {
    opacity: 0;
    pointer-events: none;
}

#player-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 1;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gd45-color-hex-1a1a1a), var(--gd45-color-hex-2a2a2a));
    cursor: pointer;
    transition: background 0.3s ease;
}

.video-placeholder:hover {
    background: linear-gradient(135deg, var(--gd45-color-hex-2a2a2a), var(--gd45-color-hex-3a3a3a));
}

.play-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--gd45-color-hex-ff6b6b);
    transition: all 0.3s ease;
}

.play-button:hover {
    transform: scale(1.1);
    color: var(--gd45-color-hex-ff5252);
}

.play-icon {
    font-size: 4rem;
    filter: drop-shadow(0 4px 8px var(--gd45-color-rgba-0-0-0-0-3));
}

.play-text {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Server Selection */
.server-selection {
    background: var(--gd45-color-hex-2a2a2a);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--gd45-color-hex-444444);
}

.server-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.server-btn {
    background: var(--gd45-color-hex-1e1e1e);
    color: var(--gd45-color-hex-e0e0e0);
    border: 1px solid var(--gd45-color-hex-444444);
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.server-btn:hover {
    background: var(--gd45-color-hex-333333);
    border-color: var(--gd45-color-hex-ff6b6b);
}

.server-btn.active {
    background: var(--gd45-color-hex-ff6b6b);
    color: var(--text-on-theme);
    border-color: var(--gd45-color-hex-ff6b6b);
    box-shadow: 0 2px 8px var(--gd45-color-rgba-255-107-107-0-3);
}

/* Movie Actions */
.movie-actions {
    padding: 1.5rem;
    border-top: 1px solid var(--gd45-color-hex-333333);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.action-stats {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.action-stats span {
    color: var(--gd45-color-hex-b0b0b0);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gd45-color-hex-2a2a2a);
    color: var(--gd45-color-hex-e0e0e0);
    border: 1px solid var(--gd45-color-hex-444444);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: var(--gd45-color-hex-333333);
    border-color: var(--gd45-color-hex-ff6b6b);
    transform: translateY(-1px);
}

.like-btn.liked {
    background: var(--gd45-color-hex-ff6b6b);
    color: var(--text-on-theme);
    border-color: var(--gd45-color-hex-ff6b6b);
}

.views-display {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.action-btn.non-clickable {
    cursor: default;
}

.action-btn.non-clickable:hover {
    background: var(--gd45-color-hex-2a2a2a);
    border-color: var(--gd45-color-hex-444444);
    transform: none;
}

/* Movie Details Sidebar (Right Side) */
.movie-details {
    background: var(--gd45-color-hex-1e1e1e);
    border-radius: 12px;
    border: 1px solid var(--gd45-color-hex-333333);
    overflow: hidden;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

/* Movie Info */
.movie-info {
    padding: 1.5rem;
}

.detail-title {
    color: var(--gd45-color-hex-ffffff);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.movie-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.genre-tag {
    background: var(--gd45-color-hex-2a2a2a);
    color: var(--gd45-color-hex-e0e0e0);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid var(--gd45-color-hex-444444);
}

/* Movie Plot */
.movie-plot {
    margin-bottom: 2rem;
}

.plot-title {
    color: var(--gd45-color-hex-ffffff);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.plot-text {
    color: var(--gd45-color-hex-b0b0b0);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Movie Details Grid */
.movie-details-grid {
    display: grid;
    gap: 0.75rem;
}

.detail-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gd45-color-rgba-68-68-68-0-3);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-value a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.detail-value a:hover {
    color: var(--gd45-color-hex-ff6b6b);
    text-decoration: none;
}

.detail-label {
    color: var(--gd45-color-hex-888888);
    font-size: 0.85rem;
    font-weight: 500;
}

.detail-value {
    color: var(--gd45-color-hex-e0e0e0);
    font-size: 0.9rem;
}

/* ==============================================
   @media (max-width: 1024px) — Tablet + Mobile
   ============================================== */
@media (max-width: 1024px) {

    /* Hide desktop header, show bottom nav */
    .header {
        display: none !important;
    }

    .desktop-nav {
        display: none !important;
    }

    body {
        padding-bottom: 80px;
    }

    .bottom-nav-bar {
        display: flex;
    }

    /* Disable hover for touch devices */
    .language-switcher:hover .lang-dropdown,
    .language-switcher:focus-within .lang-dropdown {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
    }

    /* Mobile click state for language switcher */
    .language-switcher.mobile-active .lang-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Movie grid: 2 columns */
    .movie-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    /* Video section: stack sidebar below */
    .video-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .video-container {
        order: 1;
    }

    .movie-details {
        position: static;
        order: 2;
    }

    /* Bottom nav tablet sizes */
    .bottom-nav-item {
        min-width: 70px;
        padding: 8px 10px;
    }

    .bottom-nav-icon {
        font-size: 1.5rem;
    }

    .bottom-nav-text {
        font-size: 0.75rem;
    }

    .bottom-nav-menu {
        width: 60px;
        height: 60px;
        min-width: 60px;
    }

    .bottom-nav-menu .bottom-nav-icon {
        font-size: 1.7rem;
    }

    /* Skeleton tablet */
    .skeleton-card-large {
        width: calc(100% / 1.5);
    }

    .skeleton-row-others {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
        width: 100%;
        max-width: 90%;
        margin: 0 auto;
    }

    .skeleton-card-small {
        width: 100%;
    }
}

/* ==============================================
   @media (max-width: 768px) — Mobile
   ============================================== */
@media (max-width: 768px) {

    /* Layout */
    .main {
        padding: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    /* Movie grid */
    .movie-grid {
        gap: 1rem;
    }

    .movie-title {
        font-size: 0.85rem;
    }

    .load-more-btn {
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
    }

    /* Pagination */
    .pagination {
        gap: 0.4rem;
        padding: 0.6rem 0.8rem;
    }

    .pagination-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }

    .pagination-text {
        font-size: 0.8rem;
    }

    .pagination-number {
        width: 2rem;
        height: 2rem;
        font-size: 0.85rem;
    }

    .pagination-numbers {
        margin: 0 0.3rem;
        gap: 0.2rem;
    }

    /* Ranking */
    .ranking-grid-new {
        gap: 1.2rem;
    }

    .ranking-row {
        gap: 1.2rem;
    }

    .ranking-card {
        width: calc(100% / 2.2);
    }

    .ranking-row-first .ranking-card {
        width: calc(100% / 1.6);
    }

    .ranking-badge {
        min-width: 2.5rem;
        height: 2.5rem;
        top: -12px;
        left: -12px;
    }

    .ranking-badge-1 {
        min-width: 3rem;
        height: 3rem;
        top: -15px;
        left: -15px;
    }

    /* Keywords */
    .keywords-section {
        padding: 2rem 1.2rem;
        margin-bottom: 2.5rem;
    }

    .keywords-container {
        gap: 0.8rem;
        max-width: 800px;
    }

    .keyword-tag {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        border-radius: 18px;
    }

    /* Bottom nav mobile */
    .bottom-nav-item {
        min-width: 55px;
        padding: 6px 6px;
    }

    .bottom-nav-icon {
        font-size: 1.3rem;
    }

    .bottom-nav-text {
        font-size: 0.65rem;
    }

    .bottom-nav-menu {
        width: 52px;
        height: 52px;
        min-width: 52px;
    }

    .bottom-nav-menu .bottom-nav-icon {
        font-size: 1.5rem;
    }

    .bottom-nav-menu .bottom-nav-text {
        font-size: 0.55rem;
    }

    /* Video page */
    .lang-dropdown {
        right: -55px;
        left: auto;
        min-width: 130px;
        margin-top: 0.25rem;
    }

    .video-main {
        padding: 1rem;
    }

    .breadcrumb {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .video-title {
        font-size: 1.5rem;
    }

    .movie-meta {
        gap: 0.5rem;
    }

    .movie-meta span {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    .video-player-wrapper {
        padding: 1rem;
    }

    .server-selection {
        padding: 1rem;
    }

    .server-buttons {
        gap: 0.5rem;
    }

    .server-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .movie-actions {
        padding: 1rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .action-stats {
        gap: 1rem;
    }

    .action-buttons {
        gap: 0.5rem;
    }

    .action-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
        justify-content: center;
        min-width: 0;
    }

    .like-btn .like-text {
        display: inline !important;
    }

    .like-btn .like-count {
        display: inline !important;
    }

    .movie-info {
        padding: 1rem;
    }

    .detail-title {
        font-size: 1.3rem;
    }

    .detail-item {
        grid-template-columns: 100px 1fr;
        gap: 0.4rem;
    }

    .detail-label {
        font-size: 0.8rem;
    }

    .detail-value {
        font-size: 0.85rem;
    }

    .plot-text {
        font-size: 0.85rem;
    }

    /* Skeleton */
    .skeleton-row-others {
        max-width: 100%;
    }

    .skeleton-card-large {
        width: calc(100% / 1.2);
    }

    /* Article */
    .article-container {
        padding: 1rem;
    }

    .article-container header h1 {
        font-size: 2rem;
    }

    .article-container header .lead {
        font-size: 1rem;
    }

    .article-container section h2 {
        font-size: 1.8rem;
    }

    .article-container section p,
    .article-container section ul li {
        font-size: 1rem;
    }

    /* Filter tabs */
    .filter-tabs {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.4rem;
        padding: 0.4rem;
    }

    .filter-tab {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        flex: 1;
        min-width: calc(50% - 0.2rem);
        text-align: center;
    }

    /* 404 page */
    .error-code {
        font-size: 6rem;
    }

    .error-title {
        font-size: 2rem;
    }

    .error-description {
        font-size: 1rem;
        margin: 1rem 0;
    }
}

/* ==============================================
   @media (max-width: 425px) — Mobile nhỏ
   ============================================== */
@media (max-width: 425px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .movie-grid {
        gap: 0.75rem;
        grid-template-columns: repeat(2, 1fr)
    }

    .movie-genre {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }

    .load-more-btn {
        font-size: 0.85rem;
        padding: 0.75rem 1.25rem;
    }

    /* Pagination */
    .pagination {
        gap: 0.3rem;
        padding: 0.5rem 0.6rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagination-btn {
        padding: 0.35rem 0.5rem;
        font-size: 0.8rem;
    }

    .pagination-text {
        display: none;
    }

    .pagination-icon {
        font-size: 1rem;
    }

    .pagination-number {
        width: 1.8rem;
        height: 1.8rem;
        font-size: 0.8rem;
    }

    .pagination-numbers {
        margin: 0 0.2rem;
        gap: 0.15rem;
    }

    .pagination-dots {
        font-size: 0.8rem;
        padding: 0 0.15rem;
    }

    /* Ranking */
    .ranking-grid-new {
        gap: 1rem;
    }

    .ranking-row {
        gap: 1rem;
        justify-content: center;
    }

    .ranking-row-first {
        justify-content: center;
    }

    .ranking-row-others {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .ranking-row-first .ranking-card {
        width: calc(100% / 1.5);
    }

    .ranking-badge {
        min-width: 2rem;
        height: 2rem;
        top: -10px;
        left: -10px;
    }

    .ranking-badge-1 {
        min-width: 2.5rem;
        height: 2.5rem;
        top: -12px;
        left: -12px;
    }

    .ranking-crown {
        font-size: 0.7rem;
    }

    /* Ranking View More */
    .ranking-view-more {
        margin-top: 1.5rem;
    }

    .view-more-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        gap: 0.4rem;
    }

    .view-more-icon {
        font-size: 0.8rem;
    }

    /* Keywords */
    .keywords-section {
        padding: 1.5rem 1rem;
        margin-bottom: 2rem;
        border-radius: 15px;
    }

    .keywords-container {
        gap: 0.6rem;
        justify-content: center;
        max-width: 100%;
    }

    .keyword-tag {
        padding: 0.45rem 0.9rem;
        font-size: 0.75rem;
        border-radius: 16px;
    }

    /* Bottom nav XS */
    .bottom-nav-bar {
        padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
    }

    .bottom-nav-item {
        min-width: 50px;
        padding: 4px 4px;
    }

    .bottom-nav-icon {
        font-size: 1.2rem;
        margin-bottom: 1px;
    }

    .bottom-nav-text {
        font-size: 0.6rem;
    }

    .bottom-nav-menu {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }

    .bottom-nav-menu .bottom-nav-icon {
        font-size: 1.4rem;
    }

    .bottom-nav-menu .bottom-nav-text {
        font-size: 0.5rem;
        margin-top: 1px;
    }

    /* Video page XS */
    .play-icon {
        font-size: 3rem;
    }

    .play-text {
        font-size: 1rem;
    }

    .server-btn {
        padding: 0.6rem 0.8rem;
        text-align: center;
    }

    /* Filter tabs */
    .filter-tabs {
        gap: 0.3rem;
    }

    .filter-tab {
        padding: 0.7rem 1rem;
    }

    /* 404 page */
    .error-code {
        font-size: 5rem;
    }

    .error-title {
        font-size: 1.75rem;
    }
}

/* Age Gate Custom Style */
.cinema-rank-age-gate {
    background: var(--gd45-color-rgba-18-18-18-0-95) !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}
.cinema-rank-age-gate__content {
    background: var(--gd45-color-hex-1e1e1e) !important;
    border: 1px solid var(--gd45-color-hex-ff6b6b) !important;
    border-radius: 12px !important;
    padding: 35px !important;
    max-width: 400px !important;
    width: 90% !important;
    text-align: center !important;
    box-shadow: 0 10px 30px var(--gd45-color-rgba-255-107-107-0-15), 0 5px 15px var(--gd45-color-rgba-0-0-0-0-5) !important;
}
.cinema-rank-age-gate__badge {
    border: 3px solid var(--gd45-color-hex-ff6b6b) !important;
    color: var(--gd45-color-hex-ff6b6b) !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    width: 60px !important;
    height: 60px !important;
    line-height: 54px !important;
    border-radius: 50% !important;
    margin: 0 auto 20px !important;
    display: inline-block !important;
    text-shadow: 0 0 10px var(--gd45-color-rgba-255-107-107-0-3) !important;
    box-shadow: inset 0 0 10px var(--gd45-color-rgba-255-107-107-0-1) !important;
}
.cinema-rank-age-gate__title {
    color: var(--gd45-color-hex-ffffff) !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
}
.cinema-rank-age-gate__desc {
    color: var(--gd45-color-hex-e0e0e0) !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin-bottom: 25px !important;
}
.cinema-rank-age-gate__btn {
    background: var(--gd45-color-hex-ff6b6b) !important;
    color: var(--text-on-theme) !important;
    border: none !important;
    padding: 12px 35px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px var(--gd45-color-rgba-255-107-107-0-3) !important;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease !important;
}
.cinema-rank-age-gate__btn:hover {
    background: var(--gd45-color-hex-e05353) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px var(--gd45-color-rgba-255-107-107-0-5) !important;
}

/* ===== LEGAL / STATIC POLICY PAGES (crk-) ===== */
/* Nhóm class crk- dùng riêng cho 7 route policy/static; tái sử dụng token
   màu/spacing đã có của theme (#121212, #1e1e1e, #2a2a2a, #e0e0e0, #ff6b6b). */

/* Footer — Legal & Information links */
.crk-footer-legal {
    max-width: 1400px;
    margin: 1.5rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gd45-color-hex-333333);
    display: flex;
    justify-content: center;
    text-align: center;
}

.crk-footer-legal-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.crk-footer-legal-list li {
    margin-bottom: 0;
}

.crk-footer-legal-list a {
    color: var(--gd45-color-hex-b0b0b0);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.crk-footer-legal-list a:hover,
.crk-footer-legal-list a:focus-visible {
    color: var(--gd45-color-hex-ff6b6b);
}

/* Legal page wrapper (Terms / 2257 / DMCA / Privacy) — reuses .article-container prose styles */
.crk-legal-main {
    padding-top: 1rem;
}

.crk-legal-container {
    text-align: left;
}

/* Static page wrapper (Report Content / Contact Us / Transparency Report) */
.crk-static-main {
    padding-top: 1rem;
}

.crk-card {
    background: var(--gd45-color-hex-1e1e1e);
    border: 1px solid var(--gd45-color-hex-333333);
    border-radius: 0;
    padding: 2rem;
    margin: 0 auto;
    margin-block: 2rem;
    text-align: left;
}

.crk-card--form,
.crk-card--narrow {
    max-width: 640px;
}

.crk-card--wide {
    max-width: 960px;
}

.crk-card-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gd45-color-hex-333333);
}

.crk-card-header h1 {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--gd45-color-hex-ffffff);
    margin-bottom: 0.75rem;
    line-height: 1.25;
}

.crk-card-title-alt {
    color: var(--gd45-color-hex-b0b0b0);
    font-size: 1.1rem;
    font-weight: 400;
}

.crk-card-lead {
    color: var(--gd45-color-hex-b0b0b0);
    font-size: 0.95rem;
    line-height: 1.6;
}

.crk-card-lead a,
.crk-card-footnote a {
    color: var(--gd45-color-hex-ff6b6b);
    text-decoration: none;
    font-weight: 600;
}

.crk-card-lead a:hover,
.crk-card-footnote a:hover {
    text-decoration: underline;
}

.crk-card-footnote {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gd45-color-hex-333333);
    text-align: center;
    font-size: 0.85rem;
    color: var(--gd45-color-hex-888888);
}

/* Forms */
.crk-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 640px;
    margin: 0 auto;
}

.crk-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.crk-field label {
    color: var(--gd45-color-hex-ffffff);
    font-size: 0.9rem;
    font-weight: 600;
}

.crk-field-alt {
    color: var(--gd45-color-hex-888888);
    font-weight: 400;
    font-size: 0.85rem;
}

.crk-input {
    background: var(--gd45-color-hex-2a2a2a);
    border: 1px solid var(--gd45-color-hex-444444);
    color: var(--gd45-color-hex-ffffff);
    padding: 0.65rem 0.9rem;
    border-radius: 0;
    font: inherit;
    outline: none;
    width: 100%;
    transition: border-color 0.2s ease;
}

.crk-input::placeholder {
    color: var(--gd45-color-hex-888888);
}

.crk-input:focus {
    border-color: var(--gd45-color-hex-ff6b6b);
}

.crk-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

/* Custom select chevron (SVG data-uri thay cho mũi tên mặc định trình duyệt) */
.crk-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: var(--gd45-select-indicator);
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    background-size: 12px 8px;
    padding-right: 2.5rem;
    cursor: pointer;
}

.crk-input-prefix-group {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--gd45-color-hex-444444);
    border-radius: 0;
    overflow: hidden;
    background: var(--gd45-color-hex-2a2a2a);
}

.crk-input-prefix {
    display: flex;
    align-items: center;
    padding: 0 0.75rem;
    background: var(--gd45-color-hex-333333);
    color: var(--gd45-color-hex-888888);
    font-size: 0.85rem;
    white-space: nowrap;
    border-right: 1px solid var(--gd45-color-hex-444444);
}

.crk-input-prefixed {
    border: none;
    border-radius: 0;
    background: var(--gd45-color-transparent);
}

.crk-field-checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.6rem;
}

.crk-checkbox {
    margin-top: 0.2rem;
    width: 18px;
    height: 18px;
    accent-color: var(--gd45-color-hex-ff6b6b);
    flex-shrink: 0;
}

.crk-field-checkbox label {
    font-weight: 400;
    color: var(--gd45-color-hex-e0e0e0);
    font-size: 0.9rem;
}

.crk-btn {
    align-self: center;
    background: linear-gradient(135deg, var(--gd45-color-hex-ff6b6b), var(--gd45-color-hex-ff5252));
    color: var(--text-on-theme);
    border: none;
    padding: 0.75rem 2.25rem;
    border-radius: 0;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.crk-btn:hover,
.crk-btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--gd45-color-rgba-255-107-107-0-35);
}

.crk-status {
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: 0;
    font-size: 0.9rem;
}

.crk-status-success {
    background: var(--gd45-color-rgba-255-107-107-0-12);
    border: 1px solid var(--gd45-color-rgba-255-107-107-0-4);
    color: var(--gd45-color-hex-ff8e8e);
}

.crk-status-error {
    background: var(--gd45-color-rgba-255-82-82-0-15);
    border: 1px solid var(--gd45-color-rgba-255-82-82-0-5);
    color: var(--gd45-color-hex-ff5252);
}

/* Transparency Report — stat cards + table */
.crk-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.crk-stat-card {
    background: var(--gd45-color-hex-2a2a2a);
    border: 1px solid var(--gd45-color-hex-333333);
    border-radius: 0;
    padding: 1.25rem 1rem;
    text-align: center;
}

.crk-stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gd45-color-hex-ff6b6b);
    line-height: 1.2;
}

.crk-stat-label {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: var(--gd45-color-hex-b0b0b0);
}

.crk-table-scroll {
    overflow-x: auto;
}

.crk-stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.crk-stats-table caption {
    text-align: left;
    color: var(--gd45-color-hex-ffffff);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.crk-stats-table th,
.crk-stats-table td {
    padding: 0.65rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid var(--gd45-color-hex-333333);
    color: var(--gd45-color-hex-e0e0e0);
}

.crk-stats-table thead th {
    color: var(--gd45-color-hex-b0b0b0);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 2px solid var(--gd45-color-hex-444444);
}

.crk-stats-table tbody th {
    color: var(--gd45-color-hex-ffffff);
    font-weight: 600;
}

.crk-stats-table tfoot th,
.crk-stats-table tfoot td {
    border-top: 2px solid var(--gd45-color-hex-444444);
    border-bottom: none;
    color: var(--gd45-color-hex-ffffff);
    font-weight: 700;
}

.crk-stats-table td {
    font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
    .crk-card {
        padding: 1.5rem 1.25rem;
        margin: 0 auto;
        margin-block: 1.5rem;
    }

    .crk-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 425px) {
    .crk-stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .crk-btn,
    .crk-footer-legal-list a {
        transition: none !important;
    }
}
