/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", system-ui, sans-serif;
    background: #08080c;
    color: white;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== HEADER / NAVIGATION ===== */
header {
    background: rgba(8, 8, 12, 0.72);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    height: 64px;
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.logo-text {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: white;
    transition: color 0.3s ease;
}

.logo-accent {
    color: #e63946;
    transition: color 0.3s ease;
}

.logo:hover .logo-accent {
    color: #ff6b35;
}

/* Desktop Navigation */
nav.desktop-nav {
    display: none;
    gap: 32px;
    align-items: center;
}

.nav-link {
    position: relative;
    color: rgb(156, 163, 175);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.25s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e63946;
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

/* Search Button Container (Desktop) */
.search-container {
    display: none;
}

.search-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgb(209, 213, 219);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover,
.mobile-search-btn:hover {
    background: rgba(230, 57, 70, 0.15);
    border-color: rgba(230, 57, 70, 0.4);
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.15);
}

.search-btn svg,
.mobile-search-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.search-btn span {
    pointer-events: none;
}

/* Mobile Controls */
.mobile-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.mobile-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 40px;
    height: 40px;
    padding: 0 11px;
    border-radius: 90px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgb(209, 213, 219);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* State when the search input is active and expanded */
.mobile-search-btn.is-active {
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(230, 57, 70, 0.4);
}

.mobile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 90px;
    background: transparent;
    border: none;
    color: rgb(209, 213, 219);
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.mobile-btn svg {
    width: 18px;
    height: 18px;
}

#menuToggle .menu-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Mobile Menu Overlay */
#mobileOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 60;
    display: none;
}

#mobileOverlay.open {
    display: block;
}

/* Mobile Menu */
#mobileMenu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 288px;
    background: #0d0d14;
    z-index: 70;
    padding: 32px;
    padding-top: 96px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#mobileMenu.open {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: rgb(156, 163, 175);
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close:hover {
    color: white;
}

.mobile-menu-close svg {
    width: 24px;
    height: 24px;
}

.mobile-menu a {
    color: rgb(156, 163, 175);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: white;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 75vh;
    overflow: hidden;
    transition: opacity 0.4s ease-in-out;
    background-color: #08080c;
}

.hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.1s ease-out;
    z-index: 1;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: blur(10px) brightness(0.55);
    transform: scale(1.08);
    transition: src 0.3s ease-in-out;
}

/* Layer Fades */
.hero-fade-bottom,
.hero-fade-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.hero-fade-bottom {
    background: linear-gradient(
        to top,
        #08080c 0%,
        rgba(8, 8, 12, 0.9) 20%,
        rgba(8, 8, 12, 0.4) 50%,
        transparent 100%
    );
}

.hero-fade-left {
    background: linear-gradient(
        to right,
        rgba(8, 8, 12, 0.95) 0%,
        rgba(8, 8, 12, 0.7) 40%,
        transparent 70%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 40px;
    min-height: 75vh;
    padding-top: 88px;
}

.hero-text {
    max-width: 740px;
    padding-top: 40px;
    padding-bottom: 60px;
}

/* Season Tag */
.season-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 6px 14px;
    border-radius: 90px;
    border: 1px solid rgba(230, 57, 70, 0.4);
    background: rgba(230, 57, 70, 0.1);
}

.season-tag-text {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffffff;
}

.glow-dot {
    color: #e63946;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%,
    100% {
        opacity: 1;
        text-shadow: 0 0 8px rgba(230, 57, 70, 0.8);
    }
    50% {
        opacity: 0.85;
        text-shadow: 0 0 16px rgba(230, 57, 70, 1);
    }
}

/* Hero Title */
.hero-title {
    font-size: 36px;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

/* Metadata Info Badges Alignment */
.hero-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    align-items: center;
}

.hero-meta-item {
    font-size: 14px;
    font-weight: 600;
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Hero Description */
.hero-description {
    color: rgb(209, 213, 219);
    font-size: 16px;
    line-height: 1.625;
    margin-bottom: 32px;
    max-width: 512px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

/* CTA Primary Button */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e63946 0%, #c5303c 100%);
    border: none;
    color: white;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(230, 57, 70, 0.4);
    transition: all 0.3s ease;
}

.cta-btn:hover {
    box-shadow: 0 6px 30px rgba(230, 57, 70, 0.6);
    transform: translateY(-2px);
}

.cta-btn svg {
    width: 20px;
    height: 20px;
}

.hero-poster-box {
    display: none;
    justify-self: center;
    width: 260px;
    aspect-ratio: 2 / 3;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(230, 57, 70, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-poster-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ===== LATEST EPISODE DROPS SECTION ===== */
.latest-section {
    position: relative;
    z-index: 10;
    padding-bottom: 80px;
}

.latest-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
}

.section-line {
    width: 6px;
    height: 32px;
    border-radius: 9999px;
    background: linear-gradient(90deg, #e63946 0%, transparent 100%);
}

.section-title {
    font-size: 18px;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===== ANIME GRID ===== */
.anime-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    align-items: start;
}

/* ===== ANIME CARD ===== */
.anime-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    width: 100%;
    min-width: 0;
    transition:
        transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.4s ease;
}

.anime-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow:
        0 20px 50px rgba(230, 57, 70, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.5);
}

.anime-card-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    width: 100%;
    aspect-ratio: 2 / 3;
    background: #16161f;
    margin-bottom: 10px;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition:
        transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        filter 0.4s ease;
}

.anime-card:hover .card-image {
    transform: scale(1.08);
    filter: brightness(0.45);
}

/* Episode Badge */
.ep-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(13, 13, 20, 0.78);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.05em;
    z-index: 10;
}

/* Card Overlay */
.card-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px 16px;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.anime-card:hover .card-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Genre Tags */
.genre-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 20px;
    margin-bottom: 8px;
}

.genre-tag {
    background: rgba(230, 57, 70, 0.2);
    border: 1px solid rgba(230, 57, 70, 0.35);
    color: #ff4d5a;
    font-size: 9px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
}

/* Card Description */
.card-description {
    color: rgb(209, 213, 219);
    font-size: 11px;
    line-height: 1.5;
    font-weight: 300;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Title */
.card-title {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.anime-card:hover .card-title {
    color: #e63946;
}

/* ===== ANIME DETAILS MODULES ===== */
/* Cinematic Backdrop Layout Modules */
.cinematic-section {
    position: relative;
    min-height: 70vh;
}

.backdrop-banner-wrapper {
    position: absolute;
    inset: 0;
    overflow: hidden;
    height: 65vh;
    min-height: 400px;
    z-index: 1;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: blur(10px) brightness(0.55);
    transform: scale(1.08);
}

.backdrop-fade-bottom {
    position: absolute;
    inset: 0;
    pointer-events: none;
    height: 65vh;
    min-height: 400px;
    z-index: 2;
    background: linear-gradient(
        to top,
        #08080c 0%,
        rgba(8, 8, 12, 0.92) 25%,
        rgba(8, 8, 12, 0.65) 50%,
        rgba(8, 8, 12, 0.3) 75%,
        transparent 100%
    );
}

.backdrop-fade-left {
    position: absolute;
    inset: 0;
    pointer-events: none;
    height: 65vh;
    min-height: 400px;
    z-index: 2;
    background: linear-gradient(
        to right,
        rgba(8, 8, 12, 0.98) 0%,
        rgba(8, 8, 12, 0.75) 40%,
        rgba(8, 8, 12, 0.3) 70%,
        transparent 100%
    );
}

/* Inner Layout Frame Wrapper */
.details-content-container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 112px 16px 80px 16px;
}

/* Breadcrumbs Section */
.breadcrumb-nav {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
}

.breadcrumb-nav a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-nav a:hover {
    color: white;
}

.breadcrumb-arrow {
    width: 14px;
    height: 14px;
    color: #4b5563;
}

#breadcrumbTitle {
    color: #9ca3af;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* Main Grid Template Column Controls */
.details-grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

/* Left Column Layout Elements (Poster + Actions) */
.details-poster-wrapper {
    aspect-ratio: 2 / 3;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.6),
        0 8px 24px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.poster-image {
    width: 100%;
    height: 100%;
}

.details-actions-wrapper {
    margin-top: 20px;
}

.details-actions-wrapper .cta-btn {
    width: 100%;
    letter-spacing: 0.03em;
    justify-content: center;
}

/* Right Content Info Section Layout */
.details-info-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Right Side Core Title Elements */
#titleEn {
    font-size: 30px;
    font-weight: 900;
    color: white;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

#titleJp {
    font-size: 16px;
    color: #6b7280;
    font-weight: 500;
    font-style: italic;
}

/* Badges Flex Layout Containers */
.badges-flex-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #d1d5db;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.meta-badge-item svg {
    color: #9ca3af;
}
.text-yellow-badge {
    color: #fde047;
}
.text-yellow-badge svg {
    color: #facc15;
    fill: #facc15;
}

/* Status Item Framework Styles */
.meta-badge-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
}
.badge-status-airing {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
    color: #4ade80;
}
.badge-status-completed {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}
.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.status-dot-green {
    background-color: #4ade80;
}
.status-dot-blue {
    background-color: #60a5fa;
}

/* Genre Block Elements Row */
.tags-flex-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.genre-tag-item {
    font-size: 14px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: default;
    background: rgba(230, 57, 70, 0.15);
    border: 1px solid rgba(230, 57, 70, 0.3);
    color: #ff4d5a;
    transition: all 0.25s ease;
}
.genre-tag-item:hover {
    background: rgba(230, 57, 70, 0.25);
    border-color: rgba(230, 57, 70, 0.5);
}

.accent-line-indicator {
    display: inline-block;
    width: 4px;
    height: 20px;
    background-color: #e63946;
    border-radius: 90px;
}

#synopsis {
    color: #d1d5db;
    font-size: 16px;
    line-height: 1.625;
    font-weight: 300;
}

.production-table-card {
    background: rgba(13, 13, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.production-table-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.production-table-row:last-child {
    border-bottom: none;
}

.production-label-col {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
}

.production-value-col {
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-align: right;
}

/* Animations Layout Core System Engine */
@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.reveal-up {
    animation: revealUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.reveal-delay-1 {
    animation-delay: 0.1s;
    opacity: 0;
}

.reveal-delay-2 {
    animation-delay: 0.2s;
    opacity: 0;
}

.reveal-delay-3 {
    animation-delay: 0.3s;
    opacity: 0;
}

.reveal-delay-4 {
    animation-delay: 0.4s;
    opacity: 0;
}

.reveal-delay-5 {
    animation-delay: 0.5s;
    opacity: 0;
}

/* Container backdrop rules aligning modal over standard document layers */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    background-color: #141414;
    border-radius: 8px;
    overflow: hidden;
}

/* Widescreen 16:9 Fluid Aspect-Ratio Wrapper Hack */
.modal-video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 ratio dynamic padding tracking */
}

.modal-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    z-index: 1010;
    transition: background 0.2s ease;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ===== PAGE HEADER ===== */
.page-main {
    padding-top: 96px;
    padding-bottom: 80px;
    min-height: calc(100vh - 64px);
}

.page-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Page Header Typography Elements */
.header-wrapper {
    margin-bottom: 32px;
}

.heading-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.main-title {
    font-size: 28px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.02em;
}

.subtitle {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

/* ===== BROWSE SYSTEM EXTENSIONS ===== */
/* Filter Toolbar Control Panel Layout Grid */
.filter-toolbar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-group-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.filter-group-right {
    display: flex;
    align-items: center;
    width: 100%;
}

/* Custom Select Dropdowns Framework Component */
.custom-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.select-icon-left {
    position: absolute;
    left: 14px;
    width: 16px;
    height: 16px;
    color: #6b7280;
    pointer-events: none;
    z-index: 2;
}

.select-arrow-right {
    position: absolute;
    right: 14px;
    width: 16px;
    height: 16px;
    color: #4b5563;
    pointer-events: none;
    z-index: 2;
}

.custom-select-wrapper select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 11px 40px 11px 42px;
    color: #d1d5db;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all 0.25s ease;
}

.custom-select-wrapper select:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
    color: white;
}

.custom-select-wrapper select:focus {
    border-color: rgba(230, 57, 70, 0.5);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
    background: #0d0d14;
    color: white;
}

.custom-select-wrapper select option {
    background-color: #0d0d14;
    color: #d1d5db;
}

/* Browse Format Badge Overlays */
.browse-format-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.03em;
    background: rgba(230, 57, 70, 0.9);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.25);
}

/* Browse Dynamic Custom Overlays Alignment */
.browse-overlay-meta {
    margin-top: auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.browse-studio-text {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.browse-rating-row {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #fde047;
}

.browse-rating-row .star-icon {
    width: 12px;
    height: 12px;
    fill: #facc15;
    color: #facc15;
}

/* Card Outer Text Formatting Link Block */
.anime-card-link-wrapper {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    overflow: hidden;
}

.browse-card-title {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    transition: color 0.25s ease;
}

.anime-card:hover .browse-card-title {
    color: #e63946;
}

/* Catalog 6-Column CSS Grid Configuration */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

/* ===== SCHEDULE MODULES & UTILITIES ===== */
/* Mobile Scrolling Container Framework for Tabs */
.day-tabs-scroll-container {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 32px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.day-tabs-scroll-container::-webkit-scrollbar {
    height: 4px;
}

.day-tabs-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.day-tabs-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

/* Day Tabs Action Button Architecture */
.day-tabs-wrapper {
    display: flex;
    gap: 8px;
    min-width: max-content;
    padding: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
}

.day-tab {
    background: transparent;
    border: none;
    outline: none;
    padding: 12px 20px;
    border-radius: 10px;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.day-tab:hover {
    color: white;
    background: rgba(255, 255, 255, 0.04);
}

.day-tab.active {
    color: white;
    background: #e63946;
    box-shadow: 0 4px 20px rgba(230, 57, 70, 0.35);
}

/* Day Names Adaptive Visibility Controls */
.day-name-full {
    display: none;
}

.day-name-short {
    display: inline;
}

/* Fixed Clock Broadcast Badge Overlay Styles */
.schedule-time-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.05em;
    background: rgba(13, 13, 20, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Card External Text Mapping Styles */
.schedule-card-title {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    transition: color 0.25s ease;
}

.anime-card:hover .schedule-card-title {
    color: #e63946;
}

/* Empty Schedule State Interfacing */
.schedule-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 64px 0;
    color: #4b5563;
    font-size: 15px;
    font-weight: 500;
}

/* Core Dynamic Script Utility Rules */
.schedule-results-grid-animation {
    animation: scheduleFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* ===== SEARCH SYSTEM EXTENSIONS ===== */
/* Page Layout Structure */
.search-page-main {
    padding-top: 96px;
    padding-bottom: 80px;
}

.search-page-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Page Titles and Headings */
.page-heading-wrapper {
    text-align: center;
    margin-bottom: 32px;
}

.search-heading-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.page-main-title {
    font-size: 30px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.02em;
}

.page-subtitle {
    color: rgb(107, 114, 128);
    font-size: 14px;
    font-weight: 500;
}

/* Main Input Bar Module */
.search-bar-wrapper {
    max-width: 672px;
    margin: 0 auto 40px auto;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.search-input-wrapper:focus-within {
    border-color: rgba(230, 57, 70, 0.5);
    box-shadow:
        0 0 0 4px rgba(230, 57, 70, 0.1),
        0 0 40px rgba(230, 57, 70, 0.08);
    background: rgba(255, 255, 255, 0.06);
}

.search-icon-left {
    width: 20px;
    height: 20px;
    color: rgb(107, 114, 128);
    flex-shrink: 0;
}

.search-input-wrapper input {
    flex: 1 1 0%;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 16px;
    font-weight: 500;
    caret-color: #e63946;
    min-width: 0;
}

.search-input-wrapper input::placeholder {
    color: #6b7280;
}

/* Clear Input Action Button */
.clear-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    border-radius: 90px;
    border: none;
    background: transparent;
    color: rgb(107, 114, 128);
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.clear-btn svg {
    width: 16px;
    height: 16px;
}

/* Live Stats Result Bar */
.result-count-bar {
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.result-count-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-count-left svg {
    width: 16px;
    height: 16px;
    color: #e63946;
}

.result-count-text {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.result-clear-action {
    background: transparent;
    border: none;
    color: rgb(156, 163, 175);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.result-clear-action:hover {
    color: white;
}

.result-clear-action svg {
    width: 14px;
    height: 14px;
}

.state-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 0;
}

.zero-icon {
    margin-bottom: 24px;
    animation: subtlePulse 3s ease-in-out infinite;
}

.zero-icon svg,
.no-results-icon svg {
    width: 80px;
    height: 80px;
    color: #2a2a3a;
}

.state-title {
    font-size: 24px;
    font-weight: 700;
    color: rgb(156, 163, 175);
    margin-bottom: 12px;
}

.state-description {
    color: rgb(75, 85, 99);
    font-size: 14px;
    max-width: 448px;
    line-height: 1.625;
}

/* Custom Search Grid Layout Extensions */
.rating-badge-search {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    background: rgba(13, 13, 20, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.rating-badge-search .star-icon {
    width: 12px;
    height: 12px;
    fill: #facc15;
    color: #facc15;
}
.card-studio-text {
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
    margin-top: 3px;
}

/* Core Functional Utilities */
.hidden {
    display: none;
}
.flex {
    display: flex;
}
.header-container .icon,
#mobileMenu .icon {
    width: 20px;
    height: 20px;
    display: block;
}

/* System Animation Frames */
@keyframes floatingPulse {
    0%,
    100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-6px);
        opacity: 0.4;
    }
}

.search-results-grid-animation {
    animation: searchFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* ===== FOOTER ===== */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 32px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    font-size: 20px;
    font-weight: 900;
    color: white;
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

.footer-logo:hover {
    color: #e63946;
}

.footer-logo-accent {
    color: #e63946;
}

.footer-text {
    color: #707987;
    font-size: 14px;
}

/* Base structural icons helpers */
.icon-sm {
    width: 14px;
    height: 14px;
    display: block;
}
.icon-md {
    width: 18px;
    height: 18px;
    display: block;
}
.icon-lg {
    width: 24px;
    height: 24px;
    display: block;
}
