@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@300;400;500;600;700&display=swap');
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css");

:root {
    --primary-color: #00acc1;
    --primary-hover: #008394;
    --bg-dark: #0f0f0f;
    --bg-card: #181818;
    --bg-glass: rgba(25, 26, 26, 0.9);
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.7);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-pill: 50px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

*,
::after,
::before {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: "Work Sans", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

::-webkit-scrollbar {
    width: 8px;
    height: 4px;
}

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

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.container.sm {
    max-width: 900px;
}

.i-head {
    padding: 0.5rem 0;
    text-align: center;
}

.logo img {
    height: 40px;
    transition: var(--transition);
    filter: drop-shadow(0 0 10px rgba(0, 172, 193, 0.2));
}

.logo img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(0, 172, 193, 0.5));
}

.slogan {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(45deg, #fff, #a0a0a0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.search-box {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1000;
}

.search-wrap {
    position: relative;
    width: 100%;
    max-width: 600px;
    background: rgba(42, 42, 42, 0.6);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-radius 0.2s, background 0.2s;
    z-index: 100;
}

.search-wrap:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 172, 193, 0.2);
    background: #1a1a1a;
}

.search-wrap:has(.suggestions[style*="display: inline"]),
.search-wrap:has(.suggestions[style*="display: block"]) {
    border-radius: 20px 20px 0 0;
    background: #1a1a1a;
    border-bottom: 1px solid #333;
}

.search-wrap form {
    display: flex;
    align-items: center;
    padding: 0.5rem 1.5rem;
}

.search-wrap form::before {
    content: "\F52A";
    font-family: "bootstrap-icons";
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-right: 10px;
}

.search-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    padding: 0.5rem;
    text-align: left;
    outline: none;
    width: 100%;
}

.search-input::placeholder {
    color: #666;
}

.suggestions {
    position: absolute;
    top: 100%;
    left: -1px;
    right: -1px;
    width: calc(100% + 2px);
    background: #1a1a1a;
    border-radius: 0 0 20px 20px;
    z-index: 99;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: none;
    border: 1px solid var(--primary-color);
    border-top: none;
    max-height: 450px;
    overflow-y: auto;
}

.suggestions::-webkit-scrollbar {
    width: 6px;
}

.suggestions::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.suggestions::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

.suggestions .item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #252525;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}

.suggestions .item:hover {
    background: #252525;
    border-left: 3px solid var(--primary-color);
    padding-left: 12px;
}

.suggestions .item:last-child {
    border-bottom: none;
}

.suggestions .poster {
    width: 40px;
    height: 60px;
    border-radius: 4px;
    margin-right: 15px;
    object-fit: cover;
    background: #222;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.suggestions .info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
}

.suggestions .name {
    font-weight: 600;
    color: #fff;
    font-size: 0.95rem;
    text-align: left;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    display: block;
}

.suggestions .meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.head-nav {
    margin-bottom: 1.5rem;
    margin-top: 1rem;
    position: relative;
}

.head-nav::before {
    content: "TRENDING NOW";
    display: block;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 5px;
    opacity: 0.8;
}

.head-nav .tabs {
    display: flex;
    gap: 30px;
    background: transparent;
    padding: 0;
    border-radius: 0;
    align-items: baseline;
}

.nav-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 5px;
}

.nav-title:hover {
    color: #fff;
}

.nav-title.active {
    font-size: 1.8rem;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(0, 172, 193, 0.3);
}

.nav-title.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 20px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 10px;
}

.category-section .head-nav::before {
    display: none;
}

.movies.items {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    counter-reset: rank;
    scroll-snap-type: x mandatory;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: max(20px, calc((100vw - 1400px) / 2 + 20px));
    padding-right: 20px;
    scroll-snap-type: x mandatory;
    scroll-padding-left: max(20px, calc((100vw - 1400px) / 2 + 20px));
}

@media (max-width: 1440px) {
    .movies.items {
        padding-left: 20px;
    }
}

.tab-content {
    width: 100%;
}

.tab-content[style*="display: block"],
.tab-content[style*="display: flex"] {
    overflow: visible !important;
}

@media (max-width: 1440px) {
    .movies.items {
        padding-left: 20px;
    }
}

.movies.items::-webkit-scrollbar {
    height: 4px;
}

.movies.items::-webkit-scrollbar-track {
    background: transparent;
}

.movies.items::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

.movies.items {
    overflow-y: visible;
    padding-top: 20px;
}

.item {
    position: relative;
    transition: var(--transition);
    min-width: 200px;
    width: 200px;
    flex-shrink: 0;
    scroll-snap-align: start;
    z-index: 1;
}

.item:hover {
    z-index: 100;
}

.item:hover .poster[data-progress-tooltip]::after {
    z-index: 101;
}

.item .poster {
    position: relative;
    border-radius: var(--radius-md);
    aspect-ratio: 2/3;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    z-index: 1;
}

.item .poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-md);
}

.item:hover .poster {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 172, 193, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

.item:hover .poster img {
    filter: contrast(1.1) saturate(1.1);
}

.item:hover .meta span {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 172, 193, 0.3);
}


.item .meta {
    margin-top: 10px;
    text-align: center;
}

.item .meta span {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ddd;
    transition: color 0.2s;
}

.item:hover .meta span {
    color: var(--primary-color);
}


.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 5px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--primary-color);
}

.section-tabs {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
    border-radius: var(--radius-pill);
    margin-left: auto;
}

.tab-pill {
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.tab-pill:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.tab-pill.active {
    background: var(--primary-color);
    color: #000;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 172, 193, 0.3);
}

#favorites-section .movies.items,
#history-section .movies.items {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out, padding-bottom 0.5s ease-out;
    opacity: 0;
    padding-bottom: 0;
}

#favorites-section.open .movies.items,
#history-section.open .movies.items {
    max-height: 500px;
    opacity: 1;
    overflow-x: auto;
    padding-bottom: 10px;
}

#favorites-section .section-title,
#history-section .section-title {
    cursor: pointer;
}

#favorites-section .section-title::after,
#history-section .section-title::after {
    content: '\F282';
    font-family: "bootstrap-icons";
    font-size: 1rem;
    margin-left: 10px;
    transition: transform 0.3s;
    display: inline-block;
}

#favorites-section.open .section-title::after,
#history-section.open .section-title::after {
    transform: rotate(180deg);
}

.no-bookmarks {
    width: 100%;
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0 auto;
    flex-shrink: 0;
}

#trending-items .item:not(.view-all-card) {
    counter-increment: rank;
}

#trending-items .item:not(.view-all-card)::after {
    content: counter(rank);
    position: absolute;
    bottom: 45px;
    left: -10px;
    font-size: 6rem;
    font-weight: 900;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 2px var(--primary-color);
    text-shadow:
        0 0 20px rgba(0, 172, 193, 0.6),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.8));
    z-index: 2;
    font-family: 'Arial', sans-serif;
    pointer-events: none;
    transition: all 0.3s ease;
}

#trending-items .item:hover::after {
    color: var(--primary-color);
    text-shadow: 0 0 30px rgba(0, 172, 193, 0.8);
    transform: scale(1.1);
}

@media (max-width: 600px) {
    .section-header {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        flex-wrap: nowrap;
    }

    .section-title {
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 1.1rem;
    }

    .section-tabs {
        width: auto;
        overflow-x: auto;
        justify-content: flex-start;
        margin-left: auto;
        min-width: 0;
        scrollbar-width: none;
    }

    .section-tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-pill {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

#movie-items .item:first-child,
#tv-items .item:first-child {
    margin-left: 0;
}


#player-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
}

#reader-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    filter: blur(20px);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
}

.reader-main {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

#reader {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-hover);
}

#controls {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
}

#controls .item,
#season-episode-selection>div,
.servers {
    padding: 10px 25px;
    border-radius: var(--radius-pill);
    background: rgba(34, 34, 34, 0.8);
    backdrop-filter: blur(5px);
    color: #fff;
    cursor: pointer;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
}

.servers {
    background: #1a1a1a;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    margin-bottom: 0;
    width: auto;
    min-width: 200px;
    outline: none;
    padding: 10px 30px;
    text-align: center;
    text-align-last: center;
}

.servers:focus {
    border-color: var(--primary-color);
}

.servers:hover {
    background-color: #1a1a1a;
    transform: none;
    box-shadow: var(--shadow-soft);
    border-color: rgba(255, 255, 255, 0.1);
}

#controls .item:hover,
#season-episode-selection>div:hover {
    background: #333;
    border-color: #555;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

#controls .item.light {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    width: auto;
    min-width: auto;
}

#controls .item.light:hover {
    background: transparent;
    transform: none;
    box-shadow: none;
}

#season-episode-selection {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
    width: auto;
}

@media (max-width: 768px) {
    #season-episode-selection {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: auto auto;
        gap: 10px;
        width: 100%;
        justify-items: center;
    }

    #season-episode-selection label {
        display: none;
    }

    #seasonSelect {
        grid-row: 1;
        grid-column: 1 / 4;
        width: 100%;
        min-width: 0;
        margin: 0;
    }

    #episodeSelect {
        grid-row: 1;
        grid-column: 4 / 7;
        width: 100%;
        min-width: 0;
        margin: 0;
    }

    #refresh {
        grid-row: 2;
        grid-column: 1 / 3;
        width: 100%;
        padding: 10px 0;
        display: flex;
        justify-content: center;
    }

    #next {
        grid-row: 2;
        grid-column: 3 / 5;
        width: 100%;
        padding: 10px 0;
        display: flex;
        justify-content: center;
    }

    #last {
        grid-row: 2;
        grid-column: 5 / 7;
        width: 100%;
        padding: 10px 0;
        display: flex;
        justify-content: center;
    }

    #season-episode-selection>div {
        padding: 10px 0 !important;
        min-width: 0 !important;
    }

    #season-episode-selection select {
        padding: 10px 30px;
        background-position: right 10px center;
        font-size: 0.85rem;
        height: 100%;
        width: 100%;
        text-align: center;
        text-align-last: center;
    }
}

.bi-arrow-clockwise,
.bi-skip-end-circle,
.bi-skip-forward-circle {
    font-size: 1.4rem;
    display: block;
}

select {
    padding: 10px 30px;
    border-radius: var(--radius-pill);
    background-color: #222;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    color: #fff;
    border: 1px solid #444;
    outline: none;
    cursor: pointer;
    font-size: 0.9rem;
    min-width: 140px;
    text-align: center;
    -webkit-appearance: none;
    appearance: none;
    text-align-last: center;
}



select:focus {
    border-color: var(--primary-color);
}


#w-info {
    display: flex;
    gap: 30px;
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
    background: #181818;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

#w-info .poster img {
    width: 220px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-hover);
}

#w-info .info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#w-info .info-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 10px;
}

#w-info .name {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin: 0;
}

#w-info .buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

#w-info .buttons i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2a2a2a;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
    color: #fff;
    border: 1px solid #333;
}

#w-info .buttons i:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

#w-info .meta {
    display: flex;
    gap: 15px;
    align-items: center;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

#w-info .rating {
    background: #f1c40f;
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
}

#w-info .description {
    color: #ccc;
    line-height: 1.7;
    margin-bottom: 20px;
    font-weight: 300;
}

.detail div {
    margin-bottom: 4px;
    display: flex;
    align-items: baseline;
}

.detail div div:first-child {
    width: 120px;
    color: var(--text-muted);
    font-weight: 500;
    flex-shrink: 0;
}

.detail div span {
    color: #fff;
    flex: 1;
}

footer {
    margin-top: auto;
    background: #111;
    padding: 20px 0 10px;
    border-top: 1px solid #222;
}

footer .abs {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

footer .abs .bottom-text {
    color: #444;
    font-size: 0.8rem;
    margin-top: 5px;
}

.skeleton {
    animation: pulse 1.5s infinite alternate;
    background: #222;
}

.skeleton-poster {
    width: 100%;
    height: 100%;
    aspect-ratio: 2/3;
    border-radius: var(--radius-md);
}

@keyframes pulse {
    0% {
        background: #222;
    }

    100% {
        background: #2c2c2c;
    }
}

.search-loading {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #666;
}

#bookmark {
    transition: 0.3s;
}

.bi-bookmark-fill {
    color: #fff !important;
}

@media (max-width: 1024px) {
    .container.sm {
        max-width: 100%;
    }

    .item {
        min-width: 170px;
        width: 170px;
    }

    #w-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin: 20px auto;
    }

    #w-info .info {
        margin-left: 0;
        width: 100%;
    }

    #w-info .info-header {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    #w-info .detail div {
        justify-content: center;
    }

    #w-info .detail div div:first-child {
        width: auto;
        margin-right: 10px;
    }
}

@media (max-width: 900px) {
    .head {
        flex-direction: column;
        gap: 15px;
    }

    .movies.items {
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 600px) {
    .movies.items {
        display: flex;
        gap: 15px;
        padding-left: 20px;
        padding-right: 20px;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        transform: none;
        overflow-x: auto;
        overflow-y: visible;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 20px;
        padding-top: 10px;
    }

    .item {
        min-width: 140px;
        width: 140px;
    }

    .slogan {
        font-size: 1.2rem;
    }

    .logo img {
        height: 35px;
    }

    #controls {
        padding: 0;
        width: 100%;
    }

    select {
        width: 100%;
        margin-bottom: 10px;
        padding: 12px;
        font-size: 16px;
    }

    #season-episode-selection {
        gap: 10px;
        width: 100%;
        justify-content: space-between;
    }

    #season-episode-selection>div {
        flex: 1;
        display: flex;
        justify-content: center;
    }

    #season-episode-selection select {
        flex: 100%;
        order: -1;
    }

    #w-info {
        padding: 15px;
        margin-top: 20px;
    }

    #w-info .detail div {
        justify-content: flex-start;
        text-align: left;
    }

    #w-info .description {
        text-align: left;
        font-size: 0.95rem;
    }

    #w-info .info-header {
        flex-direction: column;
        gap: 10px;
    }

    #w-info .buttons {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }

    #movie-items .item::after,
    #tv-items .item::after {
        font-size: 4rem;
        bottom: 35px;
    }

    .head-nav .tabs {
        gap: 20px;
        justify-content: center;
    }

    .nav-title.active {
        font-size: 1.5rem;
    }

    .nav-title {
        font-size: 1rem;
    }
}

.cast-link {
    color: #ddd;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.cast-link:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.view-all-card {
    min-width: 80px;
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    cursor: pointer;
}

.view-all-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}

.view-all-content i {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.view-all-content span {
    display: none;
}

.view-all-card:hover .view-all-content {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 172, 193, 0.4);
}

.view-all-card:hover .view-all-content i {
    color: #fff;
}

.progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.5);
    z-index: 5;
    border-bottom-left-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary-color);
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 5px rgba(0, 172, 193, 0.5);
}

.item .poster::after {
    content: attr(data-progress-tooltip);
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 10;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.item:hover .poster[data-progress-tooltip]::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.actor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
    min-width: 120px;
    gap: 10px;
    text-align: center;
}

.actor-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}

.actor-card:hover .actor-img {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 172, 193, 0.3);
}

.actor-name {
    color: #ddd;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    transition: color 0.2s;
}

.actor-card:hover .actor-name {
    color: var(--primary-color);
}