@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --cyan:        #00c2e0;
    --cyan-dark:   #009ab5;
    --bg:          #111111;
    --bg-card:     #1c1c1c;
    --bg-dark:     #000000;
    --bg-accent:   #222222;
    --text:        #ffffff;
    --text-muted:  #bbbbbb;
    --text-faint:  #666666;
    --border:      #2a2a2a;
    --nav-h:       62px;
    --radius:      5px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
}
html { overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }

.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
    width: 100%;
}

header {
    background: var(--bg-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--cyan);
    box-shadow: 0 2px 20px rgba(0,194,224,.15);
}

.header-inner {
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.logo {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text);
    letter-spacing: -0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}
.logo span { color: var(--cyan); }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    flex: 1;
}
.nav-menu li a {
    font-weight: 500;
    font-size: 0.88rem;
    padding: 6px 12px;
    border-radius: var(--radius);
    transition: color .2s, background .2s;
    white-space: nowrap;
}
.nav-menu li a:hover {
    color: var(--cyan);
    background: rgba(0,194,224,.08);
}
.nav-menu li a.active { color: var(--cyan); }

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex-shrink: 1;
}

.search-bar {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-accent);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 6px 10px;
    transition: border-color .2s;
    flex: 1;
    max-width: 260px;
    min-width: 0;
}
.search-bar:focus-within { border-color: var(--cyan); }
.search-bar i {
    color: var(--text-faint);
    font-size: 0.8rem;
    margin-right: 6px;
    flex-shrink: 0;
}
.search-bar input {
    background: transparent;
    border: none;
    color: var(--text);
    outline: none;
    font-size: 0.85rem;
    width: 100%;
    min-width: 0;
}
.search-bar input::placeholder { color: var(--text-faint); }

.menu-toggle {
    display: none;
    background: var(--bg-accent);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1.1rem;
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: #161616;
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.active {
    transform: translateX(0);
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-header {
    padding: 20px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: var(--bg-dark);
}

.close-sidebar {
    background: var(--bg-accent);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 1.2rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav {
    list-style: none;
    padding: 15px 0;
}

.mobile-nav li a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 25px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #ddd;
    transition: all 0.2s;
}

.mobile-nav li a i {
    width: 20px;
    color: var(--cyan);
    font-size: 1.1rem;
}

.mobile-nav li a:hover,
.mobile-nav li a.active {
    background: rgba(0,194,224,0.1);
    color: var(--cyan);
    padding-left: 30px;
}

.main-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
    margin-top: 28px;
    align-items: start;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.main-content {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.section-title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .5px;
    margin-bottom: 16px;
    padding-left: 12px;
    border-left: 4px solid var(--cyan);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text);
}
.section-title a { font-size: 0.8rem; color: var(--cyan); font-weight: 400; }

.trending-section { margin-bottom: 35px; }

.trending-slider {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
}
.trending-slider::-webkit-scrollbar { height: 4px; }
.trending-slider::-webkit-scrollbar-track { background: var(--bg-accent); border-radius: 2px; }
.trending-slider::-webkit-scrollbar-thumb { background: var(--cyan); border-radius: 2px; }

.trending-card {
    flex: 0 0 160px;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    scroll-snap-align: start;
    transition: transform .25s;
}
.trending-card:hover { transform: translateY(-4px); }
.trending-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}
.trending-card .trending-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.85));
    padding: 30px 8px 8px;
}
.trending-title {
    font-size: 0.82rem;
    font-weight: 500;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rank-badge {
    position: absolute;
    top: 0; left: 0;
    background: var(--cyan);
    color: #000;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    border-radius: 0 0 var(--radius) 0;
}

.latest-section { margin-bottom: 35px; }

.latest-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.anime-item-v2 {
    display: flex;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    height: 95px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background .2s, border-color .2s, transform .2s;
}
.anime-item-v2:hover {
    background: #252525;
    border-color: var(--border);
    transform: translateY(-2px);
}
.anime-item-v2 .img-box {
    width: 65px;
    flex-shrink: 0;
    overflow: hidden;
}
.anime-item-v2 .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.anime-item-v2:hover .img-box img { transform: scale(1.05); }
.anime-item-v2 .content-box {
    flex: 1;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}
.anime-item-v2 .atitle {
    font-weight: 700;
    font-size: 0.88rem;
    color: #eee;
    margin-bottom: 6px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.anime-item-v2 .ameta {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.ameta span i { color: var(--cyan); margin-right: 3px; }

.sidebar { position: sticky; top: calc(var(--nav-h) + 20px); }

.sidebar-widget {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}
.widget-title {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: .8px;
    margin-bottom: 14px;
    text-transform: uppercase;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}
.popular-item {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    cursor: pointer;
    padding: 5px;
    border-radius: var(--radius);
    transition: background .2s;
}
.popular-item:hover { background: var(--bg-accent); }
.popular-item img {
    width: 55px;
    height: 72px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
}
.popular-item .info { flex: 1; min-width: 0; padding-top: 2px; }
.popular-item h4 {
    font-size: 0.82rem;
    margin-bottom: 5px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.popular-item .score { color: #f1c40f; font-size: 0.78rem; }
.popular-item .score i { margin-right: 3px; }

.schedule-days {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.schedule-days span {
    background: var(--bg-accent);
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.detail-v2 {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}
.detail-v2-header {
    display: flex;
    padding: 28px;
    gap: 28px;
    background: linear-gradient(160deg, #252525 0%, var(--bg-card) 100%);
    border-bottom: 1px solid var(--border);
}
.detail-v2-header img {
    width: 185px;
    flex-shrink: 0;
    border-radius: var(--radius);
    box-shadow: 0 8px 25px rgba(0,0,0,.6);
    object-fit: cover;
    aspect-ratio: 2/3;
}
.entry-header { flex: 1; min-width: 0; }
.entry-header h1 { font-size: 1.6rem; margin-bottom: 16px; line-height: 1.3; }
.info-table {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 20px;
    margin-bottom: 16px;
}
.info-val { font-size: 0.85rem; color: var(--text-muted); }
.info-val strong { color: var(--text); font-weight: 600; margin-right: 5px; }

.genre-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.genre-tag {
    font-size: 0.75rem;
    background: var(--bg-accent);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 20px;
    color: var(--text-muted);
}

.entry-content { padding: 24px 28px; }
.synopsis-text {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 28px;
}

.episode-list-v2 { margin-top: 24px; }
.episode-list-v2 h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.episode-row {
    background: var(--bg-accent);
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    border-radius: var(--radius);
    cursor: pointer;
    border: 1px solid transparent;
    font-size: 0.88rem;
    transition: background .2s, border-color .2s, color .2s;
}
.episode-row:hover {
    background: #2a2a2a;
    border-color: var(--cyan);
    color: var(--cyan);
}
.episode-row i { font-size: 1rem; color: var(--cyan); }

.watch-page { }
.watch-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.4;
}
.player-wrapper {
    background: #000;
    width: 100%;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: visible;
    border: 1px solid var(--border);
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    contain: layout;
}

.player-wrapper:not(:fullscreen):not(:-webkit-full-screen):not(:-moz-full-screen) {
    overflow: hidden;
    border-radius: var(--radius);
}

.player-wrapper:-webkit-full-screen,
.player-wrapper:-moz-full-screen,
.player-wrapper:fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    max-height: none !important;
    border-radius: 0 !important;
    aspect-ratio: unset !important;
    overflow: hidden !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
}
#jwplayer-container, 
.player-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
    display: block;
}
.player-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.9rem;
    background: #0a0a0a;
}

.ext-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    background: var(--cyan);
    color: #000;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 28px;
    border-radius: var(--radius);
    transition: opacity .2s, transform .15s;
    letter-spacing: .3px;
}
.ext-play-btn:hover { opacity: .85; transform: scale(1.03); color: #000; }

.server-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.server-btn {
    padding: 7px 16px;
    background: var(--bg-accent);
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: var(--radius);
    font-size: 0.82rem;
    font-weight: 500;
    transition: all .2s;
}
.server-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.server-btn.active {
    background: var(--cyan);
    color: #000;
    border-color: var(--cyan);
    font-weight: 700;
}

.download-box {
    margin-top: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.download-box-header {
    padding: 14px 20px;
    background: var(--bg-accent);
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    font-weight: 700;
}
.download-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.download-table thead tr th {
    text-align: left;
    padding: 10px 20px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: .5px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
}
.download-table tbody tr { border-bottom: 1px solid var(--border); }
.download-table tbody tr:last-child { border-bottom: none; }
.download-table tbody tr td { padding: 10px 20px; }
.download-table tbody tr:hover { background: var(--bg-accent); }
.dl-link {
    display: inline-block;
    color: var(--cyan);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: .5px;
    padding: 4px 12px;
    border: 1px solid var(--cyan);
    border-radius: 3px;
    transition: background .2s, color .2s;
}
.dl-link:hover { background: var(--cyan); color: #000; }

.no-stream {
    text-align: center;
    padding: 40px;
    color: var(--text-faint);
}
.no-stream i { font-size: 2.5rem; margin-bottom: 12px; display: block; }

.search-header {
    margin-bottom: 20px;
}
.search-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    padding-left: 12px;
    border-left: 4px solid var(--cyan);
}
.search-header span { color: var(--text-muted); font-weight: 400; }
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-faint);
}
.no-results i { font-size: 3rem; margin-bottom: 12px; display: block; }

@keyframes spin { to { transform: rotate(360deg); } }
.loader-wrap {
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.loader-v2 {
    border: 4px solid var(--bg-accent);
    border-top: 4px solid var(--cyan);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    animation: spin .9s linear infinite;
}

footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    padding: 40px 0;
    margin-top: 60px;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-brand p {
    color: var(--text-faint);
    font-size: 0.8rem;
    margin-top: 8px;
}
.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-links a {
    font-size: 0.8rem;
    color: var(--text-faint);
    transition: color .2s;
}
.footer-links a:hover { color: var(--cyan); }

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-faint);
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); transition: color .2s; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb i { font-size: 0.6rem; color: var(--text-faint); }
.breadcrumb span { color: var(--cyan); }

.server-section {
    margin-top: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
}
.server-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.server-label i { color: var(--cyan); margin-right: 6px; }

.ep-list-box {
    margin-top: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.ep-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-accent);
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    font-weight: 700;
}
.ep-list-all {
    font-size: 0.78rem;
    color: var(--cyan);
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: opacity .2s;
}
.ep-list-all:hover { opacity: .75; }
.ep-list-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 14px;
    max-height: 360px;
    overflow-y: auto;
}
.ep-list-grid::-webkit-scrollbar { width: 4px; }
.ep-list-grid::-webkit-scrollbar-track { background: var(--bg-accent); }
.ep-list-grid::-webkit-scrollbar-thumb { background: var(--cyan); border-radius: 2px; }

.ep-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    min-height: 38px;
    background: var(--bg-accent);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: background .15s, border-color .15s, color .15s;
    cursor: pointer;
}
.ep-item:hover {
    background: #333;
    border-color: var(--cyan);
    color: var(--cyan);
}
.ep-item-active {
    background: var(--cyan) !important;
    border-color: var(--cyan) !important;
    color: #000 !important;
    font-weight: 800;
}

.mt-30 { margin-top: 30px; }
.text-cyan { color: var(--cyan); }

.seek-feedback {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 15px 25px;
    border-radius: 50%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 100;
}

.seek-feedback.left { left: 15%; }
.seek-feedback.right { right: 15%; }

.seek-feedback i { font-size: 2rem; margin-bottom: 5px; }
.seek-feedback span { font-weight: 700; font-size: 1rem; }

.seek-feedback.show {
    animation: seekPop 0.5s ease forwards;
}



@keyframes seekPop {
    0% { opacity: 0; transform: translateY(-50%) scale(0.8); }
    50% { opacity: 1; transform: translateY(-50%) scale(1.1); }
    100% { opacity: 0; transform: translateY(-50%) scale(1); }
}


.film-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.film-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--bg-accent);
    border: 1px solid var(--border);
    border-radius: 25px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all .25s ease;
    text-decoration: none;
}
.film-tab:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    background: rgba(0,194,224,.06);
}
.film-tab.active {
    background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
    color: #000;
    border-color: var(--cyan);
    font-weight: 700;
    box-shadow: 0 2px 12px rgba(0,194,224,.3);
}
.film-tab i { font-size: 0.8rem; }

.film-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.film-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid transparent;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.film-card:hover {
    transform: translateY(-5px);
    border-color: var(--cyan);
    box-shadow: 0 8px 25px rgba(0,194,224,.12);
}

.film-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2/3;
}
.film-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.film-card:hover .film-poster img {
    transform: scale(1.06);
}

.film-quality {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    z-index: 2;
}
.quality-hd {
    background: linear-gradient(135deg, #00c2e0, #0090a8);
    color: #000;
}
.quality-sd {
    background: linear-gradient(135deg, #f39c12, #d68910);
    color: #000;
}
.quality-cam {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
}

.film-rating {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,.75);
    backdrop-filter: blur(4px);
    color: #f1c40f;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
    z-index: 2;
}
.film-rating i { font-size: 0.65rem; margin-right: 2px; }

.film-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s ease;
    z-index: 1;
}
.film-card:hover .film-play-overlay { opacity: 1; }
.film-play-overlay i {
    font-size: 2.5rem;
    color: var(--cyan);
    filter: drop-shadow(0 2px 8px rgba(0,194,224,.5));
    transition: transform .2s ease;
}
.film-card:hover .film-play-overlay i { transform: scale(1.15); }

.film-info {
    padding: 10px 12px 14px;
}
.film-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #eee;
    margin-bottom: 6px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.film-meta {
    display: flex;
    gap: 10px;
    font-size: 0.73rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.film-meta i {
    color: var(--cyan);
    margin-right: 3px;
    font-size: 0.68rem;
}
.film-genre {
    font-size: 0.7rem;
    color: var(--text-faint);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.film-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
    padding: 16px 0;
}
.page-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: var(--bg-accent);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all .2s ease;
    text-decoration: none;
}
.page-btn:hover {
    background: var(--cyan);
    color: #000;
    border-color: var(--cyan);
}
.page-info {
    font-size: 0.82rem;
    color: var(--text-faint);
    font-weight: 500;
}

.film-home-slider {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
}
.film-home-slider::-webkit-scrollbar { height: 4px; }
.film-home-slider::-webkit-scrollbar-track { background: var(--bg-accent); border-radius: 2px; }
.film-home-slider::-webkit-scrollbar-thumb { background: var(--cyan); border-radius: 2px; }

.film-home-card {
    flex: 0 0 155px;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    scroll-snap-align: start;
    transition: transform .25s;
    text-decoration: none;
    color: inherit;
}
.film-home-card:hover { transform: translateY(-4px); }
.film-home-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.film-home-card .film-quality {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 2;
}
.film-home-card .film-home-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.9));
    padding: 35px 8px 10px;
}
.film-home-card .film-home-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}
.film-home-card .film-home-meta {
    font-size: 0.68rem;
    color: var(--text-muted);
    display: flex;
    gap: 8px;
    align-items: center;
}
.film-home-card .film-home-meta i { color: var(--cyan); font-size: 0.6rem; }

.lk-section {
    margin-top: 30px;
}

.lk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}
.lk-grid .lk-card {
    flex: none;
}

.lk-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-left: 12px;
    border-left: 3px solid;
    border-image: linear-gradient(180deg, #ff6b35, #e91e8c) 1;
}
.lk-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
}
.lk-see-all {
    display: inline-flex;
    align-items: center;
    padding: 5px 16px;
    background: linear-gradient(135deg, #e91e8c, #c2185b);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all .2s ease;
}
.lk-see-all:hover {
    background: linear-gradient(135deg, #ff2d9b, #e91e8c);
    box-shadow: 0 2px 10px rgba(233,30,140,.4);
}

.lk-slider-wrap {
    position: relative;
}
.lk-slider {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 6px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.lk-slider::-webkit-scrollbar { display: none; }

.lk-arrow {
    position: absolute;
    top: 0;
    bottom: 60px;
    width: 36px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,.7));
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .25s;
}
.lk-slider-wrap:hover .lk-arrow { opacity: 1; }
.lk-arrow-right { right: 0; border-radius: 0; }
.lk-arrow-left { left: 0; background: linear-gradient(-90deg, transparent, rgba(0,0,0,.7)); }

.lk-card {
    flex: 0 0 140px;
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease;
}
.lk-card:hover { transform: translateY(-4px); }

.lk-poster {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 2/3;
}
.lk-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.lk-card:hover .lk-poster img { transform: scale(1.05); }

.lk-rating {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(4px);
    color: #4caf50;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 3px;
}
.lk-rating i { color: #4caf50; font-size: 0.6rem; }

.lk-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 2px 7px;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: .5px;
    z-index: 2;
}
.badge-hd { background: #00c2e0; color: #000; }
.badge-sd { background: #e91e8c; color: #fff; }
.badge-cam { background: #e74c3c; color: #fff; }

.lk-poster-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.85));
    padding: 20px 8px 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: rgba(255,255,255,.85);
    font-weight: 600;
    z-index: 1;
}

.lk-card-info {
    padding: 8px 2px 0;
}
.lk-genre {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-bottom: 3px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.lk-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #eee;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height: 1.3;
}

@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
    }
    .sidebar { position: static; width: 100%; max-width: 100%; }
    .latest-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .film-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .nav-menu { display: none !important; }
    .menu-toggle { display: flex !important; }
    .wrapper { padding: 0 14px; }
    .main-layout { gap: 16px; margin-top: 20px; width: 100%; box-sizing: border-box; overflow: hidden; }
    .main-content, .sidebar { width: 100%; max-width: 100%; box-sizing: border-box; overflow: hidden; }
    .latest-grid { grid-template-columns: 1fr; }
    .detail-v2-header { flex-direction: column; align-items: center; text-align: center; padding: 20px; }
    .detail-v2-header img { width: 150px; }
    .info-table { grid-template-columns: 1fr; }
    .entry-header h1 { font-size: 1.2rem; }
    .entry-content { padding: 16px; }
    .footer-inner { flex-direction: column; text-align: center; }
    .ep-list-grid { grid-template-columns: repeat(5, 1fr); }
    .watch-title { font-size: 1.1rem; }
    .player-wrapper { max-height: none; }
    .film-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .film-tabs { gap: 4px; }
    .film-tab { padding: 6px 14px; font-size: 0.8rem; }
}

@media (max-width: 480px) {
    .header-inner { gap: 8px; }
    .logo { font-size: 1.2rem; }
    .menu-toggle { width: 34px; height: 34px; font-size: 1rem; }
    .wrapper { padding: 0 12px; box-sizing: border-box; }
    .main-layout { gap: 14px; width: 100%; box-sizing: border-box; overflow: hidden; }
    .main-content, .sidebar { width: 100%; max-width: 100%; box-sizing: border-box; overflow: hidden; }
    .trending-slider { padding-right: 4px; }
    .trending-card { flex: 0 0 130px; }
    .trending-card img { height: 185px; }
    .latest-grid { grid-template-columns: 1fr; }
    .anime-item-v2 { width: 100%; max-width: 100%; }
    .ep-list-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 10px; }
    .player-wrapper { border-radius: 0; border-left: none; border-right: none; }
    .breadcrumb { font-size: 0.7rem; }
    .server-btn { padding: 6px 10px; font-size: 0.75rem; }
    .footer-links { gap: 12px; }
    .footer-links a { font-size: 0.75rem; }
    .lk-card { flex: 0 0 120px; }
    .film-home-card { flex: 0 0 130px; }
    .film-home-card img { height: 185px; }
}

