



:root {
    --primary: #ff4500;
    --primary-gradient: linear-gradient(135deg, #ff4500, #ff8c42);
    --secondary: #ff8c42;
    --bg-dark: #080808;
    --bg-card: #141414;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --glass-bg: rgba(20, 20, 20, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-main: 0 10px 30px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}





.navbar,
.modal-content,
.modal-overlay,
.season-card-full,
.credit-item-row,
.platform-circle-detail,
.info-card,
.media-info,
.detail-meta,
.custom-region-dropdown,
.glass-panel {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    will-change: transform;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}




@keyframes zoomInBounce {
    0% {
        opacity: 0;
        transform: scale(0.9);
        
    }

    80% {
        opacity: 0.95;
        transform: scale(1.01);
        
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}




.matrix-container {
    position: absolute;
    top: -50px;
    
    left: 0;
    width: 100%;
    height: 125%;
    display: flex;
    justify-content: space-between;
    opacity: 0.4;
    filter: blur(0.3px);
    pointer-events: none;
    z-index: 1;
}

.matrix-column {
    font-family: 'Courier New', monospace;
    font-size: clamp(0.7rem, 4vw, 1.5rem);
    color: var(--primary);
    writing-mode: vertical-rl;
    text-orientation: upright;
    animation: matrixDrop linear infinite;
    text-shadow: 0 0 12px rgba(255, 69, 0, 0.8);
    white-space: nowrap;
    letter-spacing: 4px;
}

@keyframes matrixDrop {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }

    10%,
    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}




.shimmer-text {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(0.7rem, 8vw, 1.4rem);
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.loading-dots-glow {
    margin-top: 5px;
    z-index: 2;
}

.loading-dots-glow span {
    color: var(--primary);
    font-size: 2.22rem;
    font-weight: 900;
    display: inline-block;
    animation: bounceOpacity 1.2s infinite;
    text-shadow: 0 0 10px var(--primary);
}

.loading-dots-glow span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots-glow span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounceOpacity {

    0%,
    100% {
        opacity: 0.3;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-5px);
        text-shadow: 0 0 20px var(--primary);
    }
}

.loading-content {
    z-index: 10;
    text-align: center;
    position: relative;
}


.loader-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--primary-gradient);
    z-index: 10001;
    transition: width 0.4s cubic-bezier(0.1, 0.7, 0.1, 1), opacity 0.3s ease;
    box-shadow: 0 0 10px var(--primary), 0 0 5px var(--primary);
    opacity: 0;
    pointer-events: none;
}

.loader-bar.loading {
    opacity: 1;
}

.loader-bar.complete {
    width: 100% !important;
    opacity: 1;
}

.loader-bar.fade-out {
    opacity: 0;
    transition: opacity 0.4s ease;
}

html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.container {
    padding: 15px 15px 0 15px;
    min-height: 80vh;
}


.hidden {
    display: none !important;
}


.no-platforms {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.no-data-msg {
    margin: 0;
    text-transform: none;
    color: var(--text-muted);
}




.social-btn {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.05);
    width: clamp(34px, 4vw, 42px);
    height: clamp(34px, 4vw, 42px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-btn:hover {
    color: var(--primary);
    background: rgba(255, 69, 0, 0.1);
    border-color: rgba(255, 69, 0, 0.3);
    transform: translateY(-3px);
}




.btn-more {
    background: rgba(255, 69, 0, 0.08);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-more:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 69, 0, 0.2);
}

.show-more-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 30px;
    margin-bottom: 20px;
}


.trailer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.trailer-modal.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 15px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.trailer-modal:not(.hidden) .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: -55px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2.2rem;
    cursor: pointer;
    z-index: 100;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.close-modal:hover {
    background: var(--primary);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.4);
}

.video-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
}





.navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #1a1715;
    border-bottom: 1px solid #2a221d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    padding: 12px 40px;
    transition: all 0.3s ease;
    margin: 0;
}

.navbar .nav-links a:not(.login-btn),
.navbar .logo a {
    color: #ffffff !important;
}

.navbar .logo a {
    color: #ffffff !important;
}

.navbar .nav-links a:not(.login-btn):hover,
.navbar .nav-links a:not(.login-btn).active {
    color: var(--primary) !important;
}

.navbar-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.logo a:hover {
    color: var(--primary);
}

.shiori-logo-icon {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 5px rgba(240, 71, 71, 0.4));
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1100;
}



.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
    
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.login-btn {
    background: var(--primary-gradient);
    color: #ffffff !important;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 600 !important;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    
    transition: transform 0.2s ease;
}

.login-btn:hover {
    transform: scale(1.05);
}







.alert-success,
.alert-error {
    padding: 12px 18px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    animation: alertShake 0.4s ease-in-out;
}

.alert-success {
    background: rgba(46, 213, 115, 0.1);
    color: #2ed573;
    border: 1px solid rgba(46, 213, 115, 0.2);
}

.alert-error {
    background: rgba(255, 71, 87, 0.1);
    color: #ff4757;
    border: 1px solid rgba(255, 71, 87, 0.2);
}

@keyframes alertShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}





.prime-header {
    margin-bottom: clamp(10px, 1.5vw, 20px);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 25px;
    width: 100%;
    gap: 20px;
    
}

.prime-header.no-border {
    border-bottom: none;
    padding-bottom: 10px;
}

.prime-header-content {
    display: flex;
    flex-direction: column;
    gap: clamp(6px, 1vw, 10px);
    text-align: left;
    flex: 1;
    min-width: 0;
    
}

.prime-title {
    font-size: clamp(1.8rem, 8vw, 3.2rem);
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1.5px;
    margin: 0;
    line-height: 1.1;
}

.prime-subtitle {
    color: var(--text-muted);
    font-size: clamp(13px, 1.2vw, 16px);
    margin: 0;
    opacity: 0.7;
    font-weight: 500;
    max-width: 700px;
    word-wrap: break-word;
}

.prime-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    
}

@media (max-width: 750px) {
    .prime-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        padding-bottom: 25px;
    }

    .prime-header-content {
        align-items: center;
        text-align: center;
    }

    .prime-header-actions {
        width: 100%;
        justify-content: center;
    }
}






.content-section {
    margin-bottom: 60px;
}

.content-section h2 {
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 600;
}





.card-link {
    width: 175px;
    
    flex: 0 0 auto;
    display: block;
    text-decoration: none;
    color: inherit;
    
    animation: zoomInBounce 0.5s cubic-bezier(0.2, 1.0, 0.3, 1) backwards;
    transition: var(--transition);
    transform-origin: center;
}

.media-carousel .card-link {
    width: 175px;
    flex: 0 0 auto;
}

.card {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    
    max-width: 175px;
    
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    height: 100%;
}

.card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: var(--transition);
}


.card-link:hover .card {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.card-link:hover img {
    transform: scale(1.05);
}

.card-body {
    padding: clamp(10px, 1.2vw, 12px);
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
}

.card-body h4 {
    margin: 0 0 6px 0;
    font-size: clamp(12px, 1.1vw, 15px);
    
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
    
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal !important;
}

.card-body h6 {
    margin: 0 0 10px 0;
    font-size: clamp(10px, 0.9vw, 11px);
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.2;
    
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal !important;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: clamp(11px, 1vw, 13px);
    margin-top: auto;
}

.rating {
    color: #f5c518;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.shiori-rating {
    color: #ff4d6d;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ratings-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.lang {
    font-family: 'Noto Color Emoji', sans-serif;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 6px;
}

.card .badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-gradient);
    color: #fff;
    padding: 3px 9px;
    border-radius: 8px;
    font-size: clamp(8px, 0.8vw, 10px);
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    text-transform: uppercase;
}





.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--glass-border);
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.view-all-link {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-all-link:hover {
    color: var(--primary);
}





.back-link-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    gap: 10px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    margin-bottom: 25px;
    font-size: 14px;
    white-space: nowrap;
}

.back-link-premium:hover {
    color: var(--primary);
}

.back-link-premium i {
    font-size: 14px;
}









.media-carousel {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 10px;
    padding: 20px 0 15px 5px;
    
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}


.media-carousel::-webkit-scrollbar {
    height: 6px;
}

.media-carousel::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}


.media-carousel .card-link:nth-child(1) {
    animation-delay: 0.05s;
}

.media-carousel .card-link:nth-child(2) {
    animation-delay: 0.1s;
}

.media-carousel .card-link:nth-child(3) {
    animation-delay: 0.15s;
}

.media-carousel .card-link:nth-child(4) {
    animation-delay: 0.2s;
}

.media-carousel .card-link:nth-child(5) {
    animation-delay: 0.25s;
}

.media-carousel .card-link:nth-child(n+6) {
    animation-delay: 0.3s;
}


.collection-grid-premium .card-link:nth-child(1) {
    animation-delay: 0.05s;
}

.collection-grid-premium .card-link:nth-child(2) {
    animation-delay: 0.1s;
}

.collection-grid-premium .card-link:nth-child(3) {
    animation-delay: 0.15s;
}

.collection-grid-premium .card-link:nth-child(4) {
    animation-delay: 0.2s;
}

.collection-grid-premium .card-link:nth-child(5) {
    animation-delay: 0.25s;
}

.collection-grid-premium .card-link:nth-child(6) {
    animation-delay: 0.3s;
}

.collection-grid-premium .card-link:nth-child(7) {
    animation-delay: 0.35s;
}

.collection-grid-premium .card-link:nth-child(8) {
    animation-delay: 0.4s;
}

.collection-grid-premium .card-link:nth-child(n+9) {
    animation-delay: 0.45s;
}



.ajax-update .card-link {
    animation: none !important;
}







.footer {
    width: 100%;
    background: #1a1715;
    border-top: 1px solid #2a221d;
    padding: 12px 40px;
}

.footer .logo a,
.footer p,
.footer-simple p {
    color: var(--text-muted) !important;
}

.footer .logo a {
    color: var(--text-main) !important;
}

.footer-simple {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-simple .logo {
    font-size: 22px;
    opacity: 0.9;
    justify-content: center;
}

.footer-simple p {
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
    line-height: 1.6;
}





@media (max-width: 750px) {
    .navbar {
        padding: 15px 15px;
        
    }

    .navbar-wrapper {
        justify-content: space-between !important;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        
        width: 100%;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 20px;
        z-index: 1000;
        padding: 20px 0 10px 0;
        opacity: 0;
        transition: opacity 0.3s ease;
        border-top: 1px solid var(--glass-border);
        margin-top: 15px;
    }

    .nav-links.active {
        display: flex;
        
        opacity: 1;
    }

    .navbar-wrapper {
        flex-wrap: wrap;
        
    }

    .nav-links a {
        font-size: 1.1rem;
        width: 100%;
        justify-content: center;
        padding: 10px 0;
    }

    .login-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .media-carousel .card-link,
    .search-grid .card-link,
    .collection-grid .card-link,
    .collection-grid-premium .card-link,
    .known-for-grid .card-link {
        width: 145px !important;
        min-width: 145px !important;
        max-width: 145px !important;
    }

    .search-grid,
    .collection-grid,
    .collection-grid-premium,
    .known-for-grid {
        grid-template-columns: repeat(auto-fit, 145px) !important;
        gap: 10px !important;
        justify-content: center !important;
    }

    
    .media-carousel,
    .cast-scroll-container,
    .known-for-grid,
    .collection-grid-premium {
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        will-change: transform;
        gap: 10px !important;
    }

    .footer {
        padding: 30px 5%;
    }
}


.work-card {
    text-decoration: none !important;
    display: block;
}

.credit-info a.name,
.credit-info-row a.name,
.work-card span {
    text-decoration: none !important;
    color: #fff;
    transition: var(--transition);
    display: inline-block;
    width: fit-content;
}

.credit-info a.name:hover,
.credit-info-row a.name:hover,
.work-card:hover .work-title {
    color: var(--primary);
    text-decoration: none !important;
}

.cast-avatar a,
.credit-photo-small a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none !important;
    line-height: 0;
    font-size: 0;
    transition: var(--transition);
}

.cast-avatar a:hover,
.credit-photo-small a:hover {
    transform: scale(1.05);
    text-decoration: none !important;
}








.custom-region-dropdown {
    position: relative;
    width: 100%;
    margin: 15px 0;
    font-family: inherit;
}

.region-dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 15px 12px 50px;
    cursor: pointer;
    transition: var(--transition);
    color: white;
    font-size: 15px;
    height: 52px;
}

.region-dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.selected-region {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.flag-img {
    width: 22px;
    height: auto;
    border-radius: 3px;
    display: block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.region-item .flag-img {
    width: 20px;
}

.selected-region .code {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    margin-left: auto;
    font-weight: 700;
}

.dropdown-arrow {
    color: rgba(255, 255, 255, 0.4);
    transition: transform 0.3s;
    margin-left: 10px;
}

.custom-region-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.custom-region-dropdown.open .region-dropdown-btn {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.2);
    background: rgba(255, 69, 0, 0.05);
}

.region-dropdown-menu {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: all 0.2s ease;
    z-index: 10;
    margin-top: 0;
}

.custom-region-dropdown.open .region-dropdown-menu {
    max-height: 400px;
    opacity: 1;
    visibility: visible;
    margin-top: 15px;
    margin-bottom: 10px;
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.region-search-box {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.region-search-box i {
    color: var(--primary);
    margin-right: 12px;
}

.region-search-box input {
    background: transparent !important;
    border: none !important;
    color: white !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 10px !important;
    outline: none !important;
    font-size: 14px !important;
    box-shadow: none !important;
}

.region-list-container {
    max-height: 250px;
    overflow-y: auto;
}

.region-list-container::-webkit-scrollbar {
    width: 5px;
}

.region-list-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.region-list-container::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.region-list {
    list-style: none;
    margin: 0;
    padding: 5px 0;
}

.region-item {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    cursor: pointer;
    transition: background 0.2s;
    gap: 12px;
}

.region-item:hover,
.region-item.selected {
    background: rgba(255, 69, 0, 0.1);
}

.region-item.selected {
    border-left: 4px solid var(--primary);
    background: rgba(255, 69, 0, 0.15);
}

.region-item.selected .name {
    color: var(--primary);
    font-weight: 600;
}

.region-item .name {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.region-item .code {
    margin-left: auto;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 700;
}

.custom-region-dropdown .location-icon {
    position: absolute;
    left: 18px;
    top: 27px;
    transform: translateY(-50%);
    z-index: 2;
    pointer-events: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.1rem;
    transition: var(--transition);
}

.custom-region-dropdown.open .location-icon {
    color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


@media (max-width: 750px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}




.flag {
    font-family: "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", sans-serif !important;
    font-size: 1.3rem;
    min-width: 25px;
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
}





div[data-id="344"] svg,
div[data-provider-id="344"] svg,
div[data-id="1773"] svg,
div[data-provider-id="1773"] svg {
    transform: scale(1.3);
}


.platform-circle:hover svg,
.platform-circle-detail:hover svg {
    transform: scale(1.1);
}


div[data-id="344"]:hover svg,
div[data-provider-id="344"]:hover svg,
div[data-id="1773"]:hover svg,
div[data-provider-id="1773"]:hover svg {
    transform: scale(1.4);
}




.search-grid,
.collection-grid,
.collection-grid-premium {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, 175px);
    gap: 10px;
    justify-content: center !important;
    width: 100%;
    margin: 0 auto;
}

.known-for-grid {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center !important;
    width: 100%;
    margin: 0 auto;
}

.search-grid.list-layout,
.search-grid:has(.search-loader) {
    grid-template-columns: 1fr;
}




.home-hero-search {
    width: 100%;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 0;
    margin: -15px -15px 25px -15px;
    
    width: calc(100% + 30px);
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.search-sub-nav {
    width: 100%;
    max-width: 1400px;
    padding: 0 40px;
}

.search-bar-inline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 2px 5px 2px 20px;
    transition: var(--transition);
}

.search-bar-inline:focus-within {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.15);
}

.search-icon-mini {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
}

#home-search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 15px;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    outline: none;
}

#home-search-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.search-btn-mini {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 8px 25px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(255, 69, 0, 0.2);
}

.search-btn-mini:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(255, 69, 0, 0.4);
}

@media (max-width: 750px) {
    .home-hero-search {
        margin-bottom: 0;
    }

    .search-sub-nav {
        padding: 0 15px;
    }

    .search-bar-inline {
        padding: 1px 4px 1px 15px;
    }

    .search-btn-mini {
        padding: 6px 15px;
        font-size: 0.8rem;
    }

    #home-search-input {
        font-size: 0.85rem;
    }
}




.shiori-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.shiori-confirm-overlay.show {
    display: flex;
    opacity: 1;
}

.shiori-confirm-box {
    background: rgba(25, 25, 25, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    padding: 30px;
    width: 450px;
    max-width: 90%;
    text-align: center;
    transform: scale(0.9);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.shiori-confirm-overlay.show .shiori-confirm-box {
    transform: scale(1);
}

.confirm-icon {
    font-size: 2.8rem;
    color: #ff4757;
    margin-bottom: 20px;
}

.shiori-confirm-box h3 {
    color: #fff;
    margin-bottom: 12px;
    font-size: 1.4rem;
    font-weight: 800;
}

.shiori-confirm-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 30px;
}

.confirm-actions {
    display: flex;
    gap: 20px;
    margin-top: 25px;
}

.confirm-btn {
    flex: 1;
    padding: 14px;
    border-radius: 16px;
    border: none;
    font-weight: 850;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.3s;
}

.confirm-btn.shiori-cancel {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.confirm-btn.shiori-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-report-data-premium {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    font-weight: 700;
    font-size: clamp(13px, 1vw, 15px);
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-report-data-premium:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: var(--primary);
}

#data-report-modal .shiori-confirm-box {
    background: #111 !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
}

#data-report-modal .data-report-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
    margin-bottom: 10px;
}

#data-report-modal .data-icon {
    color: var(--primary);
    margin: 0;
    font-size: 1.2rem;
}

#data-report-modal form {
    text-align: left;
    margin-top: 20px;
}

.report-options-list {
    max-height: 115px;
    overflow-y: auto;
    margin-bottom: 15px;
    padding-right: 5px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 5px;
}

.report-option-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 1px;
    cursor: pointer;
    transition: 0.2s;
    border-radius: 6px;
}

.report-option-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.report-option-item.selected {
    background: rgba(255, 69, 0, 0.1);
}

.radio-circle {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    flex-shrink: 0;
}

.report-option-item.selected .radio-circle {
    border-color: var(--primary);
}

.report-option-item.selected .radio-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.report-option-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.shiori-textarea-premium {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
    width: 100%;
    height: 100px;
    resize: none;
    outline: none;
    font-family: inherit;
    padding: 15px;
    border-radius: 8px;
}

.form-group-shiori label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    display: block;
    margin-bottom: 12px;
}

#data-report-modal .confirm-btn-submit {
    background: var(--primary-gradient) !important;
    color: #fff !important;
    flex: 1;
    font-weight: 850;
    transition: 0.3s;
    border-radius: 16px;
}

.icon-success-shiori {
    color: #2ed573 !important;
}

.icon-info-shiori {
    color: #1e90ff !important;
}

.icon-error-shiori {
    color: #ff4757 !important;
}

.report-options-list::-webkit-scrollbar,
#report-description-area::-webkit-scrollbar {
    width: 5px;
    background: transparent;
}

.report-options-list::-webkit-scrollbar-thumb,
#report-description-area::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}