/* ===== DESIGN TOKENS (ZERO-COLOR RUNTIME) ===== */
:root {
  --fv-thumb-aspect-ratio: 16/9;
  --ae-radius-sm: 4px;
  --ae-radius-md: 6px;
  --ae-radius-lg: 8px;
  --ae-radius-full: 9999px;
  --ae-container-max: 1400px;
  --ae-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

/* ===== RESET & BASE STYLES ===== */
*,
::after,
::before {
    box-sizing: border-box;
    border: 0 solid var(--ae-border);
}

:host,
html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    font-feature-settings: normal;
    font-variation-settings: normal;
    -webkit-tap-highlight-color: transparent;
    background-color: var(--ae-bg-main);
}

body {
    margin: 0;
    line-height: inherit;
    background-color: var(--ae-bg-main);
    color: var(--ae-text-main);
    font-size: 15px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
    margin: 0;
    color: var(--ae-text-main);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    color: var(--ae-accent-light);
}

img, video, iframe {
    display: block;
    max-width: 100%;
    height: auto;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
}

button {
    cursor: pointer;
    background-color: transparent;
    border: none;
}

/* ===== CONTAINER ===== */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 1400px;
}

@media (min-width: 640px) {
    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

.main-content {
    flex: 1 0 auto;
    padding-top: 1.25rem;
    padding-bottom: 2.5rem;
}

/* ===== HEADER (CINEMATIC 2-ROW DESKTOP / CLEAN MOBILE) ===== */
.site-header {
    width: 100%;
    background-color: var(--ae-bg-main);
    border-bottom: 1px solid var(--ae-border);
    position: relative;
    z-index: 50;
}

/* Row 1: Top Search Bar */
.header-top-bar {
    background-color: var(--ae-bg-main);
    padding-top: 1rem;
    padding-bottom: 0.75rem;
}

@media (max-width: 1023px) {
    .header-top-bar {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
}

.header-top-bar__inner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-top-bar .header__form {
    width: 100%;
    max-width: 720px;
}

.header-search-form {
    display: flex;
    width: 100%;
    position: relative;
    border-radius: var(--ae-radius-sm);
    box-shadow: 0 2px 10px var(--ae-shadow-card);
    border: 1px solid var(--ae-border);
    background-color: var(--ae-bg-surface);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search-form:focus-within {
    border-color: var(--ae-accent);
    box-shadow: 0 0 0 2px var(--ae-accent-glow), 0 4px 16px var(--ae-shadow-modal);
}

.header-search-form input[type="search"] {
    flex: 1 1 auto;
    width: 100%;
    height: 44px;
    padding: 0 1.25rem;
    background-color: transparent;
    border: none;
    color: var(--ae-text-main);
    font-size: 0.95rem;
    outline: none;
}

.header-search-form input[type="search"]::placeholder {
    color: var(--ae-text-muted);
}

.header-search-form button[type="submit"] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 44px;
    background: linear-gradient(135deg, var(--ae-accent) 0%, var(--ae-accent-dark) 100%);
    color: var(--ae-text-on-theme);
    border-radius: 0 var(--ae-radius-sm) var(--ae-radius-sm) 0;
    transition: filter 0.2s ease, transform 0.1s ease;
    flex-shrink: 0;
}

.header-search-form button[type="submit"]:hover {
    filter: brightness(1.1);
}

.header-search-form button[type="submit"] svg {
    stroke: var(--ae-text-on-theme);
}

/* Row 2: Main Cinema Bar */
.header-main-bar {
    background-color: var(--ae-bg-surface);
    border-top: 1px solid var(--ae-border);
    border-bottom: 1px solid var(--ae-border);
}

.header-main-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

/* Logo */
.header__logo .header__logo__text {
    display: inline-flex;
    align-items: center;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--ae-text-main);
    text-transform: uppercase;
}

.header__logo .header__logo__text .logo-main {
    color: var(--ae-accent);
    text-shadow: 0 0 12px var(--ae-accent-glow);
    font-weight: 800;
}

.header__logo .header__logo__text .logo-ext {
    color: var(--ae-text-main);
    margin-left: 2px;
}

/* Desktop Navigation (≥ 1024px) */
.header__nav {
    display: none;
}

@media (min-width: 1024px) {
    .header__nav {
        display: flex;
        align-items: center;
        flex: 1 1 auto;
        justify-content: flex-end;
        margin-left: 2rem;
    }
}

.header__nav-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
}

.header__nav-item {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ae-text-main);
    padding: 0.4rem 0.6rem;
    border-radius: var(--ae-radius-sm);
    transition: all 0.2s ease;
    white-space: nowrap;
    text-transform: capitalize;
}

.header__nav-item:hover {
    color: var(--ae-accent-light);
    text-shadow: 0 0 8px var(--ae-accent-glow);
    background-color: var(--ae-accent-alpha-08);
}

.header__nav-item--active {
    color: var(--ae-accent) !important;
    background-color: var(--ae-accent-alpha-12);
    box-shadow: inset 0 -2px 0 var(--ae-accent);
}

.header__nav-sep {
    color: var(--ae-border-light);
    font-weight: 300;
    user-select: none;
    font-size: 0.8rem;
}

/* Mobile Controls (< 1024px) */
.header__mobile-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 1024px) {
    .header__mobile-controls {
        display: none;
    }
}

.header__mobile-menu-toggle button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: var(--ae-bg-elevated);
    border: 1px solid var(--ae-border);
    border-radius: var(--ae-radius-sm);
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.header__mobile-menu-toggle button:hover {
    border-color: var(--ae-accent);
}

.header__mobile-menu-toggle button::before,
.header__mobile-menu-toggle button::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 2px;
    background-color: var(--ae-text-main);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), top 0.3s ease, background-color 0.2s ease;
}

.header__mobile-menu-toggle button::before {
    top: 16px;
}

.header__mobile-menu-toggle button::after {
    top: 26px;
    box-shadow: 0 -5px 0 0 var(--ae-text-main);
}

.header__mobile-menu-toggle--opened button {
    background-color: var(--ae-accent);
    border-color: var(--ae-accent);
    z-index: 100000;
    position: fixed;
    top: 16px;
    right: 16px;
}

.header__mobile-menu-toggle--opened button::before {
    top: 21px;
    background-color: var(--ae-text-on-theme);
    transform: rotate(45deg);
}

.header__mobile-menu-toggle--opened button::after {
    top: 21px;
    background-color: var(--ae-text-on-theme);
    box-shadow: none;
    transform: rotate(-45deg);
}

/* ===== FULL-SCREEN CINEMA OVERLAY (MOBILE MENU) ===== */
#mobile-aside-menu.mobile-cinema-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99990;
    background-color: var(--ae-bg-modal-overlay);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.97);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
    overflow-y: auto;
    padding: 3rem 1.5rem;
}

#mobile-aside-menu.mobile-cinema-overlay.mobile-aside-menu--active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.mobile-cinema-overlay__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ae-bg-surface-alpha-80);
    border: 1px solid var(--ae-border);
    border-radius: var(--ae-radius-sm);
    color: var(--ae-text-main);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.mobile-cinema-overlay__close:hover {
    background: var(--ae-accent);
    border-color: var(--ae-accent);
    color: var(--ae-text-on-theme);
}

.mobile-cinema-overlay__close svg {
    stroke: currentColor;
}

.mobile-aside-menu__container {
    width: 100%;
    max-width: 480px;
    margin: auto;
    text-align: center;
}

.mobile-cinema-overlay__header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--ae-border-gold);
}

.mobile-cinema-overlay__title span {
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--ae-accent);
    text-shadow: 0 0 12px var(--ae-accent-glow);
}

.mobile-cinema-overlay__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.mobile-cinema-overlay__list li a {
    display: block;
    padding: 0.75rem 1.25rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ae-text-main);
    border-radius: var(--ae-radius-sm);
    background-color: var(--ae-bg-surface-alpha-60);
    border: 1px solid var(--ae-border);
    transition: all 0.2s ease;
}

.mobile-cinema-overlay__list li a:hover,
.mobile-cinema-overlay__list li a.active {
    color: var(--ae-text-on-theme) !important;
    background: linear-gradient(135deg, var(--ae-accent) 0%, var(--ae-accent-dark) 100%) !important;
    border-color: var(--ae-accent) !important;
    box-shadow: 0 4px 16px var(--ae-accent-glow);
    transform: translateY(-1px);
}

.mobile-aside-menu-outside {
    display: none !important;
}

/* ===== HEADINGS (CINEMATIC GOLD ACCENT) ===== */
.heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    padding: 0.6rem 1rem;
    background-color: var(--ae-bg-surface);
    border-left: 4px solid var(--ae-accent);
    border-radius: 0 var(--ae-radius-sm) var(--ae-radius-sm) 0;
    box-shadow: 0 4px 12px var(--ae-shadow-card);
    border-top: 1px solid var(--ae-border);
    border-right: 1px solid var(--ae-border);
    border-bottom: 1px solid var(--ae-border);
}

.heading__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ae-text-main);
    letter-spacing: -0.2px;
}

.heading--spotlight {
    border-left: 4px solid var(--ae-accent-light);
    background: linear-gradient(90deg, var(--ae-accent-alpha-12) 0%, var(--ae-bg-surface) 60%);
    box-shadow: 0 4px 16px var(--ae-accent-alpha-15);
}

.heading--spotlight .heading__title {
    color: var(--ae-accent-light);
    text-shadow: 0 0 10px var(--ae-accent-glow);
}

.heading__more {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--ae-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.25rem 0.5rem;
    border-radius: var(--ae-radius-sm);
    transition: all 0.2s ease;
    margin-left: auto;
}

.heading__more svg {
    transition: transform 0.2s ease;
}

.heading__more:hover {
    color: var(--ae-accent-light);
    background: var(--ae-accent-alpha-10);
}

.heading__more:hover svg {
    transform: translateX(3px);
}

.heading--video-title {
    margin-top: 0;
    border-left-width: 4px;
    background-color: transparent;
    border-top: none;
    border-right: none;
    border-bottom: 1px solid var(--ae-border);
    border-radius: 0;
    padding-left: 0.75rem;
    padding-right: 0;
    box-shadow: none;
}

.heading--video-title .heading__title {
    font-size: 1.35rem;
    line-height: 1.4;
}

/* ===== VIDEO GRID (RESPONSIVE PARITY: 4 DESKTOP / 3 TABLET / 2 MOBILE) ===== */
.items,
.items--grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .items,
    .items--grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }
}

@media (min-width: 1024px) {
    .items,
    .items--grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

/* Top Hot Reel Section */
.section-hot-reel {
    margin-bottom: 2rem;
}

.items--hot {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (min-width: 768px) and (max-width: 1023.98px) {
    .items--hot {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }
    .items--hot .item:nth-child(4) {
        display: none;
    }
}

@media (min-width: 1024px) {
    .items--hot {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

/* ===== VIDEO CARD COMPONENT ===== */
.item {
    background-color: var(--ae-bg-surface);
    border: 1px solid var(--ae-border);
    border-radius: var(--ae-radius-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}

.item:hover {
    transform: translateY(-3px);
    border-color: var(--ae-border-gold);
    box-shadow: 0 8px 20px var(--ae-shadow-dropdown), 0 0 12px var(--ae-accent-alpha-15);
}

.item .item__thumbnail {
    position: relative;
    display: block;
    aspect-ratio: var(--fv-thumb-aspect-ratio, 16/9);
    background-color: var(--ae-bg-deep);
    overflow: hidden;
    width: 100%;
}

.item .item__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.item:hover .item__thumbnail img {
    transform: scale(1.05);
}

/* Metallic Gold Ribbon Badge */
.item .item__labels {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 2;
}

.item .item__labels span {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: var(--ae-text-on-theme);
    background: linear-gradient(135deg, var(--ae-accent) 0%, var(--ae-accent-dark) 100%);
    border-radius: 2px;
    box-shadow: 0 2px 8px var(--ae-shadow-dropdown), 0 0 6px var(--ae-accent-glow);
}

.item .item__title {
    padding: 0.65rem 0.75rem;
    flex: 1 1 auto;
    display: flex;
    align-items: flex-start;
}

.item .item__title h4 {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ae-text-main);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 2lh;
    text-align: left;
    transition: color 0.2s ease;
}

.item:hover .item__title h4 {
    color: var(--ae-accent-light);
}

/* ===== SINGLE VIDEO PAGE ===== */
.single-video-container {
    max-width: 1400px;
}

/* Projector Server Switch Bar */
.projector-server-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    background-color: var(--ae-bg-surface);
    border: 1px solid var(--ae-border);
    border-radius: var(--ae-radius-sm);
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px var(--ae-shadow-card);
}

.projector-server-bar__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--ae-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.projector-server-bar .cdn-selector-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.player__cdn {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--ae-radius-sm);
    background-color: var(--ae-bg-elevated);
    border: 1px solid var(--ae-border-light);
    color: var(--ae-text-main);
    cursor: pointer;
    transition: all 0.2s ease;
}

.player__cdn:hover {
    border-color: var(--ae-accent);
    color: var(--ae-accent-light);
    background-color: var(--ae-bg-elevated);
}

.player__cdn--active {
    background: linear-gradient(135deg, var(--ae-accent) 0%, var(--ae-accent-dark) 100%) !important;
    border-color: var(--ae-accent) !important;
    color: var(--ae-text-on-theme) !important;
    box-shadow: 0 0 10px var(--ae-accent-glow);
}

/* Video Player */
.player {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background-color: var(--ae-text-on-theme);
    border-radius: var(--ae-radius-md);
    overflow: hidden;
    border: 1px solid var(--ae-border);
    box-shadow: 0 10px 30px var(--ae-shadow-modal);
}

.player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Video Details Box */
.video-details-box {
    background-color: var(--ae-bg-surface);
    border: 1px solid var(--ae-border);
    border-radius: var(--ae-radius-sm);
    padding: 1.25rem;
    margin-top: 1rem;
    box-shadow: 0 4px 12px var(--ae-shadow-card);
}

/* Stats (Views & Likes) */
.video-stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.video-stats .views,
.video-stats .likes {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--ae-radius-sm);
    background-color: var(--ae-bg-main);
    border: 1px solid var(--ae-border);
    color: var(--ae-text-muted);
}

.video-stats .likes {
    cursor: pointer;
    transition: all 0.2s ease;
}

.video-stats .likes:hover,
.video-stats .likes.liked {
    background: linear-gradient(135deg, var(--ae-accent) 0%, var(--ae-accent-dark) 100%);
    border-color: var(--ae-accent);
    color: var(--ae-text-on-theme);
    box-shadow: 0 0 10px var(--ae-accent-glow);
}

/* Video Description */
.video-description {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: var(--ae-bg-main);
    border: 1px solid var(--ae-border);
    border-radius: var(--ae-radius-sm);
    line-height: 1.65;
    font-size: 0.9rem;
    color: var(--ae-text-muted);
}

/* Tags & Categories */
.video__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1rem;
}

.label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ae-text-main);
    background-color: var(--ae-bg-main);
    border: 1px solid var(--ae-border);
    border-radius: var(--ae-radius-sm);
    transition: all 0.2s ease;
}

.label svg {
    color: var(--ae-accent);
    flex-shrink: 0;
}

.label:hover {
    color: var(--ae-text-on-theme);
    background-color: var(--ae-accent);
    border-color: var(--ae-accent);
}

.label:hover svg {
    color: var(--ae-text-on-theme);
}

/* ===== PAGINATION ===== */
.paginator {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.paginator .paginator__item {
    display: block;
}

.paginator .paginator__item a,
.paginator .paginator__item span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background-color: var(--ae-bg-surface);
    border: 1px solid var(--ae-border);
    border-radius: var(--ae-radius-sm);
    color: var(--ae-text-main);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.paginator .paginator__item a:hover {
    border-color: var(--ae-accent);
    color: var(--ae-accent-light);
    background-color: var(--ae-accent-alpha-08);
}

.paginator .paginator__item--active a,
.paginator .paginator__item--active span {
    background: linear-gradient(135deg, var(--ae-accent) 0%, var(--ae-accent-dark) 100%) !important;
    border-color: var(--ae-accent) !important;
    color: var(--ae-text-on-theme) !important;
    box-shadow: 0 0 10px var(--ae-accent-glow);
}

/* ===== BUTTONS ===== */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--ae-text-on-theme);
    background: linear-gradient(135deg, var(--ae-accent) 0%, var(--ae-accent-dark) 100%);
    border: 1px solid var(--ae-accent);
    border-radius: var(--ae-radius-sm);
    cursor: pointer;
    box-shadow: 0 4px 12px var(--ae-accent-glow);
    transition: filter 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.button:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px var(--ae-accent-glow);
    color: var(--ae-text-on-theme);
}

.button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs-area {
    background-color: var(--ae-bg-surface);
    border-bottom: 1px solid var(--ae-border);
    padding: 0.6rem 0;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.breadcrumbs-area .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.breadcrumbs-area a {
    color: var(--ae-accent);
    font-weight: 500;
}

.breadcrumbs-area a:hover {
    color: var(--ae-accent-light);
    text-decoration: underline;
}

.breadcrumbs-area .current {
    color: var(--ae-text-muted);
}

.breadcrumbs-area svg {
    flex-shrink: 0;
    color: var(--ae-border-light);
}

/* ===== TIME FILTER BUTTONS ===== */
.time-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.time-filter-btn {
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    background-color: var(--ae-bg-surface);
    color: var(--ae-text-main);
    border: 1px solid var(--ae-border);
    border-radius: var(--ae-radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.time-filter-btn:hover {
    border-color: var(--ae-accent);
    color: var(--ae-accent-light);
}

.time-filter-btn.active {
    background: linear-gradient(135deg, var(--ae-accent) 0%, var(--ae-accent-dark) 100%) !important;
    border-color: var(--ae-accent) !important;
    color: var(--ae-text-on-theme) !important;
    box-shadow: 0 0 10px var(--ae-accent-glow);
}

/* ===== AUTOCOMPLETE DROPDOWN ===== */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 9999;
    background-color: var(--ae-bg-surface);
    border: 1px solid var(--ae-border);
    border-top: none;
    border-radius: 0 0 var(--ae-radius-sm) var(--ae-radius-sm);
    max-height: 300px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 8px 24px var(--ae-shadow-modal);
}

.autocomplete-dropdown a {
    display: block;
    padding: 0.65rem 1rem;
    color: var(--ae-text-main);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--ae-border);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.autocomplete-dropdown a:hover {
    background-color: var(--ae-accent-alpha-15);
    color: var(--ae-accent-light);
}

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

.autocomplete-dropdown::-webkit-scrollbar-track {
    background: var(--ae-bg-surface);
}

.autocomplete-dropdown::-webkit-scrollbar-thumb {
    background: var(--ae-accent);
    border-radius: 3px;
}

/* ===== FOOTER ===== */
#footer {
    background-color: var(--ae-bg-surface);
    border-top: 1px solid var(--ae-border);
    padding: 2.5rem 0 1.5rem;
    margin-top: auto;
    width: 100%;
    font-size: 0.9rem;
    line-height: 1.6;
}

#footer .footer__menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--ae-border);
}

#footer .footer__menu a {
    color: var(--ae-accent);
    font-weight: 500;
    transition: color 0.2s ease;
}

#footer .footer__menu a:hover {
    color: var(--ae-accent-light);
    text-decoration: underline;
}

/* Backlinks Section in Footer */
.footer__backlinks {
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--ae-border);
    text-align: center;
}

.footer__backlinks-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--ae-text-main);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer__backlinks-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.6rem;
    justify-content: center;
}

.footer-backlink-item {
    display: inline-block;
    padding: 0.3rem 0.65rem;
    font-size: 0.8rem;
    background-color: var(--ae-bg-main);
    border: 1px solid var(--ae-border);
    border-radius: var(--ae-radius-sm);
    color: var(--ae-text-muted);
    transition: all 0.2s ease;
}

.footer-backlink-item:hover {
    color: var(--ae-accent-light);
    border-color: var(--ae-border-gold);
    background-color: var(--ae-accent-alpha-08);
}

#footer .footer__text {
    text-align: center;
    color: var(--ae-text-muted);
    font-size: 0.85rem;
}

.me-policy-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.me-policy-nav a {
    color: var(--ae-text-muted);
    font-size: 0.85rem;
}

.me-policy-nav a:hover {
    color: var(--ae-accent);
}

#footer .footer__bottom {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--ae-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

#footer .footer__copyright {
    color: var(--ae-text-dim);
    font-size: 0.85rem;
    margin: 0;
}

#footer .dmca-badge {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

#footer .dmca-badge:hover {
    opacity: 1;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ae-accent) 0%, var(--ae-accent-dark) 100%);
    color: var(--ae-text-on-theme);
    border: none;
    border-radius: var(--ae-radius-sm);
    box-shadow: 0 4px 16px var(--ae-shadow-dropdown), 0 0 10px var(--ae-accent-glow);
    cursor: pointer;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--ae-accent-glow);
}

.back-to-top svg {
    color: var(--ae-text-on-theme);
    stroke: var(--ae-text-on-theme);
}

/* ===== 404 PAGE ===== */
.error-404 {
    text-align: center;
    padding: 4rem 1.5rem;
    background-color: var(--ae-bg-surface);
    border: 1px solid var(--ae-border);
    border-radius: var(--ae-radius-md);
    margin-top: 1.5rem;
    box-shadow: 0 8px 24px var(--ae-shadow-card);
}

.error-404 h1 {
    font-size: 5rem;
    font-weight: 800;
    color: var(--ae-accent);
    text-shadow: 0 0 20px var(--ae-accent-glow);
    line-height: 1;
    margin-bottom: 1rem;
}

.error-404 p {
    color: var(--ae-text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* ===== ADS & UTILITIES ===== */
.fv-header-banner,
.fv-footer-banner,
.fv-square-banner {
    text-align: center;
    margin: 1.25rem auto;
    overflow: hidden;
}

.visually-hidden,
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.mt-5 {
    margin-top: 1.25rem;
}

.text-center {
    text-align: center;
}

/* Policy Pages */
.me-policy {
    padding-top: 30px;
    padding-bottom: 40px;
}

.me-policy-card {
    background-color: var(--ae-bg-surface);
    border: 1px solid var(--ae-border);
    border-radius: var(--ae-radius-sm);
    padding: 2rem;
    line-height: 1.75;
    color: var(--ae-text-main);
    box-shadow: 0 4px 16px var(--ae-shadow-card);
}

.me-policy-card h1,
.me-policy-card h2,
.me-policy-card h3 {
    color: var(--ae-accent-light);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.me-policy-card h1 {
    font-size: 1.75rem;
    margin-top: 0;
}

.me-policy-card h2 {
    font-size: 1.35rem;
    border-bottom: 1px solid var(--ae-border);
    padding-bottom: 0.5rem;
}

.me-policy-card p,
.me-policy-card ul,
.me-policy-card ol {
    margin-bottom: 1rem;
    color: var(--ae-text-muted);
}

.me-policy-card a {
    color: var(--ae-accent);
    text-decoration: underline;
}

/* Static form styles */
.me-policy-card form {
    margin-top: 1.5rem;
}

.me-policy-card input[type="text"],
.me-policy-card input[type="email"],
.me-policy-card textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--ae-bg-main);
    border: 1px solid var(--ae-border);
    border-radius: var(--ae-radius-sm);
    color: var(--ae-text-main);
    margin-bottom: 1rem;
}

.me-policy-card input:focus,
.me-policy-card textarea:focus {
    outline: none;
    border-color: var(--ae-accent);
    box-shadow: 0 0 0 2px var(--ae-accent-glow);
}
