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

:root {
    --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;

    /* Sidebar Dimensions */
    --sidebar-width: 240px;
    --sidebar-collapsed-width: 80px;
    --sidebar-offset: var(--sidebar-width);
    --chips-nav-left: 235px;
    --header-height: 56px;
    --shorts-container-width: min(500px, 100vw);
}

body:has(.sidebar.sidebar-collapsed),
body.sidebar-collapsed {
    --sidebar-offset: var(--sidebar-collapsed-width);
    --chips-nav-left: 85px;
}

.pull-refresh-area {
    --header-height: 56px;
    --shorts-container-width: min(500px, 100vw);

    position: fixed;
    top: calc(var(--header-height) + 40px);
    left: calc(var(--sidebar-offset) + (100% - var(--sidebar-offset)) / 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, left 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(--pt-surface-light);
    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: var(--pt-accent-gold);
    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: var(--pt-accent, #ff0000);
    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 var(--pt-bg-alpha-20);
        -webkit-transform: translate(-50%, -50%) scale(0);
        transform: translate(-50%, -50%) scale(0);
    }

    100% {
        box-shadow: 10px 10px 15px 0 var(--pt-bg-alpha-30);
        -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 var(--pt-bg-alpha-20);
        -webkit-transform: translate(-50%, -50%) scale(0);
        transform: translate(-50%, -50%) scale(0);
    }

    100% {
        box-shadow: 10px 10px 15px 0 var(--pt-bg-alpha-30);
        -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 var(--pt-bg-alpha-20);
        -webkit-transform: translate(-50%, -50%) scale(0);
        transform: translate(-50%, -50%) scale(0);
    }

    100% {
        box-shadow: 10px 10px 15px 0 var(--pt-bg-alpha-30);
        -webkit-transform: translate(-50%, -50%) scale(1);
        transform: translate(-50%, -50%) scale(1);
    }
}

body {
    font-family: "Roboto", Arial, sans-serif;
    background-color: var(--pt-bg-primary);
    color: var(--pt-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(--pt-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: 4000;
}

@media (min-width: 769px) {
    .header {
        padding-left: 20px;
    }
}

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

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

/* Sticky Chips Bar */
.chips-bar {
    position: fixed;
    top: 56px;
    left: var(--sidebar-offset);
    right: 0;
    height: 60px;
    background-color: var(--pt-bg-primary);
    display: flex;
    align-items: center;
    padding: 0 24px;
    z-index: 1000;
    white-space: nowrap;
    overflow: hidden;
    scrollbar-width: none;
    transition: left 0.3s 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: 66px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: var(--radius-full);
    background: var(--pt-bg-primary);
    color: var(--pt-text-primary);
    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: var(--chips-nav-left);
}

.chips-nav-right {
    right: 0;
}

.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(--pt-bg-secondary);
}

.menu-btn i {
    font-size: var(--text-lg);
}

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

.logo i {
    color: var(--pt-accent-red);
    font-size: 24px;
}

.logo-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
}

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

.logo a {
    line-height: 1 !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    max-height: 36px;
    text-decoration: none;
    position: relative;
}

.logo-img {
    height: 32px;
    max-height: 32px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    display: block;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--pt-text-primary);
    white-space: nowrap;
}

.logo-badge {
    align-self: flex-start;
    margin-top: -2px;
    color: var(--pt-text-muted);
    font-size: 10px;
    letter-spacing: 0.5px;
}

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

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

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

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

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

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

.search-btn:hover {
    background-color: var(--pt-surface-hover);
}


.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(--pt-text-primary);
    cursor: pointer;
    transition: background-color 0.2s, transform 0.15s;
    font-size: 16px;
}

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

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

.language-btn {
    background: none;
    border: none;
    color: var(--pt-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: var(--pt-text-alpha-10);
}

.flag-icon {
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 1px solid var(--pt-text-alpha-20);
}

.vietnam-flag {
    background: var(--pt-flag-vietnam);
}

.usa-flag {
    background: var(--pt-flag-usa);
}

.china-flag {
    background: var(--pt-flag-china);
}

.japan-flag {
    background: var(--pt-flag-japan);
}

.korea-flag {
    background: var(--pt-flag-korea);
}

.france-flag {
    background: var(--pt-flag-france);
}

.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: var(--pt-surface);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 20px var(--pt-bg-alpha-30);
    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(--pt-text-primary);
}

.language-option:hover {
    background-color: var(--pt-text-alpha-10);
}

.language-option.active {
    background-color: var(--pt-text-alpha-20);
}

.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: var(--pt-bg-alpha-45);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 2999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: pointer;
    display: none;
}

.sidebar.sidebar-collapsed {
    width: var(--sidebar-collapsed-width) !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-item {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 4px;
    margin: 4px 4px;
    width: calc(100% - 8px);
    border-radius: 10px;
    min-height: 64px;
}

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

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

/* Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--pt-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;
    transition: width 0.3s ease;
}

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

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

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    margin: 4px 12px;
    width: calc(100% - 24px);
    border-radius: 10px;
    color: var(--pt-text-primary);
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
    font-size: 14px;
}

.sidebar-item:hover {
    background-color: var(--pt-text-alpha-08);
}

.sidebar-item.active {
    background-color: var(--pt-text-alpha-15);
    font-weight: 500;
}

.sidebar-item.active i {
    color: var(--pt-text-primary);
    filter: brightness(1.3);
    text-shadow: 0 0 8px var(--pt-text-alpha-60);
}

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

.sidebar-item i,
.sidebar-item svg {
    margin-right: 16px;
    font-size: var(--text-lg);
    flex-shrink: 0;
}

.sidebar-item svg {
    width: 20px;
    height: 20px;
    display: inline-block;
    fill: currentColor;
}

.sidebar-item.active svg {
    color: var(--pt-text-primary);
    filter: brightness(1.3);
}

/* Sidebar Submenu */
.sidebar-submenu {
    display: block;
    padding: 4px 0;
}

.sidebar-subitem {
    display: flex;
    align-items: center;
    padding: 10px 12px 10px 40px;
    margin: 4px 12px;
    width: calc(100% - 24px);
    border-radius: 10px;
    color: var(--pt-text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s, color 0.2s;
}

.sidebar-subitem:hover {
    background-color: var(--pt-text-alpha-08);
    color: var(--pt-text-primary);
}

.sidebar-subitem i {
    font-size: 8px;
    width: 16px;
    margin-right: 16px;
    color: var(--pt-text-muted);
}

.sidebar-subitem.active {
    background-color: var(--pt-text-alpha-15);
    color: var(--pt-text-primary);
    font-weight: 500;
}

.sidebar-subitem.active i {
    color: var(--pt-text-primary);
}

.sidebar-item-group {
    display: flex;
    flex-direction: column;
}

/* Hide submenu when sidebar is collapsed */
.sidebar-collapsed .sidebar-submenu {
    display: none !important;
}

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

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

.personal-panel-overlay {
    position: fixed;
    inset: 56px 0 0 var(--sidebar-offset);
    background-color: var(--pt-bg-alpha-45);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, left 0.3s ease;
    z-index: 2190;
}

.personal-panel {
    position: fixed;
    top: 56px;
    left: var(--sidebar-offset);
    width: min(380px, calc(100vw - var(--sidebar-offset)));
    height: calc(100vh - 56px);
    background: var(--pt-bg-primary);
    transform: translateX(-24px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s ease, left 0.3s ease;
    z-index: 2200;
    display: flex;
    flex-direction: column;
}

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(--pt-border);
}

.personal-panel-title {
    font-size: var(--text-lg);
    line-height: 1.2;
    font-weight: 700;
    color: var(--pt-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(--pt-bg-secondary);
    color: var(--pt-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: var(--pt-surface-hover);
}

.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(--pt-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(--pt-text-primary);
    text-decoration: none;
}

.personal-video-link img {
    width: 96px;
    aspect-ratio: var(--fv-thumb-aspect-ratio, 16/9);
    object-fit: cover;
    border-radius: var(--radius-sm);
    background-color: var(--pt-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(--pt-text-primary);
    text-decoration: none;
    font-size: var(--text-sm);
}

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

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

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

.save-btn.active:hover,
.save-btn[aria-pressed="true"]:hover {
    background-color: var(--pt-text-alpha-25);
}

.save-btn.active i,
.save-btn[aria-pressed="true"] i {
    font-weight: 900;
    font-family: "Font Awesome 6 Free";
    color: var(--pt-text-primary);
    filter: drop-shadow(0 0 3px var(--pt-text-alpha-60));
}

@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(--pt-border);
        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(--pt-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: var(--sidebar-offset);
    padding: 20px 20px 0px 20px;
    background-color: var(--pt-bg-primary);
    transition: margin-left 0.3s ease;
}

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

.chip:hover {
    background-color: var(--pt-border-strong-alpha-80);
}

.chip.active {
    background-color: var(--pt-text-alpha-90);
    color: var(--pt-bg-primary);
    text-decoration: none;
}

/* Videos Grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-top: 10px;
}


.video-card {
    position: relative;
    min-width: 0;
    cursor: pointer;
    border-radius: var(--radius-md);
    padding: 8px;
    margin: -8px;
    transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    animation: fadeIn 0.3s ease-out;
}


.video-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    background-image: var(--thumb-url);
    background-size: cover;
    background-position: center;
    opacity: 0;
    z-index: -1;
    pointer-events: none;
    filter: blur(25px);
    will-change: opacity;
    transform: translateZ(0);
    transition: opacity 0.25s ease;
}

@media (hover: hover) {
    .video-card:hover::before {
        opacity: 0.35;
    }

    .video-card:hover {
        background-color: var(--pt-surface-hover-alpha-85);
        
        box-shadow: 0 8px 32px var(--pt-bg-alpha-60);
        z-index: 10;
    }
}

.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:not(.loaded) .video-thumbnail,
.video-card:not(.loaded) .avatar,
.video-card:not(.loaded) .video-title,
.video-card:not(.loaded) .video-channel,
.video-card:not(.loaded) .video-metadata {
    animation: skeleton-pulse 1.5s infinite ease-in-out;
}

@keyframes skeleton-pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

.video-card .video-thumbnail {
    background: var(--pt-surface-card);
    border-radius: 12px;
}

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

.video-card .avatar {
    background: var(--pt-surface-card);
}

.video-card .avatar img,
.video-card .avatar i,
.video-card .avatar span,
.video-card .video-avatar-icon {
    opacity: 0;
}

.video-card .video-title {
    background-image:
        linear-gradient(var(--pt-surface-card), var(--pt-surface-card)),
        linear-gradient(var(--pt-surface-card), var(--pt-surface-card));
    background-size:
        100% 12px,
        70% 12px;
    background-position:
        0 0,
        0 18px;
    background-repeat: no-repeat;
    color: transparent;
    height: 30px;
    margin-bottom: 8px;
    overflow: hidden;
    width: 90%;
}

.video-card .video-channel {
    background: var(--pt-surface-card);
    color: transparent;
    border-radius: 4px;
    height: 14px;
    width: 50%;
    display: block;
    margin-bottom: 0px;
    overflow: hidden;
}

.video-card:not(.loaded) .video-channel a {
    color: transparent;
}

.video-card .video-metadata {
    display: block;
    background: var(--pt-surface-card);
    color: transparent;
    border-radius: 4px;
    height: 12px;
    width: 60%;
    margin-top: 6px;
    overflow: hidden;
}

.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,
.video-card.loaded .avatar i,
.video-card.loaded .avatar span,
.video-card.loaded .video-avatar-icon {
    opacity: 1;
    animation: fade-in 0.3s ease-in;
}

.video-card.loaded .video-title {
    background: transparent;
    background-image: none;
    color: var(--pt-text-primary);
    height: auto;
    margin-bottom: 0px;
}

.video-card.loaded .video-channel {
    background: transparent;
    color: var(--pt-text-alpha-85);
    height: auto;
    width: auto;
    display: block;
}

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

.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: none;
}

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

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

.video-avatar-link {
    display: block;
    flex-shrink: 0;
    text-decoration: none;
}

.video-avatar-icon {
    transform: translateY(-1px);
}

/* Avatar Base Class */
.video-avatar {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pt-text-primary);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    user-select: none;
}

.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;
}

/* JAV taxonomy, directory and metadata blocks */
.jav-taxonomy-header,
.jav-directory-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    margin-bottom: 24px;
    background: var(--pt-surface-card);
    border: 1px solid var(--pt-border);
    border-radius: var(--radius-md);
}

.jav-taxonomy-header h1,
.jav-directory-header h1 {
    margin: 4px 0;
    color: var(--pt-text-primary);
    font-size: var(--text-2xl);
    font-weight: 700;
}

.jav-taxonomy-header p,
.jav-directory-header p,
.video-channel {
    margin: 0;
    color: var(--pt-text-alpha-85);
    font-size: var(--text-sm);
}

.jav-taxonomy-header .jav-taxonomy-label {
    color: var(--pt-accent);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.jav-taxonomy-avatar {
    width: 88px;
    height: 88px;
    border: 2px solid var(--pt-border-strong);
}

.jav-taxonomy-avatar.jav-actor-placeholder,
.jav-directory-avatar.jav-actor-placeholder {
    display: grid;
    place-items: center;
    background: var(--pt-accent, #ff0000);
    color: var(--pt-text-on-theme, #ffffff);
}

.jav-actor-placeholder-icon {
    width: 52%;
    height: 52%;
}

.jav-taxonomy-avatar img,
.jav-directory-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jav-directory-letters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.jav-directory-letters a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 10px;
    color: var(--pt-text-muted);
    background: var(--pt-surface-card);
    border: 1px solid var(--pt-border);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    text-decoration: none;
}

.jav-directory-letters a.is-active,
.jav-directory-letters a:hover {
    color: var(--pt-text-on-theme);
    background: var(--pt-accent);
    border-color: var(--pt-accent);
}

.jav-directory-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.jav-directory-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px;
    color: var(--pt-text-primary);
    background: var(--pt-surface-card);
    border: 1px solid var(--pt-border);
    border-radius: var(--radius-md);
    text-decoration: none;
}

.jav-directory-item:hover {
    color: var(--pt-accent);
    border-color: var(--pt-accent);
}

.jav-directory-item > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jav-directory-avatar {
    width: 36px;
    height: 36px;
    border: 1px solid var(--pt-border);
}

.video-channel a {
    color: var(--pt-text-alpha-85);
    text-decoration: none;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.video-channel a:hover {
    color: var(--pt-text-primary);
    text-shadow: 0 0 8px var(--pt-text-alpha-60);
}

.video-channel:hover {
    color: var(--pt-text-primary);
    text-shadow: 0 0 8px var(--pt-text-alpha-60);
}

.pt-video-meta-wrap {
    display: grid;
    gap: 8px;
}

.pt-video-meta {
    display: grid;
    gap: 8px;
    padding: 14px;
    background: var(--pt-surface-card);
    border: 1px dashed var(--pt-border);
    border-radius: var(--radius-md);
}

.pt-video-meta-separator {
    color: var(--pt-text-muted);
}

.pt-video-meta-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 10px;
    align-items: baseline;
    color: var(--pt-text-primary);
    font-size: var(--text-sm);
}

.pt-video-meta-label {
    color: var(--pt-text-muted);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
}

.pt-video-meta-link {
    color: var(--pt-accent-link);
    text-decoration: none;
}

.pt-video-meta-link:hover {
    color: var(--pt-accent-link-light);
    text-decoration: underline;
}

.pt-video-code-badge {
    display: inline-block;
    padding: 2px 7px;
    color: var(--pt-accent);
    border: 1px solid var(--pt-accent);
    border-radius: 4px;
    font-weight: 700;
}

/* Language switcher belongs to this theme; data comes from the JAV plugin helper. */
.pt-language-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    z-index: 100;
}

.pt-language-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 34px;
    padding: 0 10px;
    color: var(--pt-text-primary);
    background: var(--pt-surface-card);
    border: 1px solid var(--pt-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: var(--text-xs);
    font-weight: 700;
    list-style: none;
}

.pt-language-btn::-webkit-details-marker {
    display: none;
}

.pt-language-btn:hover,
.porntube-language-drawer[open] .pt-language-btn,
.porntube-language-switcher:hover .pt-language-btn {
    color: var(--pt-accent);
    border-color: var(--pt-accent);
}

.pt-language-icon {
    color: var(--pt-accent);
    flex-shrink: 0;
}

.pt-language-chevron {
    color: var(--pt-text-muted);
    transition: transform 0.2s ease;
}

.porntube-language-switcher:hover .pt-language-chevron,
.porntube-language-drawer[open] .pt-language-chevron {
    transform: rotate(180deg);
}

.pt-language-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    display: none;
    width: 220px;
    max-height: 360px;
    padding: 4px;
    overflow-y: auto;
    background: var(--pt-surface-card);
    border: 1px solid var(--pt-border);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 24px var(--pt-bg-alpha-30);
    z-index: 1000;
}

.porntube-language-switcher:hover .pt-language-dropdown,
.porntube-language-drawer[open] .pt-language-dropdown {
    display: block;
}

.pt-language-list {
    max-height: 300px;
    overflow-y: auto;
}

.pt-language-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 9px;
    color: var(--pt-text-primary);
    border-radius: 4px;
    text-decoration: none;
    font-size: var(--text-xs);
}

.pt-language-item:hover,
.pt-language-item.is-active {
    color: var(--pt-accent);
    background: var(--pt-surface-hover);
}

.pt-language-badge,
.pt-language-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 14px;
    border-radius: 2px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px var(--pt-border);
    line-height: 1;
}

.pt-language-badge svg,
.pt-language-current svg {
    display: block;
    width: 100%;
    height: 100%;
}

.pt-language-item.is-active .pt-language-badge,
.pt-language-btn:hover .pt-language-current,
.porntube-language-drawer[open] .pt-language-current,
.porntube-language-switcher:hover .pt-language-current {
    box-shadow: 0 0 0 1.5px var(--pt-accent);
}

.porntube-language-drawer {
    grid-column: 1 / -1;
    justify-content: center;
}

.porntube-language-drawer .pt-language-dropdown {
    top: auto;
    bottom: calc(100% + 6px);
    right: auto;
    left: 50%;
    transform: translateX(-50%);
}

.fv-card-preview-video {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    background: var(--pt-player-bg);
}

.fv-preview-progress {
    position: absolute;
    right: 8px;
    bottom: 7px;
    left: 8px;
    z-index: 3;
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--pt-bg-alpha-60);
    pointer-events: none;
}

.fv-preview-progress-bar {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: var(--pt-accent, #ff0000);
    transform: scaleX(0);
    transform-origin: left center;
    will-change: transform;
}

.video-thumbnail {
    isolation: isolate;
}

@media (min-width: 640px) {
    .jav-directory-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 639px) {
    .jav-taxonomy-header {
        align-items: flex-start;
    }

    .pt-video-meta-row {
        grid-template-columns: 90px minmax(0, 1fr);
        gap: 7px;
    }
}

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

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

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

.video-title a:hover {
    color: var(--pt-text-secondary);
}

.video-channel {
    font-size: var(--text-sm);
    color: var(--pt-text-alpha-85);
    margin: 4px 0;
    text-decoration: none;
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.video-channel a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 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: var(--pt-text-muted);
}

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

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

.video-metadata {
    font-size: var(--text-sm);
    color: var(--pt-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: var(--pt-bg-deep-alpha-85);
    backdrop-filter: blur(25px) saturate(120%);
    z-index: 2500;
    display: none;
    overflow-y: auto;
    border-top: 1px solid var(--pt-border);
    box-shadow: 0 4px 8px var(--pt-bg-alpha-30);
}

/* 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(--pt-border);
    color: var(--pt-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: var(--pt-surface-hover);
}

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

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

.search-input-overlay::placeholder {
    color: var(--pt-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(--pt-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(--pt-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: var(--pt-text-alpha-07);
    border-left-color: var(--pt-accent);
}

.suggestion-chip:active {
    background: var(--pt-text-alpha-10);
}

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

.suggestion-chip:hover i {
    background: var(--pt-accent-alpha-15);
    color: var(--pt-accent);
}

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


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

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

::-webkit-scrollbar-thumb {
    background: var(--pt-border-strong);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--pt-border-strong);
}


/* 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,
            var(--pt-text-alpha-10) 0%,
            var(--pt-text-alpha-05) 50%,
            var(--pt-bg-alpha-10) 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(--pt-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(--pt-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(--pt-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(--pt-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: var(--pt-bg-alpha-70);
    color: var(--pt-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: var(--pt-bg-alpha-70);
    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(--pt-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: var(--pt-bg-alpha-70);
    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(--pt-text-muted);
}

.shorts-url-link {
    color: var(--pt-accent-link);
    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, var(--pt-bg-alpha-90), 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(--pt-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, var(--pt-accent-purple-start) 0%, var(--pt-accent-purple) 100%);
}

.shorts-like-btn {
    background: var(--pt-text-alpha-10);
    color: var(--pt-text-primary);
    border: 1px solid var(--pt-text-alpha-20);
    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: var(--pt-text-alpha-20);
    transform: scale(1.05);
}

.shorts-like-btn.liked {
    background: var(--pt-accent-red);
    border-color: var(--pt-accent-red);
    color: var(--pt-text-on-theme);
}

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

.shorts-subscribe-btn {
    background: var(--pt-accent-red);
    color: var(--pt-text-on-theme);
    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: var(--pt-accent-danger);
}

.shorts-video-title {
    color: var(--pt-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: var(--pt-text-secondary);
    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: var(--pt-accent-blue);
    font-size: var(--text-base);
    font-weight: 500;
}

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

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

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

.hashtag:hover {
    color: var(--pt-accent-link-light);
    text-decoration: underline;
}

.video-stats {
    color: var(--pt-text-alpha-50);
    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(--pt-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: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 16px;
    color: var(--pt-text-primary);
}

.video-views {
    font-weight: 500;
    font-size: var(--text-sm);
    color: var(--pt-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(--pt-text-primary);
}

/* Video Player Buttons (gradient style) */
.action-btn--video {
    background: linear-gradient(135deg, var(--pt-bg-secondary) 0%, var(--pt-surface) 100%);
    color: var(--pt-text-primary);
    border-radius: var(--radius-xl);
    height: 36px;
    box-shadow: 0 2px 4px var(--pt-bg-alpha-20);
    min-width: fit-content;
}

.action-btn--video:hover {
    background: linear-gradient(135deg, var(--pt-border-strong) 0%, var(--pt-border-strong) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px var(--pt-bg-alpha-30);
}

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

.action-btn--primary:hover {
    background: var(--pt-accent-hover);
}

.action-btn--secondary {
    background: var(--pt-text-alpha-10);
    color: var(--pt-text-primary);
    border: 1px solid var(--pt-text-alpha-20);
}

.action-btn--secondary:hover {
    background: var(--pt-text-alpha-15);
}

.like-btn.liked {
    background: var(--pt-text-alpha-15);
    color: var(--pt-text-primary);
    box-shadow: none;
    transform: none;
}

.like-btn.liked:hover {
    background: var(--pt-text-alpha-25);
    box-shadow: none;
    transform: none;
}

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

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

/* Section Title Base Class */
.section-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--pt-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 var(--pt-border-strong);
    border-radius: var(--radius-lg);
    font-size: var(--text-xs);
    color: var(--pt-text-muted);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.genre-tag:hover {
    background: linear-gradient(135deg, var(--pt-border-strong) 0%, var(--pt-text-muted) 100%);
    color: var(--pt-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, var(--pt-border-strong) 0%, var(--pt-text-muted) 100%);
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--text-xs);
    color: var(--pt-text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.actor-tag:hover {
    background: linear-gradient(135deg, var(--pt-text-muted) 0%, var(--pt-text-muted) 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px var(--pt-text-alpha-10);
}

.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(--pt-accent-link);
    font-size: var(--text-xs);
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
}

.hashtag:hover {
    color: var(--pt-accent-link-light);
}

/* 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(--pt-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(--pt-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(--pt-text-muted);
}

.subscribe-btn {
    background-color: var(--pt-accent-danger);
    color: var(--pt-text-on-theme);
    padding: 10px 16px;
    border-radius: var(--radius-xl);
    font-weight: 500;
    transition: background-color 0.2s;
}

.subscribe-btn:hover {
    background-color: var(--pt-accent-red-dark);
}

.video-description {
    background-color: var(--pt-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(--pt-text-primary);
}


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

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

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

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

.playlist-subtitle div:first-child {
    font-weight: 500;
    color: var(--pt-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(--pt-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: var(--pt-bg-alpha-80);
    color: var(--pt-text-primary);
    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(--pt-text-muted);
    margin-bottom: 2px;
}

.related-views {
    font-size: var(--text-xs);
    color: var(--pt-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: var(--pt-text-primary);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.ranking-title i {
    color: var(--pt-accent-gold);
    filter: drop-shadow(0 0 10px var(--pt-accent-gold-alpha-50));
}

/* 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 var(--pt-text-alpha-10);
}

.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, var(--pt-accent-purple-start), var(--pt-accent-purple));
    color: var(--pt-text-on-theme);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--pt-accent-purple-start), var(--pt-accent-purple));
    color: var(--pt-text-on-theme);
    box-shadow: 0 4px 15px var(--pt-accent-purple-start-alpha-30);
    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;
    display: flex;
    flex-direction: column;
    gap: 20px;
}


.timeline-line {
    position: absolute;
    left: 28px;
    top: 0;
    height: calc(3 * (20px + 80px + 20px));
    width: 3px;
    background: linear-gradient(180deg,
            var(--pt-accent-gold) 0%,
            var(--pt-accent-silver) 50%,
            var(--pt-accent-bronze) 100%);
    border-radius: 2px;
}


.top-3-timeline {
    position: relative;
}


.top-23-container {
    display: block;
}

.top-3-timeline .timeline-line {
    position: absolute;
    left: 28px;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(180deg,
            var(--pt-accent-gold) 0%,
            var(--pt-accent-silver) 50%,
            var(--pt-accent-bronze) 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;
    position: relative;
}

.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;
}

.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: var(--pt-bg-primary);
    border-radius: var(--radius-full);
    z-index: 2;
    flex-shrink: 0;
}

.rank-badge.gold {
    background: linear-gradient(135deg, var(--pt-accent-gold), var(--pt-accent-gold-light));
    border: 2px solid var(--pt-accent-gold);
    box-shadow: 0 0 30px var(--pt-accent-gold-alpha-60);
}

.rank-badge.silver {
    background: linear-gradient(135deg, var(--pt-accent-silver), var(--pt-text-primary));
    border: 2px solid var(--pt-accent-silver);
    box-shadow: 0 0 25px var(--pt-accent-silver-alpha-50);
}

.rank-badge.bronze {
    background: linear-gradient(135deg, var(--pt-accent-bronze), var(--pt-accent-bronze-light));
    border: 2px solid var(--pt-accent-bronze);
    box-shadow: 0 0 20px var(--pt-accent-bronze-alpha-40);
}

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

.rank-number {
    font-size: 28px;
    font-weight: 900;
    color: var(--pt-text-primary);
    text-shadow: 2px 2px 4px var(--pt-bg-alpha-30);
}

.rank-badge.gold .fa-crown,
.rank-badge.gold .rank-number,
.rank-badge.silver .fa-crown,
.rank-badge.silver .rank-number,
.rank-badge.bronze .fa-crown,
.rank-badge.bronze .rank-number {
    color: var(--pt-text-on-theme);
}

.rank-badge:not(.gold):not(.silver):not(.bronze) .rank-number {
    color: var(--pt-text-alpha-90);
}

/* 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 var(--pt-bg-alpha-30);
    border-color: var(--pt-text-alpha-20);
}

/* Special Card for #1 */
.rank-card.special {
    background: linear-gradient(135deg,
            var(--pt-accent-gold-alpha-10),
            var(--pt-bg-alpha-70));
    border: 2px solid var(--pt-accent-gold-alpha-30);
    box-shadow: 0 10px 40px var(--pt-accent-gold-alpha-20);
}

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

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


.card-thumbnail {
    position: relative;
    width: 215px;
    aspect-ratio: var(--fv-thumb-aspect-ratio, 16/9);
    overflow: hidden;
    background: var(--pt-surface);
    border-radius: var(--radius-md);
}

.rank-card.compact .card-thumbnail {
    width: 170px;
    
    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: var(--pt-bg-alpha-80);
    color: var(--pt-text-primary);
    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: var(--pt-text-primary);
    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: var(--pt-text-alpha-60);
}

/* Progress Bar */
.progress-bar {
    height: 6px;
    background: var(--pt-text-alpha-10);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--pt-accent-purple-start), var(--pt-accent-purple));
    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: var(--pt-text-alpha-10);
    border: 1px solid var(--pt-text-alpha-20);
    border-radius: var(--radius-xl);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--pt-text-primary);
}

.achievement-badge.blockbuster {
    background: var(--pt-accent-alpha-20);
    border-color: var(--pt-accent-alpha-40);
}

.achievement-badge.masterpiece {
    background: var(--pt-accent-gold-alpha-20);
    border-color: var(--pt-accent-gold-alpha-40);
}

.achievement-badge.trending {
    background: var(--pt-accent-trending-alpha-20);
    border-color: var(--pt-accent-trending-alpha-40);
}

.achievement-badge.popular {
    background: var(--pt-accent-purple-vivid-alpha-20);
    border-color: var(--pt-accent-purple-vivid-alpha-40);
}

/* 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 auto 20px auto;
    padding: 0 20px;
}

.pagination-btn {
    background-color: transparent;
    border: 1px solid var(--pt-text-alpha-10);
    color: var(--pt-text-primary);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: var(--text-sm);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover {
    background-color: var(--pt-text-alpha-10);
    border-color: var(--pt-text-alpha-20);
}

.pagination-btn.active {
    background-color: var(--pt-surface-light);
    color: var(--pt-bg-primary);
    border-color: var(--pt-surface-light);
    font-weight: 600;
}

.pagination-btn.disabled,
.pagination-btn:disabled {
    opacity: 0.3;
    pointer-events: none;
    cursor: not-allowed;
    border-color: var(--pt-text-alpha-05);
}

.pagination-dots {
    color: var(--pt-text-muted);
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    font-weight: 500;
}


/* ===== FOOTER STYLES ===== */
.footer {
    background: var(--pt-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: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--pt-text-primary);
    margin-bottom: 8px;
}

.footer-logo-img {
    height: 36px;
    max-height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
}

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

.footer-description {
    color: var(--pt-text-alpha-85);
    line-height: 1.7;
    font-size: 15px;
    max-width: 100%;
}

.footer-seo-tags {
    margin-top: 40px;
    margin-bottom: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--pt-text-alpha-15);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.seo-tags-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--pt-text-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.seo-tags-list-wrapper {
    position: relative;
    width: 100%;
    max-height: 85px;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.seo-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    justify-content: center;
    padding-bottom: 10px;
}

.seo-tag-link {
    font-size: 13px;
    color: var(--pt-text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

.seo-tag-link:hover {
    color: var(--pt-text-primary);
    text-decoration: underline;
}

.seo-tags-toggle-btn {
    margin-top: 16px;
    background: transparent;
    border: 1px solid var(--pt-text-alpha-15);
    color: var(--pt-text-muted);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.seo-tags-toggle-btn:hover {
    background: var(--pt-text-alpha-10);
    color: var(--pt-text-primary);
    border-color: var(--pt-text-alpha-35);
}

.seo-tags-toggle-btn i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.seo-tags-toggle-btn.expanded i {
    transform: rotate(180deg);
}


.footer-bottom {
    border-top: 1px solid var(--pt-text-alpha-15);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-copyright {
    color: var(--pt-text-alpha-70);
    font-size: 15px;
    font-weight: 400;
    margin-left: 0;
    flex: 1;
    text-align: center;
}

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

.actors-header .page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--pt-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,
            var(--pt-accent-dark-gold-alpha-15) 0%,
            var(--pt-accent-brown-alpha-08) 50%,
            var(--pt-accent-brown-dark-alpha-15) 100%);
    mask: linear-gradient(to bottom, var(--pt-bg-primary) 0%, var(--pt-bg-alpha-00) 100%);
    -webkit-mask: linear-gradient(to bottom, var(--pt-bg-primary) 0%, var(--pt-bg-alpha-00) 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, var(--pt-accent-gold), var(--pt-accent-gold-light), var(--pt-accent-gold));
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.actors-section-title i {
    background: linear-gradient(135deg, var(--pt-accent-gold), var(--pt-accent-gold-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 24px;
}

.section-subtitle {
    color: var(--pt-text-alpha-70);
    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: var(--pt-bg-alpha-95);
    border: 2px solid var(--pt-text-alpha-20);
    border-radius: var(--radius-full);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--pt-text-primary);
    z-index: 2;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px var(--pt-bg-alpha-30);
}

.actor-rank-badge.gold {
    background: linear-gradient(135deg, var(--pt-accent-gold), var(--pt-accent-gold-light), var(--pt-accent-gold));
    color: var(--pt-text-on-theme);
    box-shadow: 0 4px 30px var(--pt-accent-gold-alpha-50);
}

.actor-rank-badge.silver {
    background: linear-gradient(135deg, var(--pt-accent-silver), var(--pt-text-primary), var(--pt-accent-silver));
    color: var(--pt-text-on-theme);
    box-shadow: 0 4px 20px var(--pt-accent-silver-alpha-50);
}

.actor-rank-badge.bronze {
    background: linear-gradient(135deg, var(--pt-accent-bronze), var(--pt-accent-bronze-light), var(--pt-accent-bronze));
    color: var(--pt-text-on-theme);
    box-shadow: 0 4px 20px var(--pt-accent-bronze-alpha-50);
}

.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(--pt-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 var(--pt-accent-gold-alpha-30);
}

.podium-actor.rank-2 .actor-podium-card {
    margin-bottom: 80px;
    border: 2px solid var(--pt-accent-silver-alpha-30);
}

.podium-actor.rank-3 .actor-podium-card {
    margin-bottom: 40px;
    border: 2px solid var(--pt-accent-bronze-alpha-30);
}

.actor-podium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px var(--pt-bg-alpha-30);
}


.actor-podium-card .actor-image {
    margin: 0 auto 16px;
}



.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: var(--pt-text-alpha-10);
    border: 1px solid var(--pt-text-alpha-20);
    border-radius: var(--radius-sm);
    color: var(--pt-text-primary);
    font-size: var(--text-sm);
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
}

.filter-select:hover {
    background: var(--pt-text-alpha-15);
    border-color: var(--pt-text-alpha-30);
}

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

.filter-select option {
    background: var(--pt-surface-deep);
    color: var(--pt-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: var(--pt-text-alpha-08);
    box-shadow: 0 8px 24px var(--pt-bg-alpha-40);
}

.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 {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--pt-bg-alpha-85);
    color: var(--pt-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 var(--pt-text-alpha-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: var(--pt-text-alpha-95);
    color: var(--pt-bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--pt-bg-alpha-30);
}

.actor-rank {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, var(--pt-accent), var(--pt-accent, #ff0000));
    color: var(--pt-text-on-theme);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: var(--text-sm);
    box-shadow: 0 2px 8px var(--pt-accent-alpha-40);
}

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

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

.actor-role {
    font-size: 13px;
    color: var(--pt-text-alpha-60);
    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(--pt-accent);
    font-size: 11px;
}

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

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

.studios-subtitle {
    font-size: var(--text-base);
    color: var(--pt-text-alpha-70);
}

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

.category-btn {
    padding: 8px 20px;
    background: var(--pt-text-alpha-05);
    border: 1px solid var(--pt-text-alpha-20);
    border-radius: 24px;
    color: var(--pt-text-alpha-80);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
}

.category-btn:hover {
    background: var(--pt-text-alpha-10);
    border-color: var(--pt-text-alpha-30);
}

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

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

.studio-item {
    background: var(--pt-text-alpha-03);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--pt-text-alpha-10);
    transition: var(--transition-normal);
}

.studio-item:hover {
    transform: translateY(-2px);
    background: var(--pt-text-alpha-05);
    box-shadow: 0 12px 32px var(--pt-bg-alpha-40);
}

.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(--pt-surface-light);
    border-radius: var(--radius-md);
    padding: 4px;
    box-shadow: 0 4px 12px var(--pt-bg-alpha-30);
    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(--pt-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, var(--pt-accent-gold), var(--pt-accent-gold-light));
    color: var(--pt-text-on-theme);
}

.studio-badge.verified {
    background: var(--pt-accent-info);
    color: var(--pt-text-on-theme);
}

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

.studio-badge.indie {
    background: var(--pt-accent-purple-vivid);
    color: var(--pt-text-on-theme);
}

.studio-badge:not(.premium):not(.verified):not(.trending):not(.indie) {
    background: var(--pt-text-alpha-10);
    color: var(--pt-text-alpha-70);
}

.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: var(--pt-text-alpha-80);
}


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



.footer {
    margin-left: var(--sidebar-offset);
    transition: margin-left 0.3s ease;
}

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

.footer-legal a {
    color: var(--pt-text-alpha-70);
    font-size: var(--text-sm);
    transition: var(--transition-normal);
    padding: 4px 8px;
    border-radius: 6px;
}

.footer-legal a:hover {
    color: var(--pt-accent);
    background: var(--pt-accent-alpha-10);
}

/* =============================================== */
/*          LEGAL PAGE STYLES                      */
/* =============================================== */

.legal-page {
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.legal-header {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--pt-text-alpha-10);
}

.legal-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--pt-text-primary);
    margin-bottom: 8px;
}

.legal-updated {
    font-size: var(--text-sm);
    color: var(--pt-text-alpha-50);
}

.legal-body h2 {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--pt-text-primary);
    margin-top: 32px;
    margin-bottom: 12px;
}

.legal-body h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--pt-text-alpha-90);
    margin-top: 20px;
    margin-bottom: 8px;
}

.legal-body p {
    font-size: var(--text-base);
    color: var(--pt-text-alpha-75);
    line-height: 1.7;
    margin-bottom: 16px;
}

.legal-body ul {
    margin: 0 0 16px 20px;
    padding: 0;
}

.legal-body li {
    font-size: var(--text-base);
    color: var(--pt-text-alpha-75);
    line-height: 1.7;
    margin-bottom: 6px;
}

.legal-body strong {
    color: var(--pt-text-alpha-90);
}

.legal-footer-note {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--pt-text-alpha-10);
    font-size: var(--text-sm);
    color: var(--pt-text-alpha-40);
}


/* 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: var(--pt-bg-alpha-70);
    backdrop-filter: blur(25px) saturate(130%);
    border: 1px solid var(--pt-text-alpha-10);
    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 var(--pt-text-alpha-10);
    background: var(--pt-bg-alpha-90);
}



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

.channel-handle {
    color: var(--pt-text-alpha-70);
    font-size: var(--text-sm);
    margin-bottom: 4px;
}

.channel-stats {
    color: var(--pt-text-alpha-60);
    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 var(--pt-text-alpha-10);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: var(--pt-accent-alpha-10);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pt-accent);
    font-size: var(--text-xl);
}

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

.stat-label {
    font-size: 13px;
    color: var(--pt-text-alpha-70);
    margin-bottom: 8px;
}

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

.stat-change.positive {
    color: var(--pt-accent-success);
    background: var(--pt-accent-success-alpha-10);
}

/* 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(--pt-accent);
    background: none;
    border: none;
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

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

.video-status {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    background: var(--pt-accent-success-alpha-90);
    color: var(--pt-text-on-theme);
}

.video-stats {
    display: flex;
    gap: 8px;
    font-size: 13px;
    color: var(--pt-text-alpha-70);
}

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

.video-engagement span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--pt-text-alpha-60);
}


/* 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: var(--pt-accent-alpha-30);
    background: var(--pt-bg-alpha-80);
}

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

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

.quick-action-card p {
    font-size: var(--text-sm);
    color: var(--pt-text-alpha-70);
    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: var(--pt-bg-alpha-70);
    backdrop-filter: blur(25px) saturate(130%);
    border-radius: var(--radius-md);
    border: 1px solid var(--pt-text-alpha-10);
}

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

.query-text {
    color: var(--pt-accent-link);
}

.results-count {
    font-size: var(--text-sm);
    color: var(--pt-text-alpha-70);
}

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



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

/* 404 Page Specific Styles */
.error-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.error-content {
    text-align: center;
    background: var(--pt-bg-alpha-70);
    backdrop-filter: blur(25px) saturate(130%);
    border-radius: var(--radius-xl);
    border: 1px solid var(--pt-text-alpha-10);
    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: var(--pt-accent-red);
}

.error-logo span {
    font-size: 32px;
    font-weight: 700;
    color: var(--pt-text-primary);
}

.error-code {
    font-size: 120px;
    font-weight: 900;
    color: var(--pt-accent-red);
    line-height: 1;
    margin-bottom: 20px;
    text-shadow: 0 0 30px var(--pt-accent-red-alpha-30);
}

.error-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--pt-text-primary);
    margin-bottom: 16px;
}

.error-message {
    font-size: var(--text-base);
    color: var(--pt-text-alpha-70);
    line-height: 1.5;
    margin-bottom: 40px;
}

.home-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--pt-accent-red);
    border: none;
    border-radius: var(--radius-md);
    color: var(--pt-text-on-theme);
    font-size: var(--text-base);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-normal);
    cursor: pointer;
}

.home-button:hover {
    background: var(--pt-accent-danger);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--pt-accent-red-alpha-40);
}

.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,
    .search-overlay.active {
        display: block !important;
        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 var(--pt-border-strong);
        backdrop-filter: blur(10px);
        background-color: var(--pt-bg-deep-alpha-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;
    }

}

/* Tablet Landscape - Auto-collapsed sidebar */
@media (max-width: 1024px) {
    .pull-refresh-area {
        --shorts-container-width: 100vw;
        width: 100vw;
    }

    .footer-copyright {
        margin-left: 0;
    }

    #shorts-container {
        max-width: 500px;
        margin: 0 auto;
    }

    .chips-nav-right {
        right: 0;
        top: 64px;
    }

    .content {
        padding-top: 10px;
    }

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

    /* 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);
    }

    /* 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;
    }

    
    .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-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 auto 20px auto;
        padding: 0 16px;
    }

    .pagination-btn {
        padding: 0;
        font-size: 13px;
        width: 36px;
        height: 36px;
    }

    .pagination-dots {
        font-size: 13px;
        width: 36px;
        height: 36px;
    }

    /* 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-timeline {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 24px;
    }

    .top-3-timeline .timeline-line {
        display: none;
    }

    
    .ranking-item.rank-1 {
        align-self: center;
        max-width: 350px;
        width: 100%;
    }

    
    .top-23-container {
        display: flex;
        gap: 8px;
        justify-content: space-between;
        align-items: stretch;
        width: 100%;
    }

    
    .top-3-timeline>.ranking-item.rank-2,
    .top-3-timeline>.ranking-item.rank-3 {
        display: none;
    }

    
    .ranking-item.rank-2,
    .ranking-item.rank-3 {
        flex: 1;
        max-width: calc(50% - 4px);
        margin-bottom: 0;
    }

    
    .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 {
        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(--pt-bg-secondary);
        border-radius: var(--radius-full);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--pt-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: 0;
        top: 60px;
    }

    .chips-nav-right {
        right: 0;
        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;
    }

    
    .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: var(--pt-bg-alpha-30);
        -webkit-backdrop-filter: blur(10px) saturate(180%);
        backdrop-filter: blur(10px) saturate(180%);
        border-top: 1px solid var(--pt-text-alpha-10);
        box-shadow: 0 -4px 30px var(--pt-bg-alpha-40);
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 3100;
        padding: 4px 0;
    }

    
    .bottom-nav::before {
        content: '';
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background-color: var(--pt-bg-alpha-40);
        -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(--pt-text-muted);
        text-decoration: none;
        font-size: 10px;
        flex: 1;
        min-width: 0;
        padding: 4px 2px;
        transition: color 0.2s;
    }

    .bottom-nav-item i {
        font-size: var(--text-xl);
        margin-bottom: 2px;
        display: block;
    }

    .bottom-nav-item span {
        text-align: center;
        width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }

    .bottom-nav-item.active {
        color: var(--pt-text-primary);
    }

    .bottom-nav-item:hover {
        color: var(--pt-text-primary);
    }

    /* Menu toggle animation */
    .menu-toggle {
        position: relative;
    }

    .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;
        top: 4px;
        left: 50%;
        transform: translate(-50%, 0) 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: translate(-50%, 0) 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: var(--pt-bg-alpha-45);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        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: var(--pt-bg-alpha-70);
        -webkit-backdrop-filter: blur(25px) saturate(130%);
        backdrop-filter: blur(25px) saturate(130%);
        border-top: 1px solid var(--pt-text-alpha-10);
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -4px 30px var(--pt-bg-alpha-40);
        z-index: 2999;
        transform: translateY(calc(100% + 60px));
        transition: transform 0.3s ease;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }

    .bottom-menu-checkbox:checked~.bottom-menu {
        transform: translateY(0);
    }

    
    

    /* 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: var(--pt-text-muted);
        border-radius: 2px;
        margin: 0 auto 16px auto;
    }

    .menu-item-wrapper {
        border-radius: var(--radius-md);
        overflow: hidden;
        position: relative;
    }

    .menu-item {
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--radius-md);
        width: 100%;
        min-height: 60px;
        border: 1px solid var(--pt-border-strong);
        cursor: pointer;
        background: var(--pt-text-alpha-02);
        transition: background 0.2s, border-color 0.2s;
        padding: 0 16px;
        color: var(--pt-text-primary);
        text-decoration: none;
    }

    .menu-item:hover {
        background: var(--pt-text-alpha-05);
        border-color: var(--pt-text-alpha-30);
    }

    /* Active state for menu items */
    .menu-item.active {
        background: var(--pt-accent-red-alpha-15);
        border-color: var(--pt-accent-red-alpha-50);
    }

    .menu-item.active i {
        color: var(--pt-accent-red);
    }

    .menu-item.active span {
        color: var(--pt-text-primary);
        font-weight: 600;
    }

    .menu-item i,
    .menu-item svg {
        font-size: var(--text-xl);
        color: var(--pt-text-muted);
        margin-right: 12px;
        min-width: 20px;
        flex-shrink: 0;
    }

    .menu-item svg {
        width: 20px;
        height: 20px;
        fill: currentColor;
    }

    .menu-item.active svg {
        color: var(--pt-accent-red);
    }

    .menu-item span {
        font-size: var(--text-sm);
        line-height: 1.2;
    }

    .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: var(--sidebar-offset);
        transition: margin-left 0.3s ease;
    }

    #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;
    }

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

    /* Show overlay when search input is focused or active - Default expanded sidebar */
    body:has(.search-container:focus-within) .search-overlay,
    .search-overlay.active {
        display: block !important;
        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 var(--pt-border-strong);
        backdrop-filter: blur(10px);
        background-color: var(--pt-bg-deep-alpha-85);
    }

    /* Collapsed sidebar state - Desktop */
    body:has(.sidebar-collapsed):has(.search-container:focus-within) .search-overlay,
    body.sidebar-collapsed:has(.search-container:focus-within) .search-overlay,
    body:has(.sidebar-collapsed) .search-overlay.active,
    body.sidebar-collapsed .search-overlay.active {
        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;
    }

}



@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: 0;
        font-size: var(--text-xs);
        width: 32px;
        height: 32px;
    }

    /* 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-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 .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: var(--pt-player-bg);
    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(--pt-bg-secondary);
    color: var(--pt-text-primary);
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 14px;
    border: 1px solid transparent;
}

.server-btn:hover {
    background: var(--pt-text-alpha-15);
}

.server-btn.active {
    background: var(--pt-surface-light);
    color: var(--pt-bg-primary);
}

.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: 8px;
    background: var(--pt-bg-secondary);
    color: var(--pt-text-primary);
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 14px;
    border: none;
}

.video-action-btn:hover {
    background: var(--pt-text-alpha-15);
}

.video-action-btn.liked i {
    color: var(--pt-text-primary);
    filter: drop-shadow(0 0 3px var(--pt-text-alpha-60));
}


.info-section {
    position: relative;
    background: var(--pt-text-alpha-05);
    border-radius: 12px;
    padding: 16px;
    padding-bottom: 48px;
    margin-top: 16px;
    margin-bottom: 24px;
    max-height: 120px;
    overflow: hidden;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, max-height 0.25s ease;
}

.info-section:not(.is-expanded)::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 56px;
    background: linear-gradient(to bottom, transparent, var(--pt-text-alpha-08));
    content: '';
    pointer-events: none;
    z-index: 1;
}

.info-section:hover,
.info-section.is-expanded {
    background: var(--pt-text-alpha-08);
    box-shadow: 0 0 0 1px var(--pt-accent), 0 0 18px var(--pt-text-alpha-20);
}

.info-section.is-expanded {
    max-height: none;
    cursor: default;
}

.info-section:not(.is-expanded) .synopsis-text {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.video-summary {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--pt-text-primary);
}

.video-summary-views {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.video-summary-icon {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.video-summary-separator {
    color: var(--pt-text-muted);
}

.info-section-toggle {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    min-height: 48px;
    padding: 20px 16px 16px;
    border: 0;
    background: linear-gradient(to bottom, transparent, var(--pt-text-alpha-08) 45%, var(--pt-text-alpha-08));
    color: #ffffff;
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.info-section.is-expanded .info-section-toggle {
    right: auto;
    bottom: 16px;
    left: 16px;
    width: auto;
    min-height: 0;
    padding: 0;
    background: transparent;
}

.info-section-toggle:hover {
    color: #ffffff;
}

.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(--pt-text-muted);
    font-size: 14px;
    min-width: 80px;
}

.metadata-values {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.metadata-chip {
    padding: 6px 14px;
    border-radius: 18px;
    background: var(--pt-text-alpha-10);
    color: var(--pt-text-primary);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
}

.metadata-chip:hover {
    background: var(--pt-text-alpha-20);
}

.keyword-chip {
    color: var(--pt-accent-link);
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
}

.keyword-chip::before {
    content: '#';
    margin-right: 1px;
}

.keyword-chip:hover {
    text-decoration: underline;
}

.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(--pt-bg-secondary);
    color: var(--pt-text-primary);
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 14px;
    border: 1px solid var(--pt-border);
}

.load-more-button:hover {
    background: var(--pt-text-alpha-10);
}

.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(3, 1fr);
    gap: 16px;
}

@media (max-width: 768px) {
    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--pt-bg-secondary);
    color: var(--pt-text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
    border: 1px solid transparent;
}

.tab-btn:hover {
    background: var(--pt-text-alpha-15);
}

.tab-btn.active {
    background: var(--pt-text-alpha-90);
    color: var(--pt-bg-primary);
}

.article-container {
    margin-top: 24px;
    padding: 16px;
    background: var(--pt-bg-secondary);
    border-radius: 12px;
    line-height: 1.8;
    color: var(--pt-text-muted);
    font-size: 14px;
}

.article-container a {
    color: var(--pt-accent-link);
}

/* Video Page Layout with YouTube-style Sidebar */
.video-page-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.video-primary {
    order: 1;
}

.video-sidebar {
    order: 2;
    margin-bottom: 8px;
}

.video-related {
    order: 3;
}

/* Sidebar structure details */
.viral-movies-section {
    margin-bottom: 24px;
}

.sidebar-thumb-wrapper {
    position: relative;
    width: 96px;
    flex-shrink: 0;
}

.sidebar-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-sm);
    aspect-ratio: var(--fv-thumb-aspect-ratio, 16/9);
    background-color: var(--pt-bg-secondary);
}

.sidebar-thumb-wrapper .video-duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: var(--pt-bg-alpha-80);
    color: var(--pt-text-primary);
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 500;
}

.sidebar-details-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
}

.sidebar-video-metadata {
    display: block;
    font-size: 11px;
    color: var(--pt-text-muted);
    margin-top: 4px;
}

.video-sidebar .personal-video-item {
    transition: background-color 0.2s ease, transform 0.2s ease;
    border-radius: var(--radius-sm);
    max-width: 450px;
}

.video-sidebar .personal-video-item:hover {
    transform: translateX(4px);
    background-color: var(--pt-bg-secondary);
}

@media (min-width: 1024px) {
    .video-page-layout {
        display: grid;
        grid-template-columns: 1.8fr 1fr;
        grid-template-rows: auto auto;
        gap: 24px;
        grid-template-areas:
            "primary sidebar"
            "related sidebar";
        max-width: 1750px;
        margin: 0 auto;
    }

    .video-primary {
        grid-area: primary;
    }

    .video-sidebar {
        grid-area: sidebar;
        align-self: start;
        margin-bottom: 0;
        position: sticky;
        top: 136px;
        /* Header 56px + Chips bar 60px + 20px spacing */
    }

    .video-related {
        grid-area: related;
    }
}

/* Sidebar More Button */
.sidebar-more-container {
    text-align: center;
    margin-top: 16px;
}

.age-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--pt-bg-alpha-85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.age-gate__content {
    background-color: var(--pt-bg-secondary);
    border: 1px solid var(--pt-border);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 16px 48px var(--pt-bg-alpha-60);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.age-gate__badge {
    text-align: center !important;
display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background-color: var(--pt-accent-red-alpha-15);
    color: var(--pt-accent-red);
    
    font-weight: 700;
    border: 2px solid var(--pt-accent-red-alpha-30);
}

.age-gate__title {
    font-size: 20px;
    font-weight: 600;
    color: var(--pt-text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.age-gate__desc {
    font-size: 14px;
    color: var(--pt-text-muted);
    line-height: 1.5;
    margin-bottom: 24px;
}

.age-gate__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--pt-accent);
    color: var(--pt-text-on-theme);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.age-gate__btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.age-gate__btn:active {
    transform: translateY(0);
}

.sidebar-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 20px;
    background-color: var(--pt-bg-secondary);
    color: var(--pt-text-primary);
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition-fast);
    border: 1px solid var(--pt-border);
}

.sidebar-more-btn i {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.sidebar-more-btn:hover {
    background-color: var(--pt-text-alpha-15);
    color: var(--pt-text-primary);
}

.sidebar-more-btn:hover i {
    transform: translateX(3px);
}

/* Sidebar Responsive Layout - Under 1024px */
@media (max-width: 1023px) {
    .video-sidebar .personal-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .video-sidebar .personal-video-item {
        max-width: none;
        padding: 0;
    }

    .video-sidebar .personal-video-item:hover {
        transform: none;
        background-color: transparent;
    }

    .video-sidebar .personal-video-link {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .video-sidebar .sidebar-thumb-wrapper {
        width: 100%;
    }

    .video-sidebar .sidebar-details-wrapper {
        display: block;
        padding: 0 4px;
    }
}

@media (max-width: 425px) {
    .video-sidebar .personal-list {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (min-width: 1600px) {

    .videos-grid,
    .movie-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}


@media (min-width: 1500px) {
    .video-sidebar .personal-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .video-sidebar .personal-video-item {
        max-width: none;
    }
}

/* ==========================================================================
   Age Gate Modal - Custom Porntube Theme Style (Modern Tube Dark)
   ========================================================================== */
.age-gate {
    background: var(--pt-bg-alpha-95) !important;
}

.age-gate__content {
    background: var(--pt-bg-secondary) !important;
    border: 1px solid var(--pt-border) !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 40px var(--pt-bg-alpha-60) !important;
    color: var(--pt-text-primary) !important;
}

.age-gate__badge {
    text-align: center !important;
    line-height: 1 !important;
display: inline-flex !important; align-items: center !important; justify-content: center !important; 
    border: 3px solid var(--pt-accent) !important;
    color: var(--pt-accent) !important;
    background: var(--pt-accent-alpha-08) !important;
    font-family: "Roboto", "Segoe UI", sans-serif !important;
    
    font-weight: 800 !important;
    box-shadow: 0 0 15px var(--pt-accent-alpha-15) !important;
    text-shadow: 0 0 10px var(--pt-accent-alpha-20) !important;
}

.age-gate__title {
    color: var(--pt-text-primary) !important;
    font-family: "Roboto", "Segoe UI", sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px !important;
}

.age-gate__desc {
    color: var(--pt-text-muted) !important;
    font-family: "Roboto", "Segoe UI", sans-serif !important;
    line-height: 1.6 !important;
}

.age-gate__btn {
    background: var(--pt-accent) !important;
    color: var(--pt-text-on-theme) !important;
    border: none !important;
    border-radius: 8px !important;
    font-family: "Roboto", "Segoe UI", sans-serif !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px var(--pt-accent-alpha-30) !important;
    transition: all 0.2s ease !important;
}

.age-gate__btn:hover {
    background: var(--pt-accent-hover) !important;
    box-shadow: 0 6px 20px var(--pt-accent-alpha-45) !important;
    transform: translateY(-2px) !important;
}

.age-gate__btn:active {
    transform: translateY(0) !important;
}


[data-banner-type="header"],
[data-banner-type="footer"] {
    margin-left: auto !important;
    margin-right: auto !important;
}

.content > .fv-header-banner,
.content > .fv-footer-banner {
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ==========================================================================
   Porntube policy and static pages
   ========================================================================== */
.pt-policy-shell .content {
    width: auto;
}

.pt-policy-card {
    width: min(100%, 960px);
    max-width: 960px;
    margin: 0 auto;
    padding: clamp(20px, 4vw, 40px);
    background: var(--pt-bg-secondary);
    border: 1px solid var(--pt-border);
    border-radius: var(--radius-lg);
}

.pt-policy-header {
    max-width: 820px;
    margin: 0 auto 32px;
    padding-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--pt-border);
}

.pt-policy-header__icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: grid;
    place-items: center;
    color: var(--pt-text-on-theme);
    background: var(--pt-accent);
    border-radius: var(--radius-full);
    font-size: 22px;
}

.pt-policy-header p {
    margin: 0 0 4px;
    color: var(--pt-accent);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pt-policy-header h1 {
    margin: 0;
    color: var(--pt-text-primary);
    font-size: clamp(26px, 5vw, 38px);
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.pt-policy-prose,
.pt-policy-intro {
    max-width: 820px;
    margin: 0 auto;
    color: var(--pt-text-alpha-78);
    font-size: var(--text-base);
    line-height: 1.75;
}

.pt-policy-intro--compact {
    max-width: 640px;
}

.pt-policy-prose h2 {
    margin: 32px 0 10px;
    color: var(--pt-text-primary);
    font-size: var(--text-xl);
    line-height: 1.35;
}

.pt-policy-prose p,
.pt-policy-intro p,
.pt-policy-prose ul {
    margin: 0 0 16px;
}

.pt-policy-prose ul {
    padding-left: 24px;
}

.pt-policy-prose li + li {
    margin-top: 8px;
}

.pt-policy-prose a,
.pt-policy-intro a,
.pt-policy-related a {
    color: var(--pt-accent-link);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pt-policy-related {
    max-width: 820px;
    margin: 32px auto 0;
    padding-top: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 20px;
    border-top: 1px solid var(--pt-border);
}

.pt-form {
    width: min(100%, 720px);
    max-width: 720px;
    margin: 0 auto;
    margin-block-start: 28px;
    padding: clamp(18px, 4vw, 28px);
    display: grid;
    gap: 20px;
    background: var(--pt-bg-primary);
    border: 1px solid var(--pt-border);
    border-radius: var(--radius-md);
}

.pt-form--contact {
    max-width: 640px;
}

.pt-form__two-column {
    display: grid;
    gap: 20px;
}

.pt-field {
    display: grid;
    gap: 8px;
}

.pt-field label,
.pt-confirm label {
    color: var(--pt-text-primary);
    font-size: var(--text-sm);
    font-weight: 600;
}

.pt-field input,
.pt-field select,
.pt-field textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    color: var(--pt-text-primary);
    background-color: var(--pt-bg-secondary);
    border: 1px solid var(--pt-border);
    border-radius: var(--radius-sm);
    font: inherit;
}

.pt-field textarea {
    min-height: 150px;
    resize: vertical;
}

.pt-field select {
    padding-right: 44px;
    appearance: none;
    background-image: var(--pt-select-arrow);
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
}

.pt-field input:focus-visible,
.pt-field select:focus-visible,
.pt-field textarea:focus-visible,
.pt-form__submit:focus-visible,
.pt-policy-related a:focus-visible,
.footer-legal a:focus-visible {
    outline: 2px solid var(--pt-accent-link);
    outline-offset: 2px;
}

.pt-field small {
    color: var(--pt-text-muted);
    font-size: var(--text-xs);
}

.pt-url-control {
    display: grid;
    gap: 8px;
}

.pt-url-control span {
    padding: 11px 13px;
    color: var(--pt-text-primary);
    background: var(--pt-bg-secondary);
    border: 1px solid var(--pt-border);
    border-radius: var(--radius-sm);
    overflow-wrap: anywhere;
}

.pt-confirm {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 10px;
}

.pt-confirm input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--pt-accent);
}

.pt-form__submit {
    min-height: 46px;
    padding: 11px 18px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: var(--pt-text-on-theme);
    background: var(--pt-accent);
    border: 0;
    border-radius: var(--radius-sm);
    font: inherit;
    font-weight: 600;
}

.pt-form__status {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid currentColor;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.pt-form__status.is-success {
    color: var(--pt-accent-success-light);
    background: var(--pt-accent-success-light-alpha-08);
}

.pt-form__status.is-error {
    color: var(--pt-accent-primary-light);
    background: var(--pt-accent-alpha-08);
}

.pt-stats {
    max-width: 820px;
    margin: 28px auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.pt-stats div {
    padding: 18px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 6px 10px;
    background: var(--pt-bg-primary);
    border: 1px solid var(--pt-border);
    border-radius: var(--radius-md);
}

.pt-stats i {
    grid-row: span 2;
    color: var(--pt-accent);
    font-size: 20px;
}

.pt-stats span {
    color: var(--pt-text-muted);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
}

.pt-stats strong {
    color: var(--pt-text-primary);
    font-size: 28px;
}

.pt-table-wrap {
    width: min(100%, 820px);
    max-width: 820px;
    margin: 0 auto;
    overflow-x: auto;
    border: 1px solid var(--pt-border);
    border-radius: var(--radius-md);
}

.pt-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    color: var(--pt-text-primary);
    background: var(--pt-bg-primary);
}

.pt-table caption {
    padding: 14px;
    color: var(--pt-text-primary);
    background: var(--pt-bg-secondary);
    font-weight: 600;
    text-align: left;
}

.pt-table th,
.pt-table td {
    padding: 13px;
    border: 1px solid var(--pt-border);
    text-align: center;
}

.pt-table thead th,
.pt-table tbody th {
    background: var(--pt-bg-secondary);
    font-weight: 600;
}

.pt-table tbody th {
    text-align: left;
}

.footer-legal {
    flex-wrap: wrap;
    justify-content: center;
}

@media (min-width: 680px) {
    .pt-form__two-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pt-url-control {
        grid-template-columns: minmax(190px, auto) minmax(0, 1fr);
    }
}

@media (min-width: 900px) {
    .pt-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .pt-policy-header {
        align-items: flex-start;
    }

    .pt-policy-header__icon {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pt-policy-shell *,
    .footer-legal * {
        transition: none;
    }
}
