@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #0b0f19;
    color: #fff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    font: inherit;
}

/* Brand Logo */
.brand-logo {
    display: inline-flex;
    align-items: center;
    height: 45px;
    /* Standard header height */
    transition: transform 0.3s cubic-bezier(0.2, 1, 0.3, 1);
    z-index: 100;
}

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

.brand-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .brand-logo {
        height: 35px;
    }
}

.floating-header {
    position: relative;
    padding: 25px 4%;
    z-index: 100;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Top Nav & Search */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 4%;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(11, 15, 25, 0.9);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0; /* Logo không bị bóp */
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
    flex: 1;         /* Search chiếm phần còn lại */
    min-width: 0;    /* Cho phép thu nhỏ khi cần */
    overflow: hidden;
}

.main-nav {
    display: flex;
    gap: 25px;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 600;
    color: #9ca3af;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #00acc1;
}

.nav-search-small {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    padding: 4px 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    width: 100%;      /* Lấp đầy nav-right */
    max-width: 280px; /* Giới hạn tối đa trên desktop */
    min-width: 0;
    transition: all 0.3s ease;
}

.nav-search-small:focus-within {
    border-color: #00acc1;
    background: rgba(255, 255, 255, 0.08);
}

.nav-search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 6px 12px;
    font-size: 16px; /* Prevents auto-zoom on Safari Mobile */
    outline: none;
    -webkit-appearance: none;
    width: 100%;
}

.nav-search-btn {
    background: #00acc1;
    color: #fff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.nav-search-btn svg {
    width: 14px;
    height: 14px;
}

.nav-search-btn:hover {
    transform: scale(1.1);
}

/* Menu Toggle Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 2100;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 992px) {
    .nav-search-small {
        width: 100%;
        max-width: 200px;
    }

    .nav-search-small:focus-within {
        max-width: 250px;
    }
}

.nav-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    max-width: 450px;
    transition: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-search:focus-within {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 172, 193, 0.3);
}

.nav-search input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 10px 20px;
    font-size: 1rem;
    outline: none;
}

.nav-search input::placeholder {
    color: #a0aec0;
}

.nav-search button {
    background: #00acc1;
    color: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-search button:hover {
    background: #0097a7;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0, 172, 193, 0.5);
}

.nav-search svg {
    width: 20px;
    height: 20px;
}

/* Home Main */
.home-main {
    padding-top: 0;
}

/* Hero Search Section */
.hero-search-section {
    background: linear-gradient(to bottom, rgba(11, 15, 25, 0.8), #0b0f19),
        url('https://images.unsplash.com/photo-1626814026160-2237a95fc5a0?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-search-box .nav-search {
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(20px);
}

.hero-search-box .nav-search:focus-within {
    border-color: #00acc1;
    box-shadow: 0 0 25px rgba(0, 172, 193, 0.4);
    transform: scale(1.02);
}

.hero-search-box input {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Movie Rows */
.content-rows {
    padding: 0 0 30px 0;
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

.row {
    margin-bottom: 40px;
}

.row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 4% 15px 4%;
}

.row-header h2 {
    font-size: 1.5rem;
    color: #f3f4f6;
    margin: 0;
    font-weight: 600;
}

.view-more-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: background 0.3s;
    font-weight: 600;
}

.view-more-btn:hover {
    background: #00acc1;
}

.slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.slider-btn {
    position: absolute;
    z-index: 150;
    background: rgba(11, 15, 25, 0.7);
    color: #fff;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    height: 50px;
    width: 50px;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s;
    opacity: 0;
}

.slider-wrapper:hover .slider-btn {
    opacity: 1;
}

.slider-btn:hover {
    background: #00acc1;
    color: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 172, 193, 0.5);
}

.left-btn {
    left: 5px;
}

.right-btn {
    right: 5px;
}

/* Mask for horizontal scroll to look elegant on edges */
.horizontal-scroll {
    display: flex;
    overflow-y: hidden;
    overflow-x: auto;
    padding: 15px 4%;
    gap: 15px;
    scroll-behavior: smooth;
    width: 100%;
    scrollbar-width: none;
    mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}

.horizontal-scroll {
    display: flex;
    overflow-y: hidden;
    overflow-x: auto;
    padding: 10px 4%;
    gap: 15px;
    scroll-behavior: smooth;
    width: 100%;
    scrollbar-width: none;
}

.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

.movie-card {
    background: #1a1f2e;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
    padding: 0;
    width: 220px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.movie-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    z-index: 50;
}

.movie-card img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
    opacity: 0;
    background: #1c2331;
}

.movie-card img.loaded {
    opacity: 1;
}

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

.movie-content-box {
    padding: 12px;
    background: linear-gradient(to bottom, #1f2937, #111827);
    border-radius: 0 0 12px 12px;
}

.movie-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f3f4f6;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    transition: color 0.3s;
    white-space: normal;
}

.movie-card:hover .movie-card-title {
    color: #00acc1;
}

.movie-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af;
}

.meta-year {
    color: #d1d5db;
}

.meta-type {
    color: #00acc1;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

.meta-dot {
    opacity: 0.4;
}

.card-badge-rating {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 0.7rem;
    font-weight: 800;
    color: #fbbf24;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.card-badge-quality {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: #00acc1;
    color: #fff;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.card-badge-ep {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ef4444;
    color: #fff;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Trending Slider Top 10 */
.top10-item-slide {
    position: relative;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    margin-right: 35px;
    flex-shrink: 0;
    width: 220px;
    height: 330px;
}

.top10-item-slide:hover {
    transform: translateY(-12px);
    z-index: 100;
}

.top10-number-box {
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
}

.top10-number {
    font-size: 11rem;
    font-weight: 900;
    color: #0b0f19;
    -webkit-text-stroke: 4px rgba(255, 255, 255, 0.2);
    font-family: 'Arial Black', sans-serif;
    line-height: 1;
    letter-spacing: -5px;
    transition: all 0.4s ease;
    text-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}

.top10-item-slide:hover .top10-number {
    -webkit-text-stroke-color: #00acc1;
    transform: scale(1.1);
    text-shadow: 0 0 20px rgba(0, 172, 193, 0.5);
}

.top10-card-inner {
    position: relative;
    width: 220px;
    height: 330px;
    z-index: 2;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1f2e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s;
}

.top10-item-slide:hover .top10-card-inner {
    box-shadow: 0 20px 50px rgba(0, 172, 193, 0.4);
    border-color: rgba(0, 172, 193, 0.4);
}

.top10-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    transition: transform 0.6s ease;
}

.top10-item-slide:hover .top10-poster {
    transform: scale(1.1);
}

.top10-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 15px 15px;
    background: linear-gradient(to top, rgba(11, 15, 25, 1) 0%, rgba(11, 15, 25, 0.7) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.top10-card-title {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.top10-card-year {
    font-size: 0.85rem;
    color: #00acc1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-badge-rating-tr {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 900;
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
    z-index: 20;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .top10-item-slide {
        width: 150px;
        height: 225px;
        margin-right: 25px;
    }

    .top10-card-inner {
        width: 150px;
        height: 225px;
    }

    .top10-number {
        font-size: 8rem;
    }

    .top10-number-box {
        left: -25px;
        bottom: -15px;
    }
}

/* Search & Browse Grid Pages Styling - Consolidated at the end of file */

/* Watch Page */
.watch-main {
    padding: 40px 0;
}

.container {
    max-width: 1750px;
    margin: 0 auto;
    padding: 0 4%;
}

.watch-layout {
    display: grid;
    grid-template-columns: 3.2fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.watch-video-section {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.player-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.video-iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    background: #000;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* Server Selection */
.server-selection-box {
    background: rgba(31, 41, 55, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    margin-top: 5px;
}

.server-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #9ca3af;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.server-icon {
    font-size: 1.1rem;
}

.server-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}

.server-btn {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    color: #d1d5db;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.server-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-2px);
}

.server-btn.active {
    background: #00acc1;
    color: #fff;
    border-color: #00acc1;
    box-shadow: 0 4px 15px rgba(0, 172, 193, 0.4);
}

.server-loading {
    padding: 10px;
    color: #9ca3af;
    font-size: 0.9rem;
    grid-column: 1 / -1;
    text-align: center;
}

@media (max-width: 600px) {
    .server-list-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }
}

.info-section {
    margin: 35px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 30px;
}

.info-section h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 800;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    color: #fff;
    letter-spacing: -0.5px;
}

.media-meta {
    display: flex;
    gap: 20px;
    color: #9ca3af;
    margin-bottom: 25px;
    font-size: 1rem;
    font-weight: 600;
    align-items: center;
}

.media-meta span {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 6px;
}

#mediaRating {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
}

#mediaOverview {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #9ca3af;
    max-width: 1000px;
}

/* TV Seasons */
.seasons-wrapper {
    margin: 20px 0;
}

.seasons-wrapper h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #f3f4f6;
}

.season-item {
    margin-bottom: 15px;
}

.season-btn {
    width: 100%;
    text-align: left;
    padding: 15px 20px;
    background: #1f2937;
    font-size: 1.1rem;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.season-btn:hover,
.season-btn.open {
    background: #374151;
}

.episodes-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.episode-btn {
    padding: 12px 15px;
    background: rgba(31, 41, 55, 0.5);
    border-radius: 6px;
    text-align: left;
    font-size: 0.95rem;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.episode-btn:hover {
    background: #374151;
}

.episode-btn.active {
    background: #00acc1;
    color: #fff;
    font-weight: bold;
    border-color: #00acc1;
}

.hidden {
    display: none;
}

/* Watch Sidebar & Top 10 */
.watch-sidebar {
    background: rgba(255, 255, 255, 0.02);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: fit-content;
}

.watch-sidebar h2 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #fff;
    font-weight: 800;
    border-left: 4px solid #00acc1;
    padding-left: 12px;
    line-height: 1.2;
}

.top10-list {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.top10-item {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s;
}

.top10-item:hover {
    transform: translateX(10px);
}

.top10-number {
    font-size: 8rem;
    font-family: 'Arial Black', Impact, sans-serif;
    margin-right: -25px;
    z-index: 1;
    letter-spacing: -6px;
    opacity: 0.9;
    line-height: 1;
    display: inline-block;
    height: 1em;
    position: relative;
    font-weight: 700;
    color: #000;
    -webkit-text-stroke: 0.25rem rgb(255, 255, 255);
    text-shadow: 0 0 1.5rem rgba(0, 0, 0, 0.5);
}

.top10-item:hover .top10-number {
    -webkit-text-stroke-color: #00acc1;
    opacity: 1;
}

.top10-poster {
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #1a1f2e;
    aspect-ratio: 2/3;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.3s, box-shadow 0.3s;
}

.top10-poster.loaded {
    opacity: 1;
}

.top10-item:hover .top10-poster {
    box-shadow: 0 4px 25px rgba(0, 172, 193, 0.5);
    transform: scale(1.05);
}

.top10-info {
    margin-left: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 3;
}

.top10-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f3f4f6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
    line-height: 1.4;
}

.top10-meta {
    font-size: 0.8rem;
    color: #9ca3af;
    font-weight: 600;
}

.top10-meta span {
    color: #00acc1;
    margin-right: 5px;
}

/* Related Section */
.related-section {
    margin-top: 50px;
}

.related-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #f3f4f6;
    font-weight: 600;
}

/* SEO Content Section */
.seo-content {
    margin: 20px 4%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    max-height: 150px;
    overflow-y: auto;
    color: #9ca3af;
    font-size: 0.85rem;
    line-height: 1.6;
}

.seo-content h1,
.seo-content h2,
.seo-content h3 {
    color: #f3f4f6;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.seo-content p {
    margin-bottom: 10px;
}

.seo-content strong {
    color: #00acc1;
}

.seo-content::-webkit-scrollbar {
    width: 6px;
}

.seo-content::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 3px;
}

/* Footer */
.site-footer {
    padding: 40px 4%;
    background: #070a13;
    margin-top: 60px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.disclaimer {
    color: #6b7280;
    font-size: 0.85rem;
    margin-bottom: 25px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-links button {
    color: #9ca3af;
    font-size: 0.95rem;
    transition: color 0.3s;
    font-weight: 600;
}

.footer-links button:hover {
    color: #00acc1;
}

@media (max-width: 1024px) {
    .watch-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .info-section h1 {
        font-size: 2.2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content {
        max-width: 100%;
        margin-top: 80px;
    }
}

/* Hero Banner Responsive */
.hero-banner {
    position: relative;
    height: 500px;
    width: 100%;
    background: url('../icon.png') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #0b0f19 5%, rgba(11, 15, 25, 0.6) 50%, rgba(11, 15, 25, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
    margin-top: 50px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.1rem;
    color: #d1d5db;
    margin-bottom: 25px;
    line-height: 1.6;
}

.hero-search {
    position: relative;
    max-width: 500px;
    margin: 0 auto 30px;
    display: flex;
}

.hero-search input {
    width: 100%;
    padding: 15px 25px;
    border-radius: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.hero-search button {
    position: absolute;
    right: 8px;
    top: 8px;
    background: #00acc1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.hero-buttons button {
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1rem;
    transition: transform 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.primary-btn {
    background: #00acc1;
    color: white;
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(5px);
}

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

    .info-section h1 {
        font-size: 1.8rem;
    }

    .media-meta {
        flex-wrap: wrap;
        gap: 10px;
        font-size: 0.9rem;
    }

    #mediaOverview {
        font-size: 1rem;
    }

    .hero-banner {
        height: 450px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .hero-search input {
        padding: 12px 20px;
        font-size: 1rem;
    }

    .horizontal-scroll {
        mask-image: none;
        -webkit-mask-image: none;
        padding-left: 10px;
        padding-right: 10px;
    }

    .slider-btn {
        display: flex;
        opacity: 0.8 !important;
        width: 35px;
        height: 35px;
        font-size: 1rem;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(5px);
    }
}

@media (max-width: 480px) {
    .info-section h1 {
        font-size: 1.5rem;
    }

    .server-controls {
        flex-direction: column;
    }

    .server-btn {
        width: 100%;
    }

    .top10-number {
        font-size: 5rem;
    }
}

/* Wide Watch Layout */
.watch-layout-wide {
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Premium Browse & Grid Pages --- */
.browse-main {
    padding: 40px 0 80px 0;
    min-height: 80vh;
}

.browse-header {
    margin-bottom: 50px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    padding-left: 20px;
    border-left: 4px solid #00acc1;
}

.browse-header h1 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 12px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff 0%, #9ca3af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.browse-header p {
    color: #9ca3af;
    font-size: 1.15rem;
    max-width: 800px;
}

/* Professional Responsive Grid */
.search-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 35px 20px;
    margin-bottom: 60px;
    padding: 0 5px;
}

/* Movie Card Global Improvements */
.movie-card {
    background: transparent;
    border: none;
    padding: 0;
    text-align: left;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1);
    /* No global width 100% here to avoid breaking sliders */
}

/* Grid cards should be full width of their cell */
.search-grid .movie-card {
    width: 100%;
}

/* Slider cards need fixed dimensions */
.horizontal-scroll .movie-card {
    width: 180px;
    flex-shrink: 0;
}

.movie-card:hover {
    transform: translateY(-10px) scale(1.02);
    z-index: 10;
}

/* Card Visual Refinement */
.movie-card>div:first-child {
    position: relative;
    background: #1c2331;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    transition: box-shadow 0.3s;
    aspect-ratio: 2/3;
}

.movie-card:hover>div:first-child {
    box-shadow: 0 15px 40px rgba(0, 172, 193, 0.3);
}

.movie-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.movie-card:hover img {
    transform: scale(1.1);
}

.card-badge-rating {
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 800 !important;
    border-radius: 8px !important;
}

.card-badge-quality {
    background: #00acc1 !important;
    border-radius: 4px !important;
    font-weight: 900 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.movie-content-box {
    margin-top: 15px;
}

.movie-card-title {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin-bottom: 6px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-card-meta {
    font-size: 0.85rem !important;
    color: #9ca3af !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Modern Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.page-btn {
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s;
}

.page-btn:hover:not(:disabled) {
    background: #00acc1;
    border-color: #00acc1;
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 172, 193, 0.3);
}

.current-page {
    font-weight: 900;
    font-size: 1.2rem;
    color: #00acc1;
}

/* GLOBAL RESPONSIVE SWEEP */
@media (max-width: 1400px) {
    .search-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .container {
        max-width: 95%;
    }
}

@media (max-width: 1100px) {
    .search-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .browse-header h1 {
        font-size: 2.2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 850px) {
    .search-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px 15px;
    }

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        height: 100dvh;
        background: #0b0f19;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 35px;
        padding: 40px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 2000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        border-left: 1px solid rgba(255, 255, 255, 0.05);
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav a {
        font-size: 1.25rem;
        font-weight: 700;
    }

    .top-nav {
        padding: 8px 3%;
    }

    .nav-left {
        gap: 12px;
    }
}

@media (max-width: 550px) {
    .search-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 12px;
    }

    .horizontal-scroll .movie-card {
        width: 140px;
    }

    .browse-main {
        padding: 30px 0;
    }

    .browse-header h1 {
        font-size: 1.8rem;
    }

    .browse-header {
        padding-left: 15px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .nav-search-small {
        width: auto;
        flex: 1;
        max-width: none;
        margin: 0 8px;
        min-width: 0;
    }

    .nav-search-small:focus-within {
        max-width: none;
    }

    .brand-logo {
        height: 30px;
    }

    .watch-layout-wide {
        padding: 0 10px;
    }

    .slider-btn {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
}

@media (max-width: 300px) {
    .top-nav {
        padding: 8px 3%;
        gap: 8px;
    }

    .nav-left {
        flex-shrink: 0;
        gap: 8px;
    }

    .brand-logo {
        height: 26px;
    }

    .nav-right {
        gap: 6px;
    }

    .nav-search-small {
        width: auto;
        min-width: 0;
        padding: 4px;
        margin: 0;
        border-radius: 50%;
    }

    .nav-search-input {
        display: none;
    }

    .nav-search-btn {
        width: 32px;
        height: 32px;
    }

    .menu-toggle {
        gap: 4px;
    }

    .menu-toggle span {
        width: 20px;
    }
}

/* ===== FIXED LEFT ===== */ .bx-lf { position: fixed; bottom: 20px; left: 20px; z-index: 9999; } /* ===== FIXED RIGHT ===== */ .bx-rg { position: fixed; bottom: 20px; right: 20px; z-index: 9999; } /* ===== CLOSE BUTTON ===== */ .bx-lf button, .bx-rg button { position: absolute; top: -10px; right: -10px; width: 22px; height: 22px; border-radius: 50%; border: none; background: #000; color: #fff; cursor: pointer; font-size: 14px; line-height: 22px; padding: 0; } /* ===== MOBILE / TABLET ===== */ @media (max-width: 1024px) { .bx-lf { display: none; /* 300x250 chỉ PC */ } }