/*
Theme Name: Giao Dien 41
Description: MovieTube - YouTube-style video theme converted from PHP
Version: 1.0
Text Domain: giaodien41
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
  --bg-primary: #0f0f0f;
  --bg-secondary: #272727;
  --text-primary: #fff;
  --text-muted: #aaa;
  --border-color: #303030;
  --accent-color: #ff6b35;
  --link-color: #3ea6ff;
  
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 50%;
  
  --transition-fast: all 0.2s ease;
  --transition-normal: all 0.3s ease;
}

.pull-refresh-area {
    --header-height: 56px;
    --shorts-container-width: min(500px, 100vw);
    
    position: fixed;
    top: calc(var(--header-height) + 40px);
    left: calc(72px + (100% - 72px) / 2 - var(--shorts-container-width) / 2);
    width: var(--shorts-container-width);
    height: 80px;
    background: transparent;
    z-index: 3500;
    transform: translateY(-80px);
    transition: transform 0.3s ease;
    display: none;
    pointer-events: none;
}

.pull-refresh-area.active {
    display: block;
}

.pull-refresh-area.visible {
    transform: translateY(0);
}

.loading-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: relative;
}

.frame {
    position: relative;
    width: 220px;
    height: 220px;
}

.center {
    position: relative;
    width: 100%;
    height: 100%;
}

.dot-1 {
    position: absolute;
    z-index: 3;
    width: 30px;
    height: 30px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--text-primary);
    border-radius: var(--radius-full);
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation: jump-jump-1 0.5s cubic-bezier(0.21, 0.98, 0.6, 0.99) infinite alternate;
    animation: jump-jump-1 0.5s cubic-bezier(0.21, 0.98, 0.6, 0.99) infinite alternate;
}

.dot-2 {
    position: absolute;
    z-index: 2;
    width: 60px;
    height: 60px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #F0BE00;
    border-radius: var(--radius-full);
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation: jump-jump-2 0.5s cubic-bezier(0.21, 0.98, 0.6, 0.99) infinite alternate;
    animation: jump-jump-2 0.5s cubic-bezier(0.21, 0.98, 0.6, 0.99) infinite alternate;
}

.dot-3 {
    position: absolute;
    z-index: 1;
    width: 90px;
    height: 90px;
    top:  50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #D33100;
    border-radius: var(--radius-full);
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation: jump-jump-3 0.5s cubic-bezier(0.21, 0.98, 0.6, 0.99) infinite alternate;
    animation: jump-jump-3 0.5s cubic-bezier(0.21, 0.98, 0.6, 0.99) infinite alternate;
}

@keyframes jump-jump-1 {
    0%, 70% {
        box-shadow: 2px 2px 3px 2px rgba(0, 0, 0, 0.2);
        -webkit-transform: translate(-50%, -50%) scale(0);
        transform: translate(-50%, -50%) scale(0);
    }

    100% {
        box-shadow: 10px 10px 15px 0 rgba(0, 0, 0, 0.3);
        -webkit-transform: translate(-50%, -50%) scale(1);
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes jump-jump-2 {
    0%, 40% {
        box-shadow: 2px 2px 3px 2px rgba(0, 0, 0, 0.2);
        -webkit-transform: translate(-50%, -50%) scale(0);
        transform: translate(-50%, -50%) scale(0);
    }

    100% {
        box-shadow: 10px 10px 15px 0 rgba(0, 0, 0, 0.3);
        -webkit-transform: translate(-50%, -50%) scale(1);
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes jump-jump-3 {
    0%, 10% {
        box-shadow: 2px 2px 3px 2px rgba(0, 0, 0, 0.2);
        -webkit-transform: translate(-50%, -50%) scale(0);
        transform: translate(-50%, -50%) scale(0);
    }

    100% {
        box-shadow: 10px 10px 15px 0 rgba(0, 0, 0, 0.3);
        -webkit-transform: translate(-50%, -50%) scale(1);
        transform: translate(-50%, -50%) scale(1);
    }
}

body {
    font-family: "Roboto", Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
}

/* Solid Background System */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-primary);
    z-index: -1;
    pointer-events: none;
}

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

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

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 2000;
}

/* Header sidebar area */
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 240px;
    height: 100%;
    background-color: var(--bg-primary);
    z-index: -1;
}

/* Header main area */
.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 240px;
    right: 0;
    height: 100%;
    background-color: var(--bg-primary);
    z-index: -1;
}

/* Sticky Chips Bar */
.chips-bar {
    position: fixed;
    top: 56px;
    left: 240px;
    right: 0;
    height: 60px;
    background-color: var(--bg-primary);
    display: flex;
    align-items: center;
    padding: 0 24px;
    z-index: 1000;
    transition: left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    overflow: hidden;
    scrollbar-width: none;
    transition: left 0.2s ease;
}

.filter-chips {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
    flex: 1 1 auto;
    min-width: 0;
}

.filter-chips::-webkit-scrollbar {
    display: none;
}

.chips-nav-btn {
    position: fixed;
    top: 64px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: var(--radius-full);
    background: var(--bg-primary);
    color: var(--text-primary)fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    transition: var(--transition-fast);
    z-index: 1001;
}

.chips-nav-btn:active {
    transform: scale(0.95);
}

.chips-nav-btn.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}

.chips-nav-left {
    left: 230px;
}

.chips-nav-right {
    right: -10px;
}

.chips-bar::-webkit-scrollbar {
    display: none;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.menu-btn:hover {
    background-color: var(--bg-secondary);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-xl);
    font-weight: 500;
}

.logo i {
    color: #ff0000;
    font-size: 28px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.logo-badge {
    position: absolute;
    top: -4px;
    right: -24px;
    /* background: linear-gradient(135deg, #ff0000, #cc0000); */
    color: #adadad;
    font-size: 11px;
    /* font-weight: 400; */
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    /* box-shadow: 0 2px 4px rgba(255, 0, 0, 0.3); */
    /* border: 1px solid rgba(255, 255, 255, 0.2); */
}

.header-center {
    flex: 1;
    max-width: 640px;
    margin: 0 40px;
}

.search-container {
    display: flex;
    height: 40px;
    position: relative; }

.search-input {
    flex: 1;
    background-color: #121212;
    border: 1px solid var(--border-color);
    border-radius: 20px 0 0 20px;
    padding: 0 16px;
    font-size: var(--text-base);
    color: var(--text-primary);
}

.search-input:focus {
    border-color: var(--border-color);
    outline: none;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    width: 64px;
    height: 40px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0 20px 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: background-color 0.2s;
}

.search-btn:hover {
    background-color: #3f3f3f;
}


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

/* Random video button */
.random-btn {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    transition: background-color 0.2s, transform 0.15s;
    font-size: 16px;
}

.random-btn:hover {
    background-color: var(--bg-secondary);
}

.random-btn:active {
    transform: scale(0.9);
}

.language-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-sm);
}

.language-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.flag-icon {
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.vietnam-flag {
    background: #da020e;
}

.usa-flag {
    background: #3c3b6e;
}

.china-flag {
    background: #de2910;
}

.japan-flag {
    background: #bc002d;
}

.korea-flag {
    background: #0047a0;
}

.france-flag {
    background: #0055a4;
}

.language-text {
    font-weight: 500;
    white-space: nowrap;
}

.dropdown-arrow {
    font-size: var(--text-xs);
    transition: transform 0.3s ease;
}

.language-selector:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #282828;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-normal);
    z-index: 1000;
}

.language-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 13px;
    color: var(--text-primary);
}

.language-option:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.language-option.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.language-option .flag-icon {
    width: 16px;
    height: 16px;
}

/* Sidebar Overlay Backdrop */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 240px;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: pointer;
    display: none;
}

.sidebar-collapsed {
    width: 80px !important;
}

.sidebar-collapsed .sidebar-item span {
    display: block;
    font-size: 10px;
    line-height: 1.2;
    text-align: center;
    margin-top: 4px;
    font-weight: 400;
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-collapsed .sidebar-title {
    display: none;
}

.sidebar-collapsed .sidebar-item {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 4px;
    min-height: 64px;
}

.sidebar-collapsed .sidebar-item i {
    margin-right: 0;
    margin-bottom: 0;
    font-size: var(--text-lg);
}

/* Content adjustment when sidebar collapsed */
.sidebar-collapsed ~ .main-container .content {
    margin-left: 80px;
}


/* Main Container */
.main-container {
    margin-top: 116px;     min-height: calc(100vh - 116px);
}

/* Sidebar Styles */
.sidebar {
    width: 240px;
    background-color: var(--bg-primary);
    height: calc(100vh - 56px);
    position: fixed;
    top: 56px;
    left: 0;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    z-index: 1500;
    padding: 16px 0;
}

.sidebar::-webkit-scrollbar {
    display: none; }

.sidebar-section {
    padding: 8px 0;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 18px 24px;
    color: var(--text-primary);
    text-decoration: none;
    transition: background-color 0.2s;
    font-size: 15px;
}

.sidebar-item:hover {
    background-color: var(--bg-secondary);
}

.sidebar-item.active {
    background-color: transparent;
    font-weight: 500;
}

.sidebar-item.active i {
    color: var(--text-primary);
    filter: brightness(1.3);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

/* Change icon style from regular to solid when active */
.sidebar-item.active .far:before {
    font-weight: 900; /* fas weight */
    font-family: "Font Awesome 6 Free";
}

.sidebar-item i {
    width: 24px;
    margin-right: 24px;
    font-size: var(--text-lg);
}

.sidebar-divider {
    height: 1px;
    background-color: var(--bg-secondary);
    margin: 12px 0;
}

.sidebar-title {
    padding: 8px 24px;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

button.sidebar-item,
button.bottom-nav-item,
button.menu-item {
    border: 0;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
}

button.sidebar-item {
    width: 100%;
    text-align: left;
}

.personal-panel-overlay {
    position: fixed;
    inset: 56px 0 0 0;
    background-color: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 2190;
}

.personal-panel {
    position: fixed;
    top: 56px;
    left: 240px;
    width: min(380px, calc(100vw - 240px));
    height: calc(100vh - 56px);
    background-color: var(--bg-primary);
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.35);
    transform: translateX(-24px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
    z-index: 2200;
    display: flex;
    flex-direction: column;
}

.sidebar.sidebar-collapsed ~ .personal-panel {
    left: 72px;
    width: min(380px, calc(100vw - 72px));
}

body.personal-panel-open .personal-panel-overlay,
body.personal-panel-open .personal-panel {
    opacity: 1;
    visibility: visible;
}

body.personal-panel-open .personal-panel {
    transform: translateX(0);
}

.personal-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 64px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
}

.personal-panel-title {
    font-size: var(--text-lg);
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-primary);
}

.personal-panel-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.personal-clear-btn,
.personal-close-btn,
.personal-remove-btn {
    border: 0;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.personal-clear-btn {
    min-height: 34px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
}

.personal-close-btn,
.personal-remove-btn {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.personal-clear-btn:hover,
.personal-close-btn:hover,
.personal-remove-btn:hover {
    background-color: #3f3f3f;
}

.personal-panel-body {
    overflow-y: auto;
    padding: 12px;
}

.personal-view {
    display: none;
}

.personal-view.active {
    display: block;
}

.personal-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.personal-video-item,
.personal-link-item,
.personal-empty {
    border-radius: var(--radius-sm);
    background-color: transparent;
}

.personal-video-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
}

.personal-video-item:hover,
.personal-link-item:hover {
    background-color: var(--bg-secondary);
}

.personal-video-link {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    text-decoration: none;
}

.personal-video-link img {
    width: 96px;
    aspect-ratio: var(--img-aspect-ratio, 16/9);
    object-fit: cover;
    border-radius: var(--radius-sm);
    background-color: var(--bg-secondary);
}

.personal-video-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
    font-size: var(--text-sm);
}

.personal-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 10px 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: var(--text-sm);
}

.personal-link-item i {
    color: var(--text-muted);
}

.personal-empty {
    padding: 24px 12px;
    color: var(--text-muted);
    text-align: center;
    font-size: var(--text-sm);
}

.save-btn.active,
.save-btn[aria-pressed="true"] {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .personal-panel-overlay {
        inset: 0 0 60px 0;
        z-index: 2996;
    }

    .personal-panel {
        top: auto;
        left: 0;
        right: 0;
        bottom: 60px;
        width: 100%;
        height: min(70vh, 560px);
        border-left: 0;
        border-right: 0;
        border-top: 1px solid var(--border-color);
        border-radius: 16px 16px 0 0;
        transform: translateY(calc(100% + 60px));
        z-index: 2997;
    }

    .sidebar.sidebar-collapsed ~ .personal-panel {
        left: 0;
        width: 100%;
    }

    body.personal-panel-open .personal-panel {
        transform: translateY(0);
    }

    .personal-video-link {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .personal-video-link img {
        width: 88px;
    }
}

/* Explore section styles */
.explore-title {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: color 0.2s;
}

.explore-title:hover {
    color: var(--text-primary);
}

.explore-arrow {
    margin-right: 8px;
    font-size: var(--text-xs);
    transition: transform 0.3s ease;
}

.explore-section.collapsed .explore-arrow {
    transform: rotate(-90deg);
}

.explore-items {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 500px;
    opacity: 1;
    overflow: hidden;
}

.explore-section.collapsed .explore-items {
    max-height: 0;
    opacity: 0;
}

.explore-item {
    padding-left: 24px !important; /* Extra indentation for sub-items */
}

/* Content */
.content {
    flex: 1;
    margin-left: 240px;
    padding: 20px 20px 0px 20px;
    background-color: var(--bg-primary);
    transition: margin-left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.chip {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition-normal);
    font-size: var(--text-sm);
    font-weight: 500;
}

.chip:hover {
    background-color: rgba(64, 64, 64, 0.8);
}

.chip.active {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--bg-primary);
    text-decoration: none;
}

/* Videos Grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}


.video-card {
    position: relative;
    cursor: pointer;
    transition: transform 0.2s;
    animation: fadeIn 0.3s ease-out;
}

.video-card:hover {
    transform: translateY(-2px);
}

/* Stretched link — whole card clickable */
.video-card .video-title-link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 4;
}

.video-thumbnail {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: var(--fv-thumb-aspect-ratio, 16/9);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 12px;
    text-decoration: none;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

/* YouTube-style Skeleton Loading - Default State */
.video-card .video-thumbnail {
    background: #3a3a3a;
    border-radius: 12px;
}

.video-card .video-thumbnail img {
    opacity: 0;
}

.video-card .avatar {
    background: #3a3a3a;
}

.video-card .avatar img {
    opacity: 0;
}

.video-card .video-title {
    background: #3a3a3a;
    color: transparent;
    border-radius: 4px;
    height: 15px;
    margin-bottom: 0px;
    overflow: hidden;
    width: 90%;
}

.video-card .video-channel {
    background: #3a3a3a;
    color: transparent;
    border-radius: 4px;
    height: 14px;
    width: 50%;
    display: block;
    margin-bottom: 0px;
    overflow: hidden;
}

.video-card .video-metadata {
    display: none;
}

.video-card .video-duration,
.video-card .video-status,
.video-card .verified-badge {
    opacity: 0;
}

/* Loaded State - Show Everything */
.video-card.loaded .video-thumbnail {
    background: transparent;
}

.video-card.loaded .video-thumbnail img {
    opacity: 1;
    animation: fade-in 0.3s ease-in;
}

.video-card.loaded .avatar {
    background: transparent;
}

.video-card.loaded .avatar img {
    opacity: 1;
    animation: fade-in 0.3s ease-in;
}

.video-card.loaded .video-title {
    background: transparent;
    color: var(--text-primary);
    height: auto;
}

.video-card.loaded .video-channel {
    background: transparent;
    color: var(--text-muted);
    height: auto;
    width: auto;
    display: inline-flex;
}

.video-card.loaded .video-metadata {
    display: block;
    background: transparent;
    color: var(--text-muted);
    height: auto;
    width: auto;
}

.video-card.loaded .video-duration,
.video-card.loaded .video-status,
.video-card.loaded .verified-badge {
    opacity: 1;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.02);
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--text-primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: var(--text-xs);
    font-weight: 500;
}

.video-info {
    display: flex;
    gap: 12px;
    flex: 1;
}

/* Avatar Base Class */
.avatar {
    border-radius: var(--radius-full);
    overflow: hidden;
    flex-shrink: 0;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Avatar Size Modifiers */
.avatar--sm {
    width: 24px;
    height: 24px;
}

.avatar--md {
    width: 36px;
    height: 36px;
}

.avatar--lg {
    width: 48px;
    height: 48px;
}

.avatar--xl {
    width: 120px;
    height: 120px;
}

.video-details {
    flex: 1;
    min-width: 0;
}

.video-title {
    font-size: var(--text-base);
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-title a {
    color: var(--text-primary);
    transition: color 0.2s;
}

.video-title a:hover {
    color: #ccc;
}

.video-channel {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin: 4px 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Verified Badge */
.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.verified-badge i {
    font-size: 12px;
    color: #aaaaaa;
}

/* Alternative: Custom SVG verified badge */
.verified-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    background: #aaaaaa;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.verified-icon::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #0f0f0f;
    font-size: 10px;
    font-weight: bold;
}

.video-metadata {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: 2px;
    margin-top: 4px;
}

/* Mobile Search Toggle */
.mobile-search-toggle {
    display: none !important;
}

/* Search Overlay - Pure CSS Implementation */
.search-overlay {
    background-color: rgba(24, 24, 24, 0.85);
    backdrop-filter: blur(25px) saturate(120%);
    z-index: 2500;
    display: none;
    overflow-y: auto;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Disable scroll when search overlay is open */
body:has(.search-container:focus-within),
body:has(.mobile-search-toggle:checked) {
    overflow: hidden;
}

.search-content {
    padding: 16px 0 0 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
}

.search-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-right: 25px;
}

.search-back {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
    pointer-events: auto;
    z-index: 3000;
    position: relative;
    flex-shrink: 0;
}

.search-back:hover {
    background-color: #a5a5a5;
}

.search-input-overlay {
    flex: 1;
    background-color: #121212;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 12px 16px;
    font-size: var(--text-base);
    color: var(--text-primary);
    outline: none;
}

.search-input-overlay:focus {
    border-color: var(--border-color);
}

.search-input-overlay::placeholder {
    color: var(--text-muted);
}

/* Mobile Search Suggestions */
.search-suggestions {
    flex: 1;
    overflow-y: auto;
    padding-top: 8px;
    padding-right: 16px;
}

.suggestions-title {
    font-size: 25px;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--text-primary);
    text-align: center;
}

/* ===== Suggestion Chips (Overlay) ===== */
.suggestion-chips {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0;
}

.suggestion-chip {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
    line-height: 1.4;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s;
}

.suggestion-chip:hover {
    background: rgba(255, 255, 255, 0.07);
    border-left-color: var(--accent-color);
}

.suggestion-chip:active {
    background: rgba(255, 255, 255, 0.1);
}

.suggestion-chip i {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    font-size: 13px;
    flex-shrink: 0;
    transition: background 0.18s, color 0.18s;
}

.suggestion-chip:hover i {
    background: rgba(255, 107, 53, 0.15);
    color: var(--accent-color);
}

.suggestion-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: #404040;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}


/* Animation cho hover effects */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Dark theme enhancements */
.video-card:hover .video-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .video-thumbnail::after {
    opacity: 1;
}

/* ===== SHORTS PAGE - YouTube Style ===== */
.shorts-main {
    min-height: 100vh;
    background: var(--bg-primary);
    display: flex;
    border-radius: 12px 12px 0 0;
    justify-content: center;
    align-items: center;
    transition: var(--transition-normal);
}

#shorts-container {
    width: 100%;
    max-width: 500px;
    height: 100vh;
    position: relative;
    overflow: visible;
    background: var(--bg-primary);
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
}

#shorts-container::-webkit-scrollbar {
    display: none;
}

/* Short Video Wrapper */
.short-video-wrapper {
    width: 100%;
    height: 100vh;
    position: relative;
    scroll-snap-align: start;
    display: none;
}

.short-video-wrapper.active {
    display: block;
}

/* Template should be hidden */
#video-template {
    display: none !important;
}

/* Video Container */
.short-video-container {
    width: 100%;
    height: 100%;
    position: relative;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Shorts Video Player */
.short-video-wrapper .video-player {
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
    cursor: pointer;
}

/* Portrait/Vertical Video Player for Shorts */
.short-video-wrapper.portrait .video-player {
    aspect-ratio: 9/16;
    max-height: 90vh;
    margin: 0 auto;
}

.video-poster {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--bg-primary);
}

/* Controls Overlay */
.controls-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 5;
}

/* Shorts Navigation Buttons */
.shorts-nav-buttons {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 100;
    pointer-events: auto;
}

.shorts-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-primary);
    font-size: var(--text-lg);
    cursor: pointer;
    transition: all 0.2s;
    padding: 12px;
    border-radius: var(--radius-full);
    width: 48px;
    height: 48px;
    backdrop-filter: blur(10px);
}

.shorts-nav-btn i {
    font-size: var(--text-base);
}

.shorts-nav-btn:hover {
    transform: scale(1.05);
}

.shorts-nav-btn.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}

/* Shorts Video Header - fixed position in container */
.shorts-video-header {
    position: absolute;
    top: 58px;
    left: 16px;
    right: 16px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-sm);
    z-index: 2;
}

.shorts-video-header .shorts-channel-link {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    text-decoration: none;
    color: inherit;
}

.shorts-video-header .shorts-video-title {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

/* Shorts Video Footer - fixed position in container */
.shorts-video-footer {
    position: absolute;
    bottom: 0px;
    left: 16px;
    right: 16px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-sm);
    z-index: 2;
}

.shorts-video-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.shorts-more-info {
    margin-top: 8px;
    font-size: var(--text-lg);
    color: var(--text-muted);
}

.shorts-url-link {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.shorts-url-link:hover {
    text-decoration: underline;
}

/* Legacy - keeping for backward compatibility */
.shorts-video-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 16px 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.shorts-channel-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.shorts-channel-name {
    color: var(--text-primary);
    font-size: var(--text-lg);
    font-weight: 500;
    text-decoration: none;
}

.shorts-channel-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.shorts-like-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
    border-radius: var(--radius-xl);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.shorts-like-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.shorts-like-btn.liked {
    background: #ff0000;
    border-color: #ff0000;
}

.shorts-like-btn.liked i {
    color: var(--text-primary);
}

.shorts-subscribe-btn {
    background: #ff0000;
    color: var(--text-primary);
    border: none;
    padding: 6px 12px;
    border-radius: 18px;
    font-size: var(--text-xs);
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.shorts-subscribe-btn:hover {
    background: #cc0000;
}

.shorts-video-title {
    color: var(--text-primary);
    font-size: var(--text-lg);
    font-weight: 500;
    margin: 0 0 4px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shorts-description-text {
    color: #ccc;
    font-size: var(--text-base);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shorts-hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}

.shorts-hashtags .hashtag {
color: #55acee;
font-size: var(--text-base);
font-weight: 500;
}

.shorts-view-count {
color: var(--text-muted);
font-size: var(--text-lg);
font-weight: 500;
}

.hashtags {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-bottom: 4px;
}

.hashtag {
color: var(--link-color);
font-size: var(--text-xs);
cursor: pointer;
transition: color 0.2s;
}

.hashtag:hover {
color: #65b8ff;
text-decoration: underline;
}

.video-stats {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
}

/* Shorts Video Positioning System */
.positioned-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.video-current {
    transform: translateY(0);
    z-index: 3;
}

.video-next {
    transform: translateY(100vh);
    z-index: 2;
}

.video-prev {
    transform: translateY(-100vh);
    z-index: 1;
}

.positioned-video.active {
    z-index: 3;
}

.positioned-video.dragging {
    transition: none !important;
}

/* Video Page Specific Styles */
.video-page-content {
    display: flex;
    gap: 24px;
    width: 100%;
    margin: 0 auto;
}

.video-main {
    flex: 2;
}

/* Video page video player */
.video-main .video-player {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: var(--bg-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.2s;
    cursor: pointer;
    margin-bottom: 8px;
    position: relative;
}


.video-player video {
    width: 100%;
    height: 100%;
}

.video-player-placeholder {
    width: 100%;
    height: 100%;
    background-image: url('placeholder.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    left: 0;
}

.video-header {
    margin-bottom: 12px;
}

.video-main-title {
    font-size: var(--text-xl);
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.video-views {
    font-weight: 500;
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* Action Button Base Class */
.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
    color: var(--text-primary);
}

/* Video Player Buttons (gradient style) */
.action-btn--video {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #333333 100%);
    border-radius: var(--radius-xl);
    height: 36px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    min-width: fit-content;
}

.action-btn--video:hover {
    background: linear-gradient(135deg, #404040 0%, #505050 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Studio Buttons */
.action-btn--primary {
    background: var(--accent-color);
    color: var(--text-primary);
}

.action-btn--primary:hover {
    background: #e55a2b;
}

.action-btn--secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.action-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.like-btn.liked {
    background: linear-gradient(135deg, var(--link-color) 0%, #1976d2 100%);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(62, 166, 255, 0.3);
    transform: translateY(-1px);
}

.like-btn.liked:hover {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    box-shadow: 0 4px 12px rgba(62, 166, 255, 0.4);
    transform: translateY(-1px);
}

.like-btn.liked i {
    font-weight: 900; /* Change to solid when liked */
    font-family: "Font Awesome 6 Free";
}

.server-btn {
    background: linear-gradient(135deg, #505050 0%, #606060 100%);
}

.server-btn:hover {
    background: linear-gradient(135deg, #606060 0%, #707070 100%);
}

/* Video Description Sections */
.description-section {
    margin-top: 16px;
}

/* Section Title Base Class */
.section-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* Section Title Size Modifiers */
.section-title--sm {
    font-size: var(--text-sm);
    margin-bottom: 8px;
}

.section-title--lg {
    font-size: var(--text-lg);
}

.section-title--xl {
    font-size: var(--text-xl);
}

.genre-tags, .actor-tags, .hashtag-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Genre Tags - Transparent */
.genre-tag {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid #606060;
    border-radius: var(--radius-lg);
    font-size: var(--text-xs);
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.genre-tag:hover {
    background: linear-gradient(135deg, #606060 0%, #707070 100%);
    color: var(--text-primary);
    transform: translateY(-1px);
}

/* Actor Tags - Solid Gray Buttons */
.actor-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px;
    background: linear-gradient(135deg, #606060 0%, #707070 100%);
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--text-xs);
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.actor-tag:hover {
    background: linear-gradient(135deg, #808080 0%, #909090 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

.actor-tag span {
    padding: 4px 10px 4px 0;
}

.actor-avatar {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    object-fit: cover;
    flex-shrink: 0;
}

/* Hashtags - YouTube Style */
.hashtag {
    color: var(--link-color);
    font-size: var(--text-xs);
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
}

.hashtag:hover {
    color: #65b8ff;
}

/* Description Text States */
.description-text.collapsed .description-content {
    position: relative;
    display: block;
}


.description-text.collapsed .description-full {
    display: none;
}

.description-text.expanded .description-content {
    display: none;
}

.description-text.expanded .description-full {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Show More/Less Buttons */
.show-more-btn, .show-less-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    margin-left: 8px;
    transition: color 0.2s ease;
}

.show-more-btn:hover, .show-less-btn:hover {
    color: var(--text-primary);
}

.show-less-btn {
    margin-top: 16px;
    padding: 8px 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* You Might Like Section */
.you-might-like {
    margin-top: 24px;
    padding-top: 24px;
}

.you-might-like .section-title {
    margin-bottom: 16px;
    padding-left: 10px;
}



.channel-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 0;
    margin-bottom: 16px;
}

.channel-main {
    display: flex;
    align-items: center;
    flex: none;
}

.video-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}


.channel-details {
    flex: 1;
    padding-left: 10px;
}

.channel-name {
    font-size: var(--text-base);
    font-weight: 500;
    margin-bottom: 4px;
}

.channel-subscribers {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.subscribe-btn {
    background-color: #cc0000;
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: var(--radius-xl);
    font-weight: 500;
    transition: background-color 0.2s;
}

.subscribe-btn:hover {
    background-color: #aa0000;
}

.video-description {
    background-color: var(--bg-secondary);
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.description-text {
    font-size: var(--text-sm);
    line-height: 1.4;
    color: var(--text-primary);
}


/* Sidebar for related videos */
.video-sidebar {
    flex: 1;
    min-width: 300px;
}

/* Playlist Section */
.playlist-section {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
}

.playlist-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.playlist-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.3;
}

.playlist-subtitle div:first-child {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.related-videos {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.related-video {
    display: flex;
    flex-direction: row;
    gap: 12px;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s;
    cursor: pointer;
}

.related-video:hover {
    background-color: var(--bg-secondary);
}

.related-thumbnail {
    width: 168px;
    height: 94px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.related-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 4px;
    border-radius: 2px;
    font-size: 11px;
}

.related-info {
    flex: 1;
    padding: 4px 0;
    min-width: 0;
}

.related-title {
    font-size: var(--text-sm);
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-channel {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-bottom: 2px;
}

.related-views {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.related-channel-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}


.related-meta {
    flex: 1;
    min-width: 0;
}


/* ===== RANKING PAGE STYLES ===== */
.ranking-content {
    padding: 20px;
}

/* Ranking Header */
.ranking-header {
    text-align: center;
    margin-bottom: 8px; }

.ranking-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.ranking-title i {
    color: #ffd700;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

/* Filter Controls */
.ranking-filters {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    gap: 10px;
    padding: 5px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-btn {
    padding: 10px 20px;
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-sm);
    font-weight: 500;
}

.filter-btn:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-1px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transform: translateY(-1px);
}

.filter-btn i {
    font-size: var(--text-base);
}

/* Timeline Container */
.timeline-ranking {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Vertical Timeline Line - Chỉ cho top 3 */
.timeline-line {
    position: absolute;
    left: 28px;
    top: 0;
    height: calc(3 * (20px + 80px + 20px));     width: 3px;
    background: linear-gradient(180deg, 
        #ffd700 0%, 
        #c0c0c0 50%, 
        #cd7f32 100%);
    border-radius: 2px;
}

.timeline-ranking {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Top 3 giữ timeline layout */
.top-3-timeline {
    position: relative;
}

/* Ẩn container trên desktop - rank 2-3 vẫn hiển thị riêng lẻ */
.top-23-container {
    display: block;
}

.top-3-timeline .timeline-line {
    position: absolute;
    left: 28px;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(180deg, 
        #ffd700 0%, 
        #c0c0c0 50%, 
        #cd7f32 100%);
    border-radius: 2px;
}

/* Grid layout cho 4+ */
.remaining-ranks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.remaining-ranks .ranking-item {
    margin-bottom: 0;
}

.remaining-ranks .rank-card {
    flex-direction: row;
    padding: 15px;
    width: 100%;
    gap: 12px;
}

.remaining-ranks .card-thumbnail {
    width: 120px;
    aspect-ratio: var(--fv-thumb-aspect-ratio, 16/9);
    flex-shrink: 0;
}

.remaining-ranks .card-content {
    margin-left: 0;
}

/* Rank-badge overlay cho top 4+ */
.remaining-ranks .ranking-item {
    position: relative;
}

.remaining-ranks .rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    width: 30px;
    height: 30px;
}

.remaining-ranks .rank-number {
    font-size: var(--text-lg);
}


/* Ranking Item */
.ranking-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    animation: slideInLeft 0.6s ease-out;
}

/* Rank Badge */
.rank-badge {
    position: relative;
    top: 50px;
    width: 60px;
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(15, 15, 15);
    border-radius: var(--radius-full);
    z-index: 2;
    flex-shrink: 0;
}

.rank-badge.gold {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border: 2px solid #ffd700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
}

.rank-badge.silver {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    border: 2px solid #c0c0c0;
    box-shadow: 0 0 25px rgba(192, 192, 192, 0.5);
}

.rank-badge.bronze {
    background: linear-gradient(135deg, #cd7f32, #e6a557);
    border: 2px solid #cd7f32;
    box-shadow: 0 0 20px rgba(205, 127, 50, 0.4);
}

.rank-badge .fa-crown {
    position: absolute;
    top: -15px;
    font-size: var(--text-xl);
    color: var(--text-primary);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.rank-number {
    font-size: 28px;
    font-weight: 900;
    color: var(--text-primary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.rank-badge:not(.gold):not(.silver):not(.bronze) .rank-number {
    color: rgba(255, 255, 255, 0.9);
}

/* Rank Card */
.rank-card {
    flex: 1;
    display: flex;
    gap: 10px;
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: var(--transition-normal);
    text-decoration: none;
    color: inherit;
}

.rank-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Special Card for #1 */
.rank-card.special {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.1), 
        rgba(15, 15, 15, 0.7));
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.2);
}

/* Compact Card */
.rank-card.compact {
    padding: 10px;
}

.rank-card.compact .movie-title {
    font-size: 1.1rem;
}

/* Card Thumbnail - Desktop có width cố định, mobile responsive */
.card-thumbnail {
    position: relative;
    width: 215px;     aspect-ratio: var(--fv-thumb-aspect-ratio, 16/9);
    overflow: hidden;
    background: #2a2a2a;
    border-radius: var(--radius-md);
}

.rank-card.compact .card-thumbnail {
    width: 170px; /* Desktop compact: nhỏ hơn base size */
    aspect-ratio: var(--fv-thumb-aspect-ratio, 16/9);
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.duration-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: var(--text-xs);
    font-weight: 500;
}

/* Card Content */
.card-content {
    flex: 1;
    display: grid;
    flex-direction: column;
    gap: 12px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.movie-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    line-height: 1.3;
    max-height: 2.8em;     overflow: hidden;
}


/* Card Stats */
.card-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-sm);
}

.stat-item i {
    color: rgba(255, 255, 255, 0.6);
}

/* Progress Bar */
.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
    transition: width 0.6s ease;
}

/* Achievement Badges */
.achievement-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.achievement-badge {
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    font-size: var(--text-xs);
    font-weight: 500;
    color: white;
}

.achievement-badge.blockbuster {
    background: rgba(255, 107, 53, 0.2);
    border-color: rgba(255, 107, 53, 0.4);
}

.achievement-badge.masterpiece {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.4);
}

.achievement-badge.trending {
    background: rgba(255, 61, 0, 0.2);
    border-color: rgba(255, 61, 0, 0.4);
}

.achievement-badge.popular {
    background: rgba(138, 43, 226, 0.2);
    border-color: rgba(138, 43, 226, 0.4);
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}




/* ===== PAGINATION STYLES ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0px 0px 240px;     padding: 0 20px;
    transition: margin 0.3s ease;
}

.pagination-btn {
    background-color:var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: var(--text-sm);
    font-weight: 500;
    min-width: 40px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover {
    background-color: rgba(25, 25, 25, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.pagination-btn.active {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--bg-primary);
    border-color: rgba(255, 255, 255, 0.3);
}

.pagination-btn:disabled {
    background-color: rgba(15, 15, 15, 0.3);
    border-color: rgba(255, 255, 255, 0.05);
    cursor: not-allowed;
    opacity: 0.5;
}

.pagination-btn:disabled:hover {
    background-color: rgba(15, 15, 15, 0.3);
    transform: none;
}

.pagination-dots {
    color: rgba(255, 255, 255, 0.6);
    padding: 8px 4px;
    font-size: var(--text-sm);
    font-weight: 500;
}


/* ===== FOOTER STYLES ===== */
.footer {
    background: var(--bg-primary);
    padding: 50px 0 30px;
    position: relative;
    z-index: 10;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-main {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.footer-logo i {
    color: var(--accent-color);
    font-size: 32px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    font-size: 15px;
    max-width: 100%;
}

.footer-social {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    justify-content: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: var(--accent-color);
    color: var(--text-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
    border-color: var(--accent-color);
}


.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    font-weight: 400;
    margin-left: 80px; }

/* Actors Page Styles */
.actors-header {
    margin-bottom: 24px;
}

.actors-header .page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

/* Top 3 Actors Section */
.top-actors-section {
    margin-bottom: 48px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.top-actors-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: 
        linear-gradient(135deg, 
            rgba(184, 134, 11, 0.15) 0%, 
            rgba(160, 82, 45, 0.08) 50%, 
            rgba(120, 53, 15, 0.15) 100%);
    mask: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

.top-actors-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
    padding-top: 12px;
}

.actors-section-title {
    font-weight: 800;
    background: linear-gradient(135deg, #ffd700, #ffed4e, #ffd700);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.actors-section-title i {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 24px;
}

.section-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-base);
}

/* Podium Container */
.top-actors-podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: clamp(20px, 5.5vw, 80px);
    min-height: 380px;
    position: relative;
}

/* Podium Actor Cards */
.podium-actor {
    flex: 0 0 clamp(200px, 20vw, 320px);
    position: relative;
    animation: fadeInUp 0.6s ease-out;
}

.podium-actor.rank-1 {
    animation-delay: 0.2s;
}

.podium-actor.rank-2 {
    animation-delay: 0.1s;
}

.podium-actor.rank-3 {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.actor-rank-badge {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: rgba(30, 30, 30, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    z-index: 2;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.actor-rank-badge.gold {
    background: linear-gradient(135deg, #ffd700, #ffed4e, #ffd700);
    color: var(--text-primary);
    box-shadow: 0 4px 30px rgba(255, 215, 0, 0.5);
}

.actor-rank-badge.silver {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8, #c0c0c0);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(192, 192, 192, 0.5);
}

.actor-rank-badge.bronze {
    background: linear-gradient(135deg, #cd7f32, #e8a863, #cd7f32);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(205, 127, 50, 0.5);
}

.actor-rank-badge i {
    font-size: var(--text-xl);
    margin-bottom: 2px;
}

.actor-rank-badge span {
    font-size: var(--text-sm);
    line-height: 1;
}

.actor-podium-card {
    border-radius: var(--radius-xl);
    padding: 20px;
    padding-bottom: 0;
    text-align: center;
    position: relative;
    transition: var(--transition-normal);
    background: var(--bg-primary);
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    box-sizing: border-box;
}

.podium-actor.rank-1 .actor-podium-card {
    margin-bottom: 120px;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.podium-actor.rank-2 .actor-podium-card {
    margin-bottom: 80px;
    border: 2px solid rgba(192, 192, 192, 0.3);
}

.podium-actor.rank-3 .actor-podium-card {
    margin-bottom: 40px;
    border: 2px solid rgba(205, 127, 50, 0.3);
}

.actor-podium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Tái sử dụng actor-image styles có sẵn */
.actor-podium-card .actor-image {
    margin: 0 auto 16px;
}


/* Tái sử dụng actor-name styles */
.actor-podium-card .actor-name {
    margin-bottom: 12px;
    text-align: center;
}

/* Use existing actor-stats styles for podium cards */
.actor-podium-card .actor-stats {
    justify-content: center;
    margin-bottom: 20px;
}

.actors-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: var(--text-sm);
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
}

.filter-select:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.filter-select option {
    background: #1a1a1a;
    color: var(--text-primary);
}

/* Actors Grid */
.actors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.actor-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-normal);
}

.actor-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.actor-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.actor-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: 1 / 1;
}

.actor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Movie Count Badge - Overlay trên actor image thay thế actor-stats */
.movie-count-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.85);
    color: var(--text-primary);
    padding: 6px 10px;
    border-radius: var(--radius-lg);
    font-size: 13px;
    font-weight: 600;
    z-index: 10;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 4px;
}

.movie-count-badge:before {
    content: "\f008";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: var(--text-xs);
}

.actor-card:hover .movie-count-badge {
    background: rgba(255, 255, 255, 0.95);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.actor-rank {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, var(--accent-color), #ff4500);
    color: var(--text-primary);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: var(--text-sm);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
}

.actor-info {
    padding: 16px 16px 8px 16px;     text-align: center;
}

.actor-name {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
}

.actor-role {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
}

.actor-stats {
    display: flex;
    gap: 12px;
    align-items: center;
}

.stat-item {
    gap: 4px;
    font-size: var(--text-xs);
}

.stat-item i {
    color: var(--accent-color);
    font-size: 11px;
}

/* Studios Page Styles */
.studios-header {
    text-align: center;
    margin-bottom: 32px;
}

.studios-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.studios-subtitle {
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.7);
}

/* Studios Categories */
.studios-categories {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.category-btn {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
}

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

.category-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-primary);
}

/* Studios List */
.studios-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(282px, 1fr));
    gap: 12px;
    margin-bottom: 32px;
}

.studio-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-normal);
}

.studio-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.studio-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.studio-banner {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
}

.studio-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.studio-logo {
    position: absolute;
    bottom: -20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: var(--text-primary);
    border-radius: var(--radius-md);
    padding: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

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

/* Studios list page - card content */
.studios-card-content {
    padding: 5px 0px 20px 90px;
    position: relative;
}

/* Studio detail page - main content */
.studio-content {
    padding: 32px 20px 20px;
    position: relative;
}

.studio-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.studio-name {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--text-primary);
}

.studio-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: var(--radius-lg);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 3;
}

.studio-badge.premium {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
}

.studio-badge.verified {
    background: #1da1f2;
    color: var(--text-primary);
}

.studio-badge.trending {
    background: var(--accent-color);
    color: var(--text-primary);
}

.studio-badge.indie {
    background: #9333ea;
    color: var(--text-primary);
}

.studio-badge:not(.premium):not(.verified):not(.trending):not(.indie) {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.studio-stats {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.studio-stats .stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.8);
}


.studio-stats .stat i {
    color: var(--accent-color);
    font-size: 11px;
}

/* Pagination with sidebar states */
.sidebar-collapsed .pagination {
    margin: 40px 72px 30px 72px;
}

/* Footer with sidebar states */
.footer {
    margin-left: 240px;
    transition: margin-left 0.3s ease;
}

.sidebar-collapsed .footer {
    margin-left: 72px;
}

.footer-legal {
    display: flex;
    gap: 24px;
    align-items: center;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
    transition: var(--transition-normal);
    padding: 4px 8px;
    border-radius: 6px;
}

.footer-legal a:hover {
    color: var(--accent-color);
    background: rgba(255, 107, 53, 0.1);
}


/* YouTube Studio Styles */
.studio-content {
    flex: 1;
    margin-left: 240px;
    padding: 20px 20px 0px 20px;
    transition: margin-left 0.3s ease;
}

/* Adjust when sidebar collapsed */
.sidebar-collapsed ~ .main-container .studio-content {
    margin-left: 80px;
}

/* Channel Header */
.channel-header {
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(25px) saturate(130%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 24px;
}

/* Channel Banner */
.channel-banner {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.channel-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Channel Info Section */
.channel-info-section {
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.channel-profile {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

/* Avatar edit overlay for studios page */
.avatar--xl {
    position: relative;
    margin-top: -60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 15, 15, 0.9);
}



.channel-details h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.channel-handle {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
    margin-bottom: 4px;
}

.channel-stats {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

.channel-actions {
    display: flex;
    gap: 12px;
}


/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    margin-bottom: 32px;
}

.stat-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: var(--text-xl);
}

.stat-number {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.stat-change {
    font-size: var(--text-xs);
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 4px;
}

.stat-change.positive {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}

/* Section Styles */
.section {
    margin-bottom: 32px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}


.view-all-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    background: none;
    border: none;
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.view-all-btn:hover {
    color: #e55a2b;
}

.video-status {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    background: rgba(74, 222, 128, 0.9);
    color: #000;
}

.video-stats {
    display: flex;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.video-engagement {
    display: flex;
    gap: 16px;
    align-items: center;
}

.video-engagement span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}


/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}


.quick-action-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 107, 53, 0.3);
    background: rgba(15, 15, 15, 0.8);
}

.quick-action-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--accent-color);
    font-size: 24px;
}

.quick-action-card h3 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.quick-action-card p {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

/* =============================================== */
/*          SEARCH RESULTS PAGE STYLES            */
/* =============================================== */


/* Search Info Bar */
.search-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 20px;
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(25px) saturate(130%);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-query-info h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.query-text {
    color: #4a9eff;
}

.results-count {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
}

.results-count strong {
    color: var(--text-primary);
}



/* =============================================== */
/*          404 PAGE STYLES            */
/* =============================================== */

        /* 404 Page Specific Styles */
        .error-container {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        
        .error-content {
            text-align: center;
            background: rgba(15, 15, 15, 0.7);
            backdrop-filter: blur(25px) saturate(130%);
            border-radius: var(--radius-xl);
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 60px 40px;
            max-width: 500px;
            width: 100%;
        }
        
        .error-logo {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            margin-bottom: 40px;
        }
        
        .error-logo i {
            font-size: 48px;
            color: #ff0000;
        }
        
        .error-logo span {
            font-size: 32px;
            font-weight: 700;
            color: var(--text-primary);
        }
        
        .error-code {
            font-size: 120px;
            font-weight: 900;
            color: #ff0000;
            line-height: 1;
            margin-bottom: 20px;
            text-shadow: 0 0 30px rgba(255, 0, 0, 0.3);
        }
        
        .error-title {
            font-size: 28px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 16px;
        }
        
        .error-message {
            font-size: var(--text-base);
            color: rgba(255, 255, 255, 0.7);
            line-height: 1.5;
            margin-bottom: 40px;
        }
        
        .home-button {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 16px 32px;
            background: #ff0000;
            border: none;
            border-radius: var(--radius-md);
            color: var(--text-primary);
            font-size: var(--text-base);
            font-weight: 600;
            text-decoration: none;
            transition: var(--transition-normal);
            cursor: pointer;
        }
        
        .home-button:hover {
            background: #cc0000;
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(255, 0, 0, 0.4);
        }
        
        .home-button i {
            font-size: var(--text-lg);
        }
        
        /* Floating Animation */
        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
        }
        
        .error-content {
            animation: float 3s ease-in-out infinite;
        }
        
        

/* =============================================== */
/*          RESPONSIVE REFACTOR                    */
/* =============================================== */

/* Tablet Search Overlay - Auto-collapsed sidebar */
@media (min-width: 769px) and (max-width: 1024px) {
    body:has(.search-container:focus-within) .search-overlay {
        display: block;
        position: fixed;
        top: 56px;
        left: 80px;
        right: 0;
        bottom: 0;
        width: calc(100% - 80px);
        height: calc(100vh - 56px);
        z-index: 2500;
        border-radius: var(--radius-sm);
        border: 1px solid #404040;
        backdrop-filter: blur(10px);
        background-color: rgba(24, 24, 24, 0.85);
    }
    
    /* Hide overlay search input on tablet (already have header search) */
    .search-overlay .search-input-overlay {
        display: none;
    }
    
    /* Hide original search-header for desktop */
    .search-overlay .search-header {
        display: none;
    }
    
    .search-overlay.active {
        display: block !important;
    }
}



/* Tablet Landscape - Auto-collapsed sidebar */
@media (max-width: 1024px) {

    .pull-refresh-area {
        --shorts-container-width: 100vw;
        width: 100vw;
    }    

    .pagination {
        margin-left: 72px;     }
    
    .footer {
        margin-left: 72px;     }
    
    .footer-copyright {
        margin-left: 0;     }


    /* Tablet */
    .shorts-main {
        margin-left: 72px;
    }
    
    #shorts-container {
        max-width: 500px;
        margin: 0 auto;
    }

    .chips-bar {
        left: 80px;
    }
        
    .chips-nav-left {
        left: 70px;
    }
    
    .chips-nav-right {
        right: -10px;
        top: 64px;
    }
    
    .content {
        margin-left: 80px;
        padding-top: 10px;
    }
    
    .sidebar {
        width: 80px;
        padding: 12px 0;
    }
    
    .sidebar-item span {
        display: block;
        font-size: 10px;
        line-height: 1.2;
        text-align: center;
        margin-top: 4px;
        font-weight: 400;
        word-wrap: break-word;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .sidebar-title {
        display: none;
    }
    
    .sidebar-item {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 12px 4px;
        min-height: 64px;
    }
    
    .sidebar-item i {
        margin-right: 0;
        margin-bottom: 0;
        font-size: var(--text-lg);
    }
    
    .videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 16px;
    }
    
    /* Tablet overlay behavior - JS controlled */
    .sidebar-overlay {
        display: block;
    }
    
    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Sidebar expanded state on tablet */
    .sidebar.sidebar-expanded {
        width: 240px !important;
        padding-top: 8px;
        z-index: 3000;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    }
    
    .sidebar.sidebar-expanded .sidebar-item span {
        display: block;
    }
    
    .sidebar.sidebar-expanded .sidebar-title {
        display: block;
    }
    
    .sidebar.sidebar-expanded .sidebar-item {
        flex-direction: row !important;
        align-items: center;
        padding: 15px 24px;
        justify-content: flex-start;
        min-height: auto;
    }
    
    .sidebar.sidebar-expanded .sidebar-item i {
        margin-right: 24px;
        margin-bottom: 0;
        font-size: 24px;
    }
    
    .sidebar.sidebar-expanded .sidebar-item span {
        font-size: var(--text-sm);
        text-align: left;
        margin-top: 0;
        white-space: normal;
        word-wrap: break-word;
    }
    /* Responsive suggestions layout */
    .suggestions-list {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 14px;
    }
 
    .video-page-content {
        flex-direction: column;
        gap: 16px;
    }

    .video-main {
        order: 1;
    }

    .video-sidebar {
        order: 2;
        width: 100%;
    }


    .related-videos {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .related-video {
        flex-direction: column;
        gap: 8px;
        padding: 0px
    }

    .related-thumbnail {
        width: 100%;
        height: auto;
        aspect-ratio: var(--fv-thumb-aspect-ratio, 16/9);
    }
    
    /* Sidebar overlay for video page at tablet size */
    .sidebar-toggle-checkbox:checked ~ .sidebar {
        width: 240px;
        z-index: 3000;
    }
    
    .sidebar-toggle-checkbox:checked ~ .main-container {
        margin-left: 0;
    }
    
    /* Content Mobile */
    .content {
        padding: 20px 12px;
    }
    
    .main-container {
        margin-top: 104px;     }

    /* Video Grid Mobile - Two columns */
    .videos-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .video-card {
        max-width: none;
    }
    
    /* Mobile Video Card Layout - YouTube style */
    .video-info {
        gap: 8px;
    }
    
    .video-avatar {
        width: 32px;
        height: 32px;
    }
    
    .video-title {
        font-size: var(--text-sm);
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .video-channel,
    .video-metadata {
        font-size: var(--text-xs);
    }
    

    /* Playlist section mobile */
    .playlist-section {
        margin-bottom: 12px;
        padding: 12px;
    }

    .playlist-title {
        font-size: 15px;
    }

    .playlist-subtitle {
        font-size: var(--text-xs);
    }

    .actors-section-title {
        font-size: 28px;
    }

}


@media (max-width: 768px) {

    .pull-refresh-area {
        --shorts-container-width: 100vw;
        left: 0;
        width: 100vw;
    }    

    .ranking-title {
        font-size: 2rem;
    }
    
    .ranking-filters {
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .filter-group {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    /* Top 3 timeline styles */
    .top-3-timeline .timeline-line {
        left: 35px;
    }
    
    .rank-badge {
        width: 70px;
        height: 70px;
    }
    
    .rank-number {
        font-size: 22px;
    }
    
    /* Grid layout cho remaining ranks (4+) - 1 cột để thumbnail lớn hơn */
    .remaining-ranks {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 25px;
    }
    
    .remaining-ranks .ranking-item {
        gap: 15px;
        margin-bottom: 0;
        flex-direction: row;     }
    
    .remaining-ranks .rank-card {
        flex-direction: row;
        padding: 15px;
        width: 100%;
        gap: 15px;
    }
    
    .remaining-ranks .card-thumbnail {
        width: 160px;         aspect-ratio: var(--fv-thumb-aspect-ratio, 16/9);
        flex-shrink: 0;
        overflow: hidden;
        border-radius: var(--radius-md);
    }
    
    .remaining-ranks .card-content {
        flex: 1;
        margin-left: 0;
    }
    
    .movie-title {
        font-size: 1.1rem;
    }
    
    .card-stats {
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .stat-item {
        font-size: 13px;
    }
    
    .achievement-badges {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .achievement-badge {
        font-size: 11px;
        padding: 4px 8px;
    }
    


    /* Show overlay when mobile search toggle is checked */
    .mobile-search-toggle:checked ~ .search-overlay {
        display: block;
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        bottom: 60px;
        width: 100%;
        height: calc(100vh - 116px);
        z-index: 2500;
        border-radius: 0;
        border: none;
    }
    
    /* Show mobile search input on mobile */
    .search-overlay .search-input-overlay {
        display: block;
    }
    
    /* Show mobile search back button on mobile */
    .search-overlay .search-back {
        display: flex;
    }
      

    .error-content {
        padding: 40px 20px;
        margin: 0 10px;
    }
    
    .error-code {
        font-size: 80px;
    }
    
    .error-title {
        font-size: 24px;
    }
    
    .error-logo i {
        font-size: 36px;
    }
    
    .error-logo span {
        font-size: 24px;
    }
    
    .home-button {
        padding: 14px 28px;
        font-size: var(--text-sm);
    }

    .studio-content {
        margin-left: 0;
        padding: 12px;
    }
    
    .channel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .channel-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }


    .footer {
        margin-left: 0;
        padding: 30px 0 80px;
    }
    
    .footer-content {
        padding: 0 20px;
    }
    
    .footer-main {
        text-align: center;
    }
    
    .footer-brand {
        align-items: center;
        gap: 16px;
    }
    
    .footer-logo {
        font-size: 24px;
    }
    
    .footer-logo i {
        font-size: 28px;
    }
    
    .footer-description {
        max-width: 100%;
        font-size: var(--text-sm);
    }
    
    .footer-social {
        gap: 12px;
    }
    
    .social-link {
        width: 44px;
        height: 44px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding-top: 20px;
    }
    
    .footer-copyright {
        margin-left: 0;
        text-align: center;
    }
    
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }


    /* Responsive cho Studios */
    .studios-title {
        font-size: 26px;
    }
    
    .studios-subtitle {
        font-size: var(--text-sm);
    }
    
    .studios-categories {
        gap: 8px;
    }
    
    .category-btn {
        padding: 6px 16px;
        font-size: 13px;
    }
    
    
    .studios-card-content {
        padding: 10px 10px 15px 20px;
    }
    
    .studio-logo {
        width: 50px;
        height: 50px;
        bottom: -15px;
    }
    
    .studio-header {
        padding-left: 60px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
    
    .studio-name {
        font-size: var(--text-lg);
    }

    .actors-header .page-title {
        font-size: 24px;
    }
    
    .actors-filters {
        width: 100%;
    }
    
    .filter-select {
        flex: 1;
        min-width: 140px;
    }
    
    .actors-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
    
    .actor-info {
        padding: 12px;
    }
    
    .actor-name {
        font-size: var(--text-sm);
    }
    
    .actor-role {
        font-size: var(--text-xs);
    }

    .top-actors-section {
        margin-bottom: 32px;
    }

    .actors-section-title {
        font-size: 24px;
    }

    .section-subtitle {
        font-size: var(--text-sm);
    }

    .top-actors-podium {
        gap: clamp(8px, 2vw, 20px);
    }

    .podium-actor {
        flex: 1;
        min-width: clamp(100px, 25vw, 180px);
        max-width: clamp(120px, 30vw, 220px);
    }

    /* Responsive badge size */
    .actor-rank-badge {
        width: clamp(40px, 8vw, 60px);
        height: clamp(40px, 8vw, 60px);
        top: clamp(-12px, -2vw, -20px);
    }

    .actor-rank-badge i {
        font-size: clamp(14px, 3vw, 20px);
    }

    .actor-rank-badge span {
        font-size: clamp(10px, 2.5vw, 14px);
    }

    /* Responsive card padding */
    .actor-podium-card {
        padding: clamp(12px, 3vw, 20px);
        padding-top: clamp(24px, 6vw, 40px);
    }

    

/* Pagination Responsive */
    .pagination {
        gap: 6px;
        margin: 30px 0 20px 0;
        padding: 0 16px;
    }
    
    .pagination-btn {
        padding: 6px 10px;
        font-size: 13px;
        min-width: 36px;
        height: 32px;
    }
    
    .pagination-dots {
        font-size: 13px;
    }

/* Responsive for Ranking - Small screens (max-width: 768px) */
    .ranking-title {
        font-size: 1.8rem;
    }
    
    .ranking-filters {
        gap: 15px;
        flex-direction: row;
        align-items: center;
    }
    
    /* Sort filters on first row */
    .filter-group.sort-filters {
        order: 1;
        gap: 8px;
        padding: 3px;
    }
    
    /* Time filters on second row */
    .filter-group.time-filters {
        order: 2;
        gap: 8px;
        padding: 3px;
    }
    
    .filter-btn {
        padding: 8px 12px;
        font-size: var(--text-xs);
        display: flex;
        align-items: center;
        gap: 6px;
    }
    
    .filter-btn i {
        font-size: var(--text-xs);
    }
    
    .filter-btn span {
        font-size: 11px;
    }
    
    /* Top 3 layout cho mobile - "1 ở trên, 2-3 ở dưới" */
    .top-3-timeline {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 24px;
    }
    
    .top-3-timeline .timeline-line {
        display: none;     }
    
    /* Top 1 - Full width ở trên */
    .ranking-item.rank-1 {
        align-self: center;
        max-width: 350px;
        width: 100%;
    }
    
    /* Container cho Top 2 và 3 - Chỉ hiển thị trên mobile */
    .top-23-container {
        display: flex;
        gap: 8px;
        justify-content: space-between;
        align-items: stretch;
        width: 100%;
    }
    
    /* Ẩn rank-2 và rank-3 riêng lẻ trên mobile (dùng container thay thế) */
    .top-3-timeline > .ranking-item.rank-2,
    .top-3-timeline > .ranking-item.rank-3 {
        display: none;
    }
    
    /* Top 2 và 3 - Cùng hàng với kích thước bằng nhau */
    .ranking-item.rank-2,
    .ranking-item.rank-3 {
        flex: 1;
        max-width: calc(50% - 4px);
        margin-bottom: 0;
    }
    
    /* Điều chỉnh kích thước card cho rank 2-3 trên mobile */
    .ranking-item.rank-2 .rank-card,
    .ranking-item.rank-3 .rank-card {
        padding: 0;
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .ranking-item.rank-2 .card-thumbnail,
    .ranking-item.rank-3 .card-thumbnail {
        aspect-ratio: var(--fv-thumb-aspect-ratio, 16/9);
    }
    
    .ranking-item.rank-2 .movie-title,
    .ranking-item.rank-3 .movie-title {
        font-size: 0.9rem;
        line-height: 1.2;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 2rem;     }
    
    /* Remaining ranks - Grid layout riêng */
    .remaining-ranks {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 20px;
    }
    
    /* For top 1 with centered card - adjust badge position */
    .ranking-item.rank-1 .rank-badge {
        left: 50%;
        transform: translateX(-50%);
        top: 8px;
    }
    
    .rank-badge {
        position: absolute;
        top: 8px;
        left: 8px;
        z-index: 10;
        width: 30px;
        height: 30px;
    }
    
    
    .rank-number {
        font-size: var(--text-base);
    }
    
    .rank-badge .fa-crown {
        font-size: var(--text-xs);
        top: -8px;
    }
    
    .ranking-item {
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .rank-card {
        flex-direction: column;
        padding: 15px;
    }
    
    .card-thumbnail {
        width: 100%;
        aspect-ratio: var(--fv-thumb-aspect-ratio, 16/9);
    }
    
    .movie-title {
        font-size: 1rem;
    }
    
    .card-stats {
        gap: 10px;
    }
    
    .stat-item {
        font-size: var(--text-xs);
    }
    
    .achievement-badges {
        display: none;
    }
    
    .rank-1 .achievement-badges,
    .rank-2 .achievement-badges,
    .rank-3 .achievement-badges {
        display: flex;
    }


    .shorts-main {
        margin-bottom: 60px;
        min-height: calc(100vh - 60px);
        margin-left: 0;
    }
    
    #shorts-container,
    .short-video-wrapper {
        height: calc(100vh - 60px);
    }
    
    .shorts-action-buttons {
        bottom: 140px;
    }
    
    .shorts-nav-buttons {
        display: none;
    }
    
    .shorts-video-header {
        padding: 8px 12px;
    }
    
    .shorts-video-footer {
        padding: 8px 12px;
    }
    
    .shorts-video-info {
        padding: 12px;
    }
    
    .video-next {
    transform: translateY(100vh);
    }
    
    .video-prev {
        transform: translateY(-100vh);
    }

    /* Header Mobile Layout */
    .header {
        padding: 0 12px;
    }
    
    .menu-btn {
    display: none;
    }
    
    /* Hide sidebar completely when bottom-nav is present */
    .sidebar {
        display: none;
    }
    
    .sidebar-overlay {
        display: none;
    }
    
    
    .logo span {
        display: inline;
    }
    
    /* Mobile search button */
    .mobile-search-btn {
        width: 40px;
        height: 40px;
        background-color: var(--bg-secondary);
        border-radius: var(--radius-full);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-primary);
        cursor: pointer;
        transition: background-color 0.2s;
    }

    .header-center {
        display: none;
    }

    /* Mobile search overlay - will be positioned by JS */
    .search-overlay {
        border-radius: 0 !important;
        border: none !important;
    }

    /* Chips bar mobile */
    .chips-bar {
        left: 0;
        padding: 0 12px;
        height: 48px;
    }
    
    .filter-chips {
        gap: 8px;
    }
    
    /* Mobile chips nav positioning */
    .chips-nav-left {
        left: -5px;
        top: 60px;
    }
    
    .chips-nav-right {
        right: -10px;
        top: 60px;
    }
    
    .chip {
        font-size: 13px;
        padding: 6px 10px;
        border-radius: 6px;
    }

    /* Sidebar Mobile - Full overlay */
    .sidebar {
        width: 280px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 3000;
        box-shadow: none;
    }
    
    .sidebar-toggle-checkbox:checked ~ .sidebar {
        transform: translateX(0);
        width: 280px;
        padding-top: 8px;
    }
    
    .sidebar-toggle-checkbox:checked ~ .main-container {
        margin-left: 0;
    }
    
    /* Content Mobile */
    .content {
        margin-left: 0;
        padding: 12px;
    }
    
    .main-container {
        margin-top: 104px;     }

    /* Video Grid Mobile - Two columns */
    .videos-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .video-card {
        max-width: none;
    }
    
    /* Mobile Video Thumbnail - Đảm bảo tỉ lệ 16:9 cố định */
    .video-thumbnail {
        position: relative;
        width: 100%;
        aspect-ratio: var(--fv-thumb-aspect-ratio, 16/9);
        border-radius: var(--radius-sm);
        overflow: hidden;
        margin-bottom: 8px;
    }
    
    .video-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    
    /* Mobile Video Card Layout - YouTube style */
    .video-info {
        gap: 8px;
    }
    
    .video-avatar {
        width: 32px;
        height: 32px;
    }
    
    .video-title {
        font-size: var(--text-sm);
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .video-channel,
    .video-metadata {
        font-size: var(--text-xs);
    }
    
    /* Show overlay on mobile */
    .sidebar-overlay {
        display: block;
    }
    
    /* Bottom Navigation - Mobile Only */
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: rgba(0, 0, 0, 0.3);
        -webkit-backdrop-filter: blur(10px) saturate(180%);
        backdrop-filter: blur(10px) saturate(180%);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.4);
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 1000;
        padding: 4px 0;
    }
    
    /* Thêm lớp overlay blur thứ 2 cho bottom-nav giống bottom-menu */
    .bottom-nav::before {
        content: '';
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background-color: rgba(0, 0, 0, 0.4);
        -webkit-backdrop-filter: blur(8px) saturate(110%);
        backdrop-filter: blur(8px) saturate(110%);
        z-index: -1;
        pointer-events: none;
    }
    
    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--text-muted);
        text-decoration: none;
        font-size: 10px;
        min-width: 60px;
        padding: 4px 8px;
        transition: color 0.2s;
    }
    
    .bottom-nav-item i {
        font-size: var(--text-xl);
        margin-bottom: 2px;
    }
    
    .bottom-nav-item.active {
        color: var(--text-primary);
    }
    
    .bottom-nav-item:hover {
        color: var(--text-primary);
    }
    
    /* Menu toggle animation */
    .menu-toggle .menu-icon,
    .menu-toggle .close-icon {
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    .menu-toggle .close-icon {
        opacity: 0;
        position: absolute;
        transform: rotate(90deg);
    }
    
    .bottom-menu-checkbox:checked ~ .bottom-nav .menu-toggle .menu-icon {
        opacity: 0;
        transform: rotate(-90deg);
    }
    
    .bottom-menu-checkbox:checked ~ .bottom-nav .menu-toggle .close-icon {
        opacity: 1;
        transform: rotate(0deg);
    }
    
    /* Bottom Menu Toggle */
    .bottom-menu-checkbox {
        display: none !important;
    }
    
    /* Bottom Menu Overlay */
    .bottom-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 60px;
        background-color: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(8px) saturate(110%);
        z-index: 2998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .bottom-menu-checkbox:checked ~ .bottom-menu-overlay {
        opacity: 1;
        visibility: visible;
    }
    
    /* Bottom Slide-up Menu */
    .bottom-menu {
        position: fixed;
        bottom: 60px;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.3);
        -webkit-backdrop-filter: blur(10px) saturate(180%);
        backdrop-filter: blur(10px) saturate(180%);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.4);
        z-index: 2999;
        transform: translateY(calc(100% + 60px));
        transition: transform 0.3s ease;
    }
    
    .bottom-menu-checkbox:checked ~ .bottom-menu {
        transform: translateY(0);
    }
    
    /* Disable scroll when bottom menu is open - Chỉ khóa body scroll */
    /* Đã xóa rule cho .main-container vì gây lỗi pagination */
    
    /* Also prevent body scroll when menu is open */
    body:has(.bottom-menu-checkbox:checked) {
        overflow: hidden;
    }
    
    .bottom-menu-content {
        padding: 16px 12px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    /* Mobile app-style handle at top */
    .bottom-menu-handle {
        grid-column: 1 / -1;
        width: 130px;
        height: 4px;
        background-color: #666;
        border-radius: 2px;
        margin: 0 auto 16px auto;
    }
    
    .menu-item-wrapper {
        border-radius: var(--radius-md);
        overflow: hidden;
        position: relative;
    }
    
    /* Fix overflow for language selector wrapper */
    .menu-item-wrapper:has(.bottom-menu-language),
    .bottom-menu-language .menu-item-wrapper {
        overflow: visible !important;
        z-index: 2000;
    }
    
    .menu-item {
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--radius-md);
        width: 100%;
        min-height: 60px;
        border: 1px solid #404040;
    }
    
    /* Active state for menu items */
    .menu-item.active {
        background: rgba(255, 0, 0, 0.15);
        border-color: rgba(255, 0, 0, 0.5);
    }
    
    .menu-item.active i {
        color: #ff0000;
    }
    
    .menu-item.active span {
        color: var(--text-primary)fff;
        font-weight: 600;
    }
    
    .menu-item i {
        font-size: var(--text-xl);
        color: var(--text-muted);
        margin-right: 12px;
        min-width: 20px;
    }
    
    .menu-item span {
        font-size: var(--text-sm);
        line-height: 1.2;
    }
    
    /* Bottom Menu Language Selector */
    .bottom-menu-language .language-btn {
        width: 100%;
        justify-content: center;
        gap: 12px;
    }
    
    .bottom-menu-language .language-dropdown {
        position: absolute;
        top: auto;
        bottom: 100%;
        left: 0;
        right: 0;
        transform: translateY(-8px);
        width: 100%;
        border-radius: var(--radius-sm);
        padding: 8px;
        transition: var(--transition-normal);
        z-index: 3000;
    }
    
    .bottom-menu-language.active .language-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(-8px);
    }
    
    .bottom-menu-language .language-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .suggestions-list {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }


}

/* Desktop responsive styles */
@media (min-width: 769px) {
        .mobile-search-btn,
    .bottom-nav,
    .bottom-menu,
    .bottom-menu-overlay,
    .bottom-menu-checkbox {
        display: none !important;
    }
    
        
    /* Desktop specific enhancements */
    .search-back {
        width: 48px;
        height: 48px;
    }
    
    /* Desktop language selector hover */
    .language-selector:hover .language-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* Large Desktop - Keep overlay enabled */
@media (min-width: 1025px) {

    /* Desktop - Sidebar States */
    .shorts-main {
        margin-left: 80px;
        transition: margin-left 0.3s ease;
    }
    
    /* When sidebar is collapsed */
    .sidebar-collapsed .shorts-main {
        margin-left: 72px;
    }
    
    #shorts-container {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .shorts-video-header {
        padding: 16px 20px;
    }
    
    .shorts-video-footer {
        padding: 16px 20px;
    }
    
    .shorts-video-info {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .shorts-action-buttons {
        right: 20px;
        bottom: 160px;
    }
    
    .shorts-nav-buttons {
        display: block;
    }
    
    /* Desktop specific enhancements */
    .shorts-video-header {
        padding: 16px 20px;
    }
    
    .shorts-video-footer {
        padding: 16px 20px;
    }

    .pull-refresh-area {
        top: calc(var(--header-height) + 40px);
        left: calc(80px + (100% - 80px) / 2 - var(--shorts-container-width) / 2);
    }
    
    .sidebar-collapsed .pull-refresh-area {
        left: calc(72px + (100% - 72px) / 2 - var(--shorts-container-width) / 2);
    }

    /* Desktop chips-bar adjustment for collapsed sidebar */
    body:has(.sidebar-collapsed) .chips-bar {
        left: 80px;
    }
    
    body:has(.sidebar-collapsed) .chips-nav-left {
        left: 84px;
    }
    /* Show overlay when search input is focused - Default expanded sidebar */
    body:has(.search-container:focus-within) .search-overlay {
        display: block;
        position: fixed;
        top: 112px;
        left: 240px;
        right: 0;
        bottom: 0;
        width: calc(100% - 240px);
        height: calc(100vh - 112px);
        z-index: 2500;
        border-radius: var(--radius-sm);
        border: 1px solid #404040;
        backdrop-filter: blur(10px);
        background-color: rgba(24, 24, 24, 0.85);
    }
    
    /* Collapsed sidebar state - Desktop */
    body:has(.sidebar-collapsed):has(.search-container:focus-within) .search-overlay {
        left: 80px;
        width: calc(100% - 80px);
    }
    
    /* Hide overlay search input on desktop (already have header search) */
    .search-overlay .search-input-overlay {
        display: none;
    }
    
    /* Hide original search-header for desktop */
    .search-overlay .search-header {
        display: none;
    }

    .search-overlay.active {
        display: block !important;
    }

}



@media (max-width: 425px) {

    /* Movie Count Badge - Mobile responsive */
    .movie-count-badge {
        top: 6px;
        left: 6px;
        padding: 4px 8px;
        font-size: var(--text-xs);
        border-radius: var(--radius-md);
    }
    
    .movie-count-badge:before {
        font-size: 10px;
    }

    .actors-section-title {
        font-size: var(--text-xl);
        gap: 8px;
    }
    
    .actors-section-title i {
        font-size: var(--text-lg);
    }
    
    .top-actors-header {
        margin-bottom: 24px;
    }
    
    .actor-rank-badge {
        width: 50px;
        height: 50px;
        top: -15px;
    }
    
    .actor-rank-badge i {
        font-size: var(--text-base);
    }
    
    .actor-rank-badge span {
        font-size: var(--text-xs);
    }
    
    .actor-podium-name {
        font-size: var(--text-base);
    }    

    .pagination {
        gap: 4px;
        padding: 0 12px;
    }
    
    .pagination-btn {
        padding: 6px 8px;
        font-size: var(--text-xs);
        min-width: 32px;
        height: 28px;
    }    

    /* Small Mobile and below - Full width container */
    #shorts-container {
        max-width: 100vw;
    }
    
    .video-poster {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }
    
    .shorts-nav-buttons {
        right: 8px;
        bottom: 120px;
        gap: 16px;
    }
    
    .shorts-nav-btn {
        min-width: 44px;
        min-height: 44px;
        padding: 6px;
    }
    
    .shorts-nav-btn i {
        font-size: var(--text-xl);
    }
    
    .shorts-nav-btn span {
        font-size: 10px;
    }
    
    .shorts-video-header {
        padding: 6px 8px;
    }
    
    .shorts-video-footer {
        padding: 6px 8px;
    }
    
    .shorts-video-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .shorts-video-info {
        padding: 8px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .shorts-channel-info {
        margin-bottom: 4px;
    }
    
    .shorts-video-title {
        font-size: var(--text-base);
    }
    
    .shorts-description-text {
        font-size: var(--text-sm);
    }
    
    .shorts-hashtags .hashtag {
        font-size: var(--text-sm);
    }


    /* Responsive for Ranking - Extra Small screens (max-width: 425px) - Zoom To Effect */    
    .ranking-title {
        font-size: 2.5rem;
    }
    
    .ranking-filters {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0 8px;
    }
    
    .filter-btn {
        padding: 14px 18px;
        font-size: var(--text-base);
        min-height: 44px;
    }
    
    .filter-btn i {
        font-size: var(--text-base);
    }
    
    .filter-btn span {
        font-size: 15px;
    }
    
    /* Rank cards zoom to effect */
    .ranking-item.rank-1 {
        max-width: 340px;
    }
    
    .top-23-container .ranking-item.rank-2,
    .top-23-container .ranking-item.rank-3 {
        flex: 1;
        max-width: calc(50% - 6px);
    }
    
    /* Card thumbnails giữ aspect-ratio responsive */
    .card-thumbnail {
        aspect-ratio: var(--fv-thumb-aspect-ratio, 16/9);
    }
    
    .movie-title {
        font-size: var(--text-lg);
        line-height: 1.3;
    }
    
    .movie-meta {
        font-size: 15px;
    }
    
    .stat-item {
        font-size: 15px;
    }
    
    /* Remaining ranks cũng tăng to */
    .remaining-ranks .ranking-item .movie-title {
        font-size: var(--text-base);
    }
    
    .remaining-ranks .ranking-item .movie-meta {
        font-size: var(--text-sm);
    }

    .header {
        padding: 0 12px;
    }
    
    .header-center {
        margin: 0 8px;
    }
    
    .logo span {
        display: inline;
    }
    
    .content {
        padding: 0 12px;
    }
    
    .studio-content {
        padding: 0 12px;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .video-info {
        gap: 8px;
    }
    
    .video-avatar {
        width: 32px;
        height: 32px;
    }
    
    .video-title {
        font-size: 15px;
    }
    
    .video-channel,
    .video-metadata {
        font-size: 13px;
    }
    
    /* Ranking - Top 2 & Top 3 card-stats only show icons + numbers */
    .ranking-item.rank-2 .stat-item span,
    .ranking-item.rank-3 .stat-item span {
        font-size: 0;
    }
    
    .ranking-item.rank-2 .stat-item span::before,
    .ranking-item.rank-3 .stat-item span::before {
        font-size: 11px;
    }
        
    .ranking-item.rank-2 .card-stats,
    .ranking-item.rank-3 .card-stats {
        gap: 12px;
    }
    
    .ranking-item.rank-2 .stat-item,
    .ranking-item.rank-3 .stat-item {
        gap: 4px;
        font-size: 11px;
    }

}

/* ===== Video Player (single-video.php) ===== */
.video-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}
.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}
.video-wrapper .player-poster {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
}
.player-section {
    margin-bottom: 16px;
}
.server-selection {
    display: flex;
    gap: 8px;
    padding: 12px 0;
}
.server-btn {
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 14px;
    border: 1px solid transparent;
}
.server-btn:hover {
    background: rgba(255,255,255,0.15);
}
.server-btn.active {
    background: var(--accent-color, #ff6b35);
    color: #fff;
}
.video-actions {
    padding: 8px 0;
}
.action-buttons {
    display: flex;
    gap: 12px;
}
.video-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 14px;
    border: none;
}
.video-action-btn:hover {
    background: rgba(255,255,255,0.15);
}
.video-action-btn.liked i {
    color: var(--accent-color, #ff6b35);
}
.video-main-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.4;
}
.info-section {
    margin-bottom: 24px;
}
.info-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.movie-metadata {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}
.metadata-section {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}
.metadata-title {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 14px;
    min-width: 80px;
}
.metadata-values {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.metadata-chip {
    padding: 4px 12px;
    border-radius: 16px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
}
.metadata-chip:hover {
    background: rgba(255,255,255,0.15);
}
.related-movies-section {
    margin-top: 24px;
}
.section-title-bar {
    margin-bottom: 16px;
}
.section-heading {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.load-more-container {
    text-align: center;
    padding: 24px 0;
}
.load-more-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 14px;
    border: 1px solid var(--border-color);
}
.load-more-button:hover {
    background: rgba(255,255,255,0.1);
}
.load-more-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== Category / Search / Tag pages ===== */
.main-header {
    margin-bottom: 16px;
}
.main-header h1 {
    font-size: 22px;
    font-weight: 600;
}
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}
.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.tab-btn {
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
    border: 1px solid transparent;
}
.tab-btn:hover {
    background: rgba(255,255,255,0.15);
}
.tab-btn.active {
    background: rgba(255,255,255,0.9);
    color: var(--bg-primary);
}
.article-container {
    margin-top: 24px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
    line-height: 1.8;
    color: var(--text-muted);
    font-size: 14px;
}
.article-container a {
    color: var(--link-color);
}
