.movie-floating-page {
    min-height: 100vh;
    padding: 86px 18px 42px;
    position: relative;
    overflow: hidden;
}

.movie-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.movie-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(18px) brightness(.45);
    transform: scale(1.08);
}

.movie-bg-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(47, 123, 255, 0.22), transparent 34%),
        radial-gradient(circle at bottom left, rgba(255, 48, 79, 0.16), transparent 38%),
        radial-gradient(circle at 18% 82%, var(--brand-fuchsia-glow, rgba(190, 80, 165, 0.04)) 0%, transparent 42%),
        radial-gradient(circle at 84% 14%, var(--brand-gold-dark-glow, rgba(130, 98, 28, 0.032)) 0%, transparent 38%),
        rgba(8, 8, 12, 0.68);
}


.movie-glass-panel {
    position: relative;
    z-index: 2;
    width: min(100%, 1120px);
    margin: 0 auto;
    border-radius: 34px;
    background: var(--glass-fill-strong, rgba(255, 255, 255, 0.074));
    border: 1px solid var(--glass-border-neutral, rgba(255, 255, 255, 0.12));
    backdrop-filter: blur(28px);
    box-shadow:
        0 28px 90px rgba(0, 0, 0, 0.48),
        var(--glass-accent-rim, inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -1px 0 rgba(205, 85, 175, 0.038));
    overflow: hidden;
}

.movie-alert {
    margin: 18px 18px 0;
    padding: 13px 15px;
    border-radius: 16px;
    line-height: 1.8;
}

.movie-alert.success {
    background: rgba(34,197,94,.13);
    border: 1px solid rgba(34,197,94,.28);
    color: #baffcf;
}

.movie-alert.error {
    background: rgba(255,48,79,.13);
    border: 1px solid rgba(255,48,79,.28);
    color: #ffd5db;
}

.movie-hero-strip {
    height: 290px;
    position: relative;
    overflow: hidden;
}

.movie-hero-strip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-hero-fade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, transparent 30%, rgba(7,17,31,.92) 100%),
        linear-gradient(to left, rgba(7,17,31,.08), rgba(7,17,31,.72));
}

.movie-main-info {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    padding: 0 30px 30px;
    margin-top: -110px;
    position: relative;
    z-index: 2;
}

.movie-poster-large img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 22px 60px rgba(0,0,0,.5);
}

.movie-info-content {
    padding-top: 110px;
}

.movie-type-pill {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(47,123,255,.14);
    border: 1px solid rgba(47,123,255,.35);
    color: #9cc7ff;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 12px;
}

.movie-info-content h1 {
    direction: ltr;
    text-align: right;
    margin: 0;
    font-size: clamp(28px, 4vw, 48px);
}

.movie-info-content h2 {
    margin: 8px 0 18px;
    color: var(--text-soft);
    font-weight: 400;
}

.movie-meta-row,
.movie-genre-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 14px;
}

.movie-meta-row span,
.movie-genre-row span {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.1);
    color: var(--text-soft);
    font-size: 13px;
}

.admin-note-box {
    padding: 13px 15px;
    margin: 12px 0;
    border-radius: 18px;
    background: rgba(255,48,79,.1);
    border: 1px solid rgba(255,48,79,.24);
    color: #ffd5db;
    line-height: 1.9;
    text-align: center;
}

.movie-description {
    color: #dbe7f4;
    line-height: 2.1;
    margin: 14px 0 0;
}

.movie-accordion-zone,
.movie-private-note,
.movie-comments-zone {
    padding: 0 30px 30px;
}

.glass-details {
    border-radius: 22px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.11);
    margin-bottom: 14px;
    overflow: hidden;
}

.glass-details > summary {
    cursor: pointer;
    padding: 17px 18px;
    font-weight: 900;
    color: white;
}

.download-version {
    margin: 0 16px 14px;
    border-radius: 18px;
    background: rgba(0,0,0,.16);
    border: 1px solid rgba(255,255,255,.09);
}

.download-version summary {
    cursor: pointer;
    padding: 14px;
    font-weight: 800;
}

.download-list {
    display: grid;
    gap: 10px;
    padding: 0 14px 14px;
}

.download-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px;
    border-radius: 17px;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.09);
}

.download-row strong {
    display: block;
    font-size: 16px;
}

.download-row span {
    display: block;
    margin-top: 4px;
    color: var(--text-soft);
    font-size: 12px;
}

.download-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.download-actions button {
    border: none;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 13px;
    color: white;
    opacity: .65;
}

.copy-link-btn {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12) !important;
}

.direct-download-btn {
    background: rgba(47,123,255,.38);
    border: 1px solid rgba(87,161,255,.42) !important;
    box-shadow: 0 0 18px rgba(47,123,255,.12);
}

.refresh-download-btn {
    background: rgba(255,48,79,.28);
    border: 1px solid rgba(255,48,79,.35) !important;
}

.download-empty,
.download-hint {
    margin: 0 16px 16px;
    padding: 15px;
    border-radius: 17px;
    color: var(--text-soft);
    background: rgba(0,0,0,.15);
    border: 1px solid rgba(255,255,255,.08);
    line-height: 1.9;
}

.full-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0 16px 16px;
}

.full-info-grid div {
    padding: 14px;
    border-radius: 17px;
    background: rgba(0,0,0,.16);
    border: 1px solid rgba(255,255,255,.08);
}

.full-info-grid span {
    display: block;
    color: var(--text-soft);
    font-size: 12px;
    margin-bottom: 7px;
}

.full-info-grid strong {
    font-size: 14px;
}

.section-mini-head {
    margin-bottom: 14px;
}

.section-mini-head h3 {
    margin: 0 0 5px;
    font-size: 22px;
}

.section-mini-head p {
    margin: 0;
    color: var(--text-soft);
    font-size: 13px;
}

.movie-private-note textarea,
.comment-form textarea {
    width: 100%;
    border: none;
    outline: none;
    color: white;
    line-height: 1.9;
    border-radius: 20px;
    padding: 15px;
    background: rgba(0,0,0,.18);
    border: 1px solid rgba(255,255,255,.11);
    resize: vertical;
}

.movie-private-note button,
.comment-form button {
    margin-top: 10px;
    min-height: 44px;
    padding: 0 18px;
    border: none;
    border-radius: 15px;
    color: white;
    font-weight: 900;
    cursor: pointer;
    background: linear-gradient(135deg, #1f6fff, #3d95ff);
    box-shadow: 0 12px 28px rgba(47,123,255,.25);
}

.approved-comments {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.comment-card {
    padding: 15px;
    border-radius: 20px;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.09);
}

.comment-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-soft);
    margin-bottom: 9px;
}

.comment-head strong {
    color: white;
}

.comment-card p {
    margin: 0;
    line-height: 2;
}

@media (max-width: 768px) {
    .movie-floating-page {
        padding: 72px 10px 28px;
    }

    .movie-glass-panel {
        border-radius: 26px;
    }

    .movie-hero-strip {
        height: 220px;
    }

    .movie-main-info {
        grid-template-columns: 120px 1fr;
        gap: 14px;
        padding: 0 16px 22px;
        margin-top: -70px;
    }

    .movie-info-content {
        padding-top: 72px;
    }

    .movie-info-content h1 {
        font-size: 24px;
    }

    .movie-info-content h2 {
        font-size: 14px;
    }

    .movie-accordion-zone,
    .movie-private-note,
    .movie-comments-zone {
        padding: 0 16px 24px;
    }

    .full-info-grid {
        grid-template-columns: 1fr;
    }

    .download-row {
        display: grid;
    }
}
.download-status-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    position: relative;
}

.download-status-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(47,123,255,.22), transparent 34%),
        radial-gradient(circle at bottom left, rgba(255,48,79,.18), transparent 36%),
        #07111f;
}

.download-status-card {
    position: relative;
    z-index: 2;
    width: min(100%, 620px);
    padding: 34px;
    border-radius: 32px;
    text-align: center;
    background: rgba(255,255,255,.075);
    border: 1px solid rgba(255,255,255,.13);
    backdrop-filter: blur(28px);
    box-shadow: 0 24px 80px rgba(0,0,0,.45);
}

.status-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 22px;
    color: #ffd5db;
    font-weight: 900;
    font-size: 30px;
    background: rgba(255,48,79,.14);
    border: 1px solid rgba(255,48,79,.32);
}

.status-icon.ok {
    color: #baffcf;
    background: rgba(34,197,94,.14);
    border-color: rgba(34,197,94,.32);
}

.download-status-card h1 {
    margin: 0 0 12px;
    font-size: 28px;
}

.download-status-card p {
    margin: 0 auto 22px;
    line-height: 2;
    color: var(--text-soft);
}

.mock-download-info {
    display: grid;
    gap: 10px;
    text-align: right;
    margin: 20px 0;
}

.mock-download-info div {
    padding: 13px;
    border-radius: 16px;
    background: rgba(0,0,0,.18);
    border: 1px solid rgba(255,255,255,.09);
}

.mock-download-info span {
    display: block;
    color: var(--text-soft);
    font-size: 12px;
    margin-bottom: 6px;
}

.mock-download-info strong {
    display: block;
    overflow-wrap: anywhere;
}
.movie-private-note {
    margin: 0 30px 30px;
    padding: 0;
}

.movie-private-note .section-mini-head {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.11);
}

.movie-private-note .section-mini-head::before {
    content: "✎";
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(47,123,255,.16);
    color: #9cc7ff;
}

.movie-private-note .section-mini-head h3 {
    font-size: 15px;
    margin: 0;
}

.movie-private-note .section-mini-head p {
    display: none;
}

.movie-private-note form {
    padding: 15px;
    border-radius: 22px;
    background: rgba(0,0,0,.13);
    border: 1px dashed rgba(255,255,255,.13);
}

.movie-private-note textarea {
    min-height: 74px;
    background: transparent;
    border: none;
    padding: 0;
    color: rgba(255,255,255,.72);
}

.movie-private-note textarea::placeholder {
    color: rgba(255,255,255,.35);
}

.movie-private-note button {
    min-height: 38px;
    margin-top: 8px;
    border-radius: 13px;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.13);
    box-shadow: none;
}
.movie-user-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0 14px;
}

.movie-action-chip {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    border-radius: 999px;
    padding: 0 14px;
    color: var(--text-main);
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.13);
    cursor: pointer;
    transition: .25s ease;
}

.movie-action-chip span {
    font-size: 18px;
}

.movie-action-chip.active.js-wishlist-toggle {
    color: #ffd5db;
    background: rgba(255,48,79,.13);
    border-color: rgba(255,48,79,.32);
    box-shadow: 0 0 22px rgba(255,48,79,.13);
}

.movie-action-chip.active.js-public-watch-toggle {
    color: #cfe5ff;
    background: rgba(47,123,255,.14);
    border-color: rgba(87,161,255,.34);
    box-shadow: 0 0 22px rgba(47,123,255,.13);
}
.comment-card-pro {
    padding: 16px;
}

.comment-user-mini {
    display: grid;
    grid-template-columns: 54px 1fr auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 13px;
}

.comment-avatar img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 18px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
}

.comment-mini-info {
    min-width: 0;
}

.comment-mini-name {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.comment-mini-name a {
    color: white;
    font-weight: 900;
}

.comment-vip-badge {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(250,204,21,.14);
    border: 1px solid rgba(250,204,21,.32);
    color: #fde68a;
    font-size: 11px;
    font-weight: 900;
}

.comment-mini-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.comment-mini-stats span {
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(0,0,0,.17);
    border: 1px solid rgba(255,255,255,.08);
    color: var(--text-soft);
    font-size: 11px;
}

.comment-date {
    color: rgba(255,255,255,.45);
    font-size: 12px;
    white-space: nowrap;
}

.comment-body-text {
    margin: 0 0 13px;
    line-height: 2;
    color: #dbe7f4;
}

.comment-reaction-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.comment-reaction-btn {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: none;
    border-radius: 999px;
    padding: 0 12px;
    color: var(--text-main);
    background: rgba(255,255,255,.075);
    border: 1px solid rgba(255,255,255,.12);
    cursor: pointer;
    transition: .25s ease;
}

.comment-reaction-btn:hover {
    background: rgba(47,123,255,.13);
    border-color: rgba(87,161,255,.28);
}

.comment-reaction-btn.active {
    color: #baffcf;
    background: rgba(34,197,94,.13);
    border-color: rgba(34,197,94,.3);
    box-shadow: 0 0 18px rgba(34,197,94,.12);
}

.comment-reaction-btn.dislike.active {
    color: #ffd5db;
    background: rgba(255,48,79,.13);
    border-color: rgba(255,48,79,.3);
    box-shadow: 0 0 18px rgba(255,48,79,.12);
}

.comment-reaction-btn:disabled {
    opacity: .55;
    cursor: wait;
}

@media (max-width: 680px) {
    .comment-user-mini {
        grid-template-columns: 46px 1fr;
    }

    .comment-date {
        grid-column: 1 / -1;
        padding-right: 58px;
    }

    .comment-avatar img {
        width: 46px;
        height: 46px;
        border-radius: 15px;
    }
}
.movie-cast-row {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 0 16px 16px;
    scrollbar-width: none;
}

.movie-cast-row::-webkit-scrollbar {
    display: none;
}

.movie-cast-card {
    flex: 0 0 132px;
    display: grid;
    gap: 8px;
    padding: 10px;
    border-radius: 20px;
    background: rgba(0,0,0,.16);
    border: 1px solid rgba(255,255,255,.09);
    transition: .25s ease;
}

.movie-cast-card:hover {
    transform: translateY(-3px);
    background: rgba(47,123,255,.13);
    border-color: rgba(87,161,255,.3);
}

.movie-cast-card img {
    width: 100%;
    height: 152px;
    object-fit: cover;
    border-radius: 16px;
    background: rgba(255,255,255,.08);
}

.movie-cast-card strong {
    color: white;
    font-size: 13px;
    line-height: 1.5;
}

.movie-cast-card span {
    color: var(--text-soft);
    font-size: 11px;
}
.director-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.director-link-list a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    color: #cfe5ff;
    background: rgba(47,123,255,.14);
    border: 1px solid rgba(87,161,255,.28);
    font-size: 13px;
    transition: .22s ease;
}

.director-link-list a:hover {
    background: rgba(255,48,79,.14);
    border-color: rgba(255,48,79,.28);
    color: #ffd5db;
}
.series-public-box {
    margin-top: 26px;
    padding: 22px;
    border-radius: 32px;
    background:
        radial-gradient(circle at top right, rgba(47,123,255,.18), transparent 34%),
        rgba(255,255,255,.075);
    border: 1px solid rgba(255,255,255,.13);
    backdrop-filter: blur(26px);
    box-shadow: 0 24px 80px rgba(0,0,0,.3);
}

.series-public-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
}

.series-public-head span {
    display: block;
    color: #79b4ff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
}

.series-public-head h2 {
    margin: 0 0 8px;
    font-size: 26px;
}

.series-public-head p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.9;
}

.series-public-counts {
    min-width: 104px;
    min-height: 86px;
    display: grid;
    place-items: center;
    text-align: center;
    border-radius: 24px;
    background: rgba(47,123,255,.13);
    border: 1px solid rgba(87,161,255,.28);
}

.series-public-counts strong {
    font-size: 30px;
}

.series-public-counts small {
    color: var(--text-soft);
    font-size: 12px;
}

.series-accordion {
    display: grid;
    gap: 14px;
}

.series-season-public {
    border-radius: 26px;
    overflow: hidden;
    background: rgba(0,0,0,.16);
    border: 1px solid rgba(255,255,255,.1);
}

.series-season-public summary {
    cursor: pointer;
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    list-style: none;
    background: rgba(255,255,255,.055);
}

.series-season-public summary::-webkit-details-marker {
    display: none;
}

.series-season-public summary div span {
    color: #ff9aaa;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.3px;
}

.series-season-public summary div strong {
    display: block;
    color: white;
    margin-top: 5px;
    font-size: 18px;
}

.series-season-public summary em {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0 11px;
    color: #cfe5ff;
    background: rgba(47,123,255,.14);
    border: 1px solid rgba(87,161,255,.26);
    font-style: normal;
    font-size: 12px;
}

.series-season-desc {
    margin: 0;
    padding: 0 18px 16px;
    color: var(--text-soft);
    line-height: 1.9;
}

.series-episodes-public {
    display: grid;
    gap: 14px;
    padding: 0 14px 14px;
}

.series-episode-public {
    padding: 15px;
    border-radius: 22px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.09);
}

.series-episode-public-top {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 12px;
    align-items: center;
}

.episode-number-badge {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: white;
    font-weight: 900;
    background: linear-gradient(135deg, rgba(47,123,255,.85), rgba(61,149,255,.5));
    box-shadow: 0 12px 30px rgba(47,123,255,.18);
}

.series-episode-public-info h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.episode-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.episode-meta-row span {
    padding: 5px 8px;
    border-radius: 999px;
    color: var(--text-soft);
    background: rgba(0,0,0,.18);
    border: 1px solid rgba(255,255,255,.08);
    font-size: 12px;
}

.episode-desc-public {
    margin: 13px 0 0;
    color: #dbe7f4;
    line-height: 1.9;
}

.episode-download-groups {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.episode-download-group {
    padding: 12px;
    border-radius: 20px;
    background: rgba(0,0,0,.14);
    border: 1px solid rgba(255,255,255,.08);
}

.episode-download-group.dubbed {
    border-color: rgba(250,204,21,.18);
    background: rgba(250,204,21,.055);
}

.episode-download-group.subtitle {
    border-color: rgba(87,161,255,.18);
    background: rgba(47,123,255,.055);
}

.episode-download-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 900;
    margin-bottom: 10px;
}

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

.episode-file-card {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255,255,255,.065);
    border: 1px solid rgba(255,255,255,.1);
}

.episode-file-main strong {
    display: block;
    color: white;
    font-size: 20px;
    margin-bottom: 5px;
    direction: ltr;
    text-align: right;
}

.episode-file-main span {
    color: var(--text-soft);
    font-size: 12px;
}

.episode-file-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.episode-copy-link-btn,
.episode-direct-download-btn {
    min-height: 40px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    color: white;
    font-weight: 900;
    transition: .22s ease;
}

.episode-copy-link-btn {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.13);
}

.episode-direct-download-btn {
    background: linear-gradient(135deg, #1f6fff, #3d95ff);
    box-shadow: 0 12px 30px rgba(47,123,255,.2);
}

.episode-copy-link-btn:hover,
.episode-direct-download-btn:hover {
    transform: translateY(-1px);
}

.episode-copy-link-btn:disabled,
.episode-direct-download-btn:disabled {
    opacity: .6;
    cursor: wait;
    transform: none;
}

.episode-no-file {
    padding: 16px;
    border-radius: 18px;
    color: var(--text-soft);
    text-align: center;
    line-height: 1.9;
    background: rgba(0,0,0,.16);
    border: 1px solid rgba(255,255,255,.08);
}

@media (max-width: 820px) {
    .series-public-head {
        display: grid;
    }

    .series-public-counts {
        width: 100%;
    }

    .episode-file-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .series-episode-public-top {
        grid-template-columns: 1fr;
    }

    .episode-number-badge {
        width: 42px;
        height: 42px;
    }

    .episode-file-actions {
        grid-template-columns: 1fr;
    }
}
.movie-user-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 18px 0 18px;
}

.movie-action-chip {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border-radius: 999px;
    padding: 0 16px;
}

.movie-action-chip span {
    min-width: 22px;
    display: inline-flex;
    justify-content: center;
    font-size: 18px;
}
.movie-popular-lists-section {
    margin-top: 28px;
    padding: 20px;
    border-radius: 32px;
    background:
        radial-gradient(circle at top right, rgba(47,123,255,.16), transparent 36%),
        rgba(255,255,255,.075);
    border: 1px solid rgba(255,255,255,.13);
    backdrop-filter: blur(26px);
    box-shadow: 0 24px 80px rgba(0,0,0,.28);
}

.movie-popular-lists-row {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 4px 2px 12px;
    scrollbar-width: none;
}

.movie-popular-lists-row::-webkit-scrollbar {
    display: none;
}

.movie-suggested-list {
    flex: 0 0 310px;
}

.movie-suggested-list .profile-list-open {
    grid-template-columns: 112px 1fr;
}

.movie-suggested-list .folder-preview {
    width: 112px;
    height: 86px;
}

@media (max-width: 640px) {
    .movie-suggested-list {
        flex-basis: 270px;
    }

    .movie-suggested-list .profile-list-open {
        grid-template-columns: 1fr;
    }

    .movie-suggested-list .folder-preview {
        width: 100%;
        height: 140px;
    }
}
.spoiler-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--text-soft);
    cursor: pointer;
    margin: 10px 0;
}

.spoiler-check input {
    display: none;
}

.spoiler-check span {
    width: 42px;
    height: 24px;
    border-radius: 999px;
    position: relative;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.16);
}

.spoiler-check span::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    top: 2px;
    right: 3px;
    border-radius: 50%;
    background: rgba(255,255,255,.75);
    transition: .22s ease;
}

.spoiler-check input:checked + span {
    background: rgba(255,48,79,.22);
    border-color: rgba(255,48,79,.38);
}

.spoiler-check input:checked + span::after {
    right: 19px;
    background: #ff8fa0;
}

.spoiler-comment {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
}

.spoiler-comment.is-blurred .spoiler-body {
    filter: blur(7px);
    user-select: none;
    pointer-events: none;
}

.spoiler-warning {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: 16px;
    background: rgba(255,48,79,.12);
    border: 1px solid rgba(255,48,79,.26);
}

.spoiler-warning strong {
    color: #ffd5db;
}

.spoiler-warning button,
.comment-reply-btn {
    min-height: 34px;
    border: none;
    border-radius: 12px;
    padding: 0 12px;
    color: white;
    cursor: pointer;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.14);
}
/* Compact suggested user lists at bottom of movie page */
.movie-bottom-suggested-lists {
    width: min(1180px, calc(100% - 28px));
    margin: 28px auto 90px;
    padding: 16px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, .13), transparent 42%),
        radial-gradient(circle at bottom left, rgba(244, 63, 94, .10), transparent 45%),
        rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow:
        0 22px 60px rgba(0, 0, 0, .22),
        inset 0 1px 0 rgba(255, 255, 255, .08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.movie-bottom-suggested-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.movie-bottom-suggested-head span {
    display: block;
    color: rgba(147, 197, 253, .9);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    margin-bottom: 5px;
}

.movie-bottom-suggested-head h2 {
    margin: 0;
    color: #fff;
    font-size: 17px;
    font-weight: 950;
}

.movie-bottom-suggested-head p {
    max-width: 420px;
    margin: 0;
    color: rgba(226, 232, 240, .62);
    font-size: 12px;
    line-height: 1.8;
}

.movie-bottom-suggested-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 8px;
    scroll-snap-type: x proximity;
}

.movie-bottom-suggested-scroll::-webkit-scrollbar {
    height: 6px;
}

.movie-bottom-suggested-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
}

.movie-mini-profile-list-card {
    flex: 0 0 245px;
    scroll-snap-align: start;
    background: transparent;
    border: none;
    box-shadow: none;
}

.movie-mini-profile-list-open {
    width: 100%;
    min-height: 108px;
    display: grid;
    grid-template-columns: 74px 1fr;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 0;
    border-radius: 22px;
    cursor: pointer;
    text-align: right;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(255,255,255,.085), rgba(255,255,255,.035)),
        rgba(9, 16, 32, .46);
    border: 1px solid rgba(255, 255, 255, .11);
    box-shadow:
        0 12px 30px rgba(0,0,0,.18),
        inset 0 1px 0 rgba(255,255,255,.08);
    transition:
        transform .18s ease,
        background .18s ease,
        border-color .18s ease;
}

.movie-mini-profile-list-open:hover {
    transform: translateY(-2px);
    background:
        linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.045)),
        rgba(9, 16, 32, .54);
    border-color: rgba(147, 197, 253, .24);
}

.movie-mini-list-posters {
    width: 74px;
    height: 90px;
    position: relative;
    border-radius: 17px;
}

.movie-mini-list-posters img {
    position: absolute;
    width: 54px;
    height: 78px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 10px 22px rgba(0,0,0,.34);
    background: rgba(255,255,255,.06);
}

.movie-mini-list-posters img:nth-child(1) {
    right: 0;
    bottom: 0;
    z-index: 3;
}

.movie-mini-list-posters img:nth-child(2) {
    right: 10px;
    bottom: 6px;
    z-index: 2;
    opacity: .78;
    transform: rotate(-6deg);
}

.movie-mini-list-posters img:nth-child(3) {
    right: 20px;
    bottom: 12px;
    z-index: 1;
    opacity: .52;
    transform: rotate(-10deg);
}

.movie-mini-list-empty {
    display: block;
    width: 58px;
    height: 82px;
    border-radius: 16px;
    background:
        radial-gradient(circle at 35% 22%, rgba(255,255,255,.16), transparent 34%),
        rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.13);
}

.movie-mini-list-info {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.movie-mini-list-info strong {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 950;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-mini-list-info span {
    display: block;
    color: rgba(226, 232, 240, .68);
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-mini-list-info span a {
    color: rgba(147, 197, 253, .95);
    text-decoration: none;
}

.movie-mini-list-info small {
    display: block;
    color: rgba(226, 232, 240, .48);
    font-size: 10.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 720px) {
    .movie-bottom-suggested-lists {
        width: calc(100% - 20px);
        margin: 22px auto 86px;
        padding: 13px;
        border-radius: 24px;
    }

    .movie-bottom-suggested-head {
        display: block;
    }

    .movie-bottom-suggested-head h2 {
        font-size: 15px;
    }

    .movie-bottom-suggested-head p {
        margin-top: 6px;
        font-size: 11px;
    }

    .movie-mini-profile-list-card {
        flex-basis: 220px;
    }

    .movie-mini-profile-list-open {
        grid-template-columns: 66px 1fr;
        min-height: 98px;
        border-radius: 20px;
    }

    .movie-mini-list-posters {
        width: 66px;
        height: 82px;
    }

    .movie-mini-list-posters img {
        width: 48px;
        height: 70px;
        border-radius: 13px;
    }
}
/* FilmParty comments readability fix */
.comment-card-pro {
    padding: 16px !important;
}

.comment-card-pro > p {
    margin: 14px 0 0 !important;
    padding: 13px 14px !important;
    border-radius: 18px;
    color: rgba(241, 245, 249, .88);
    font-size: 13px;
    line-height: 2.05;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,.07), transparent 40%),
        rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.07);
}

.spoiler-comment {
    margin-top: 14px;
    padding: 13px 14px;
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(244,63,94,.12), transparent 42%),
        rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.08);
}

.spoiler-body {
    color: rgba(241,245,249,.90);
    font-size: 13px;
    line-height: 2.05;
}

.spoiler-comment.is-blurred .spoiler-body {
    filter: blur(6px);
    user-select: none;
    pointer-events: none;
}

.spoiler-warning {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 16px;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,.12), transparent 36%),
        rgba(15,23,42,.72);
    border: 1px solid rgba(255,255,255,.10);
}

.spoiler-warning strong {
    color: rgba(255,255,255,.92);
    font-size: 12px;
    font-weight: 950;
}

.spoiler-warning button {
    min-height: 34px;
    padding: 0 14px;
    border-radius: 13px;
    border: 1px solid rgba(255,255,255,.13);
    cursor: pointer;
    color: #fff;
    font-size: 12px;
    font-weight: 950;
    background:
        linear-gradient(135deg, rgba(37,99,235,.55), rgba(244,63,94,.30)),
        rgba(255,255,255,.07);
}

.spoiler-comment.spoiler-visible {
    background:
        radial-gradient(circle at top right, rgba(59,130,246,.10), transparent 42%),
        rgba(255,255,255,.035);
}

.spoiler-comment.spoiler-visible .spoiler-warning {
    display: none !important;
}

.spoiler-comment.spoiler-visible .spoiler-body {
    filter: none !important;
    user-select: text;
    pointer-events: auto;
}

.comment-reaction-row {
    margin-top: 13px;
}

@media (max-width: 620px) {
    .comment-card-pro {
        padding: 13px !important;
    }

    .comment-card-pro > p,
    .spoiler-comment {
        padding: 12px !important;
        border-radius: 16px;
    }

    .spoiler-warning {
        align-items: stretch;
        flex-direction: column;
    }

    .spoiler-warning button {
        width: 100%;
    }
}

/* FilmParty threaded comments */
.comment-reply-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 12px;
    padding: 11px 12px;
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(59,130,246,.16), transparent 42%),
        radial-gradient(circle at bottom left, rgba(244,63,94,.10), transparent 44%),
        rgba(255,255,255,.055);
    border: 1px solid rgba(147,197,253,.16);
    box-shadow:
        0 12px 28px rgba(0,0,0,.16),
        inset 0 1px 0 rgba(255,255,255,.08);
}

.comment-reply-notice.hidden {
    display: none !important;
}

.comment-reply-notice span {
    display: block;
    margin-bottom: 2px;
    color: rgba(226,232,240,.62);
    font-size: 11px;
    font-weight: 800;
}

.comment-reply-notice strong {
    display: block;
    color: rgba(255,255,255,.95);
    font-size: 13px;
    font-weight: 950;
}

.comment-reply-notice button {
    min-height: 34px;
    padding: 0 13px;
    border-radius: 13px;
    cursor: pointer;
    color: rgba(255,255,255,.9);
    font-size: 12px;
    font-weight: 950;
    background: rgba(255,255,255,.075);
    border: 1px solid rgba(255,255,255,.13);
}

.comment-replies {
    position: relative;
    display: grid;
    gap: 12px;
    margin-top: 14px;
    margin-right: 28px;
    padding-right: 18px;
}

.comment-replies::before {
    content: "";
    position: absolute;
    top: 4px;
    right: 0;
    width: 2px;
    height: calc(100% - 8px);
    border-radius: 999px;
    background:
        linear-gradient(
            to bottom,
            rgba(59,130,246,.45),
            rgba(244,63,94,.20),
            rgba(255,255,255,.04)
        );
}

.comment-reply-card {
    margin: 0 !important;
    background:
        radial-gradient(circle at top right, rgba(59,130,246,.10), transparent 40%),
        rgba(255,255,255,.035) !important;
    border-color: rgba(147,197,253,.12) !important;
}

.comment-reply-chip {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 0 8px;
    margin-right: 6px;
    border-radius: 999px;
    color: rgba(191,219,254,.95);
    font-size: 10px;
    font-weight: 950;
    background: rgba(59,130,246,.14);
    border: 1px solid rgba(147,197,253,.18);
}

.comment-form textarea:focus {
    border-color: rgba(147,197,253,.30);
    box-shadow:
        0 0 0 4px rgba(59,130,246,.10),
        inset 0 1px 0 rgba(255,255,255,.08);
}

@media (max-width: 620px) {
    .comment-reply-notice {
        align-items: stretch;
        flex-direction: column;
    }

    .comment-reply-notice button {
        width: 100%;
    }

    .comment-replies {
        margin-right: 10px;
        padding-right: 12px;
    }
}
/* FilmParty premium comment like/dislike hand buttons */
.comment-reaction-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 14px;
}

.comment-reaction-btn {
    position: relative;
    min-width: 58px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 12px;
    border-radius: 16px;
    cursor: pointer;
    color: rgba(226, 232, 240, .82);
    font-size: 12px;
    font-weight: 950;
    border: 1px solid rgba(255,255,255,.11);
    background:
        radial-gradient(circle at top right, rgba(255,255,255,.09), transparent 38%),
        rgba(255,255,255,.055);
    box-shadow:
        0 10px 24px rgba(0,0,0,.14),
        inset 0 1px 0 rgba(255,255,255,.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease,
        color .18s ease,
        box-shadow .18s ease;
}

.comment-reaction-btn:hover {
    transform: translateY(-1px);
    color: #fff;
    border-color: rgba(255,255,255,.18);
    background:
        radial-gradient(circle at top right, rgba(255,255,255,.14), transparent 40%),
        rgba(255,255,255,.075);
}

.comment-reaction-btn:active {
    transform: translateY(0) scale(.97);
}

.comment-hand-icon {
    width: 21px;
    height: 21px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
}

.comment-hand-icon svg {
    width: 21px;
    height: 21px;
    overflow: visible;
    fill: none;
}

.comment-hand-icon svg path {
    fill: rgba(226,232,240,.15);
    stroke: currentColor;
    stroke-width: 3.2;
    stroke-linejoin: round;
    stroke-linecap: round;
    transition:
        fill .18s ease,
        stroke .18s ease,
        filter .18s ease,
        transform .18s ease;
}

.comment-hand-icon svg .shine {
    fill: none;
    stroke: rgba(255,255,255,.52);
    stroke-width: 2.2;
    opacity: .72;
}

.comment-hand-icon.dislike {
    transform: rotate(180deg);
}

.comment-like-btn:hover {
    color: rgba(96,165,250,.98);
    border-color: rgba(96,165,250,.28);
    box-shadow:
        0 12px 26px rgba(37,99,235,.14),
        inset 0 1px 0 rgba(255,255,255,.09);
}

.comment-dislike-btn:hover {
    color: rgba(251,113,133,.98);
    border-color: rgba(251,113,133,.28);
    box-shadow:
        0 12px 26px rgba(244,63,94,.13),
        inset 0 1px 0 rgba(255,255,255,.09);
}

.comment-like-btn.active {
    color: #fff;
    border-color: rgba(96,165,250,.45);
    background:
        radial-gradient(circle at 28% 18%, rgba(255,255,255,.18), transparent 32%),
        linear-gradient(135deg, rgba(37,99,235,.86), rgba(96,165,250,.34)),
        rgba(255,255,255,.07);
    box-shadow:
        0 14px 32px rgba(37,99,235,.22),
        inset 0 1px 0 rgba(255,255,255,.16);
}

.comment-like-btn.active .comment-hand-icon svg path:not(.shine) {
    fill: rgba(96,165,250,.32);
    stroke: #fff;
    filter: drop-shadow(0 0 8px rgba(96,165,250,.55));
}

.comment-dislike-btn.active {
    color: #fff;
    border-color: rgba(251,113,133,.46);
    background:
        radial-gradient(circle at 28% 18%, rgba(255,255,255,.18), transparent 32%),
        linear-gradient(135deg, rgba(244,63,94,.82), rgba(190,18,60,.36)),
        rgba(255,255,255,.07);
    box-shadow:
        0 14px 32px rgba(244,63,94,.22),
        inset 0 1px 0 rgba(255,255,255,.16);
}

.comment-dislike-btn.active .comment-hand-icon svg path:not(.shine) {
    fill: rgba(251,113,133,.32);
    stroke: #fff;
    filter: drop-shadow(0 0 8px rgba(251,113,133,.52));
}

.comment-reaction-btn .js-comment-likes,
.comment-reaction-btn .js-comment-dislikes {
    min-width: 12px;
    text-align: center;
    line-height: 1;
}

.comment-reply-btn {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 16px;
    color: rgba(226,232,240,.86);
    font-size: 12px;
    font-weight: 950;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,.11);
    background:
        radial-gradient(circle at top right, rgba(255,255,255,.09), transparent 38%),
        rgba(255,255,255,.055);
    box-shadow:
        0 10px 24px rgba(0,0,0,.14),
        inset 0 1px 0 rgba(255,255,255,.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.comment-reply-btn:hover {
    color: #fff;
    border-color: rgba(147,197,253,.24);
    background:
        radial-gradient(circle at top right, rgba(59,130,246,.14), transparent 38%),
        rgba(255,255,255,.075);
}

@media (max-width: 620px) {
    .comment-reaction-row {
        gap: 8px;
    }

    .comment-reaction-btn {
        min-width: 54px;
        height: 38px;
        border-radius: 15px;
        padding: 0 10px;
    }

    .comment-hand-icon,
    .comment-hand-icon svg {
        width: 20px;
        height: 20px;
    }

    .comment-reply-btn {
        min-height: 38px;
        padding: 0 12px;
    }
}

/* FilmParty movie top actions reposition */
.movie-user-actions-centered {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 22px auto 8px;
    padding: 0 12px;
}

.movie-user-actions-centered .movie-user-actions {
    width: min(760px, 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.movie-user-actions-centered .movie-action-chip {
    min-height: 46px;
    justify-content: center;
    border-radius: 18px;
    padding: 0 16px;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,.12), transparent 38%),
        rgba(255,255,255,.065);
    border: 1px solid rgba(255,255,255,.13);
    box-shadow:
        0 14px 34px rgba(0,0,0,.18),
        inset 0 1px 0 rgba(255,255,255,.08);
}

.movie-user-actions-centered .movie-action-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(147,197,253,.28);
    background:
        radial-gradient(circle at top right, rgba(59,130,246,.16), transparent 42%),
        radial-gradient(circle at bottom left, rgba(244,63,94,.10), transparent 42%),
        rgba(255,255,255,.08);
}

.movie-user-actions-centered .movie-chip-icon {
    flex: 0 0 auto;
}

/* Poster should sit a little lower, closer to the title/meta visual line */
.movie-main-info .movie-poster-large {
    margin-top: clamp(18px, 2.4vw, 42px);
}

@media (max-width: 760px) {
    .movie-user-actions-centered {
        margin-top: 18px;
        padding: 0;
    }

    .movie-user-actions-centered .movie-user-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .movie-user-actions-centered .movie-action-chip {
        width: 100%;
        min-height: 44px;
    }

    .movie-main-info .movie-poster-large {
        margin-top: 0;
    }
}

/* FilmParty movie header actions - centered after description */
.movie-user-actions-centered {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 24px auto 10px;
    padding: 0 12px;
}

.movie-user-actions-centered .movie-user-actions {
    width: min(820px, 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.movie-user-actions-centered .movie-action-chip {
    min-height: 46px;
    min-width: 190px;
    justify-content: center;
    border-radius: 18px;
    padding: 0 17px;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,.12), transparent 38%),
        radial-gradient(circle at bottom left, rgba(59,130,246,.10), transparent 42%),
        rgba(255,255,255,.065);
    border: 1px solid rgba(255,255,255,.13);
    box-shadow:
        0 14px 34px rgba(0,0,0,.18),
        inset 0 1px 0 rgba(255,255,255,.08);
}

.movie-user-actions-centered .movie-action-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(147,197,253,.28);
    background:
        radial-gradient(circle at top right, rgba(59,130,246,.16), transparent 42%),
        radial-gradient(circle at bottom left, rgba(244,63,94,.10), transparent 42%),
        rgba(255,255,255,.08);
}

.movie-user-actions-centered .movie-chip-icon {
    flex: 0 0 auto;
}

/* Pull poster slightly lower to visually align with title/meta/content */
.movie-main-info .movie-poster-large {
    margin-top: clamp(22px, 3vw, 46px) !important;
}

@media (max-width: 860px) {
    .movie-user-actions-centered {
        margin-top: 18px;
        padding: 0;
    }

    .movie-user-actions-centered .movie-user-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .movie-user-actions-centered .movie-action-chip {
        width: 100%;
        min-width: 0;
        min-height: 44px;
    }

    .movie-main-info .movie-poster-large {
        margin-top: 0 !important;
    }
}

/* FilmParty final movie description + compact top actions */
.movie-description-centered {
    width: min(880px, 100%);
    margin: 22px auto 0;
    padding: 0 14px;
}

.movie-description-centered .movie-description {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    line-height: 2.05;
    color: rgba(226,232,240,.86);
}

.movie-user-actions-centered.fp-movie-actions-final {
    width: 100%;
    display: flex !important;
    justify-content: center !important;
    margin: 20px auto 12px !important;
    padding: 0 12px !important;
}

.movie-user-actions-centered.fp-movie-actions-final .movie-user-actions {
    width: auto !important;
    max-width: 560px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 11px !important;
}

.movie-user-actions-centered.fp-movie-actions-final .movie-user-actions > button,
.movie-user-actions-centered.fp-movie-actions-final .movie-user-actions > a,
.movie-user-actions-centered.fp-movie-actions-final .movie-action-chip {
    width: 132px !important;
    min-width: 0 !important;
    max-width: 132px !important;
    height: 82px !important;
    min-height: 82px !important;
    padding: 9px 8px !important;
    border-radius: 22px !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    text-align: center !important;
    line-height: 1.45 !important;
    white-space: normal !important;
    color: rgba(255,255,255,.92) !important;
    font-size: 11.5px !important;
    font-weight: 950 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    background:
        radial-gradient(circle at 24% 14%, rgba(255,255,255,.16), transparent 31%),
        radial-gradient(circle at 100% 0%, rgba(59,130,246,.15), transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(244,63,94,.10), transparent 42%),
        rgba(255,255,255,.06) !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    box-shadow:
        0 16px 34px rgba(0,0,0,.18),
        inset 0 1px 0 rgba(255,255,255,.10) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease !important;
}

.movie-user-actions-centered.fp-movie-actions-final .movie-user-actions > button:hover,
.movie-user-actions-centered.fp-movie-actions-final .movie-user-actions > a:hover,
.movie-user-actions-centered.fp-movie-actions-final .movie-action-chip:hover {
    transform: translateY(-2px) !important;
    border-color: rgba(147,197,253,.34) !important;
    background:
        radial-gradient(circle at 24% 14%, rgba(255,255,255,.20), transparent 31%),
        radial-gradient(circle at 100% 0%, rgba(59,130,246,.22), transparent 42%),
        radial-gradient(circle at 0% 100%, rgba(244,63,94,.15), transparent 44%),
        rgba(255,255,255,.085) !important;
    box-shadow:
        0 20px 42px rgba(0,0,0,.22),
        0 0 22px rgba(59,130,246,.08),
        inset 0 1px 0 rgba(255,255,255,.13) !important;
}

.movie-user-actions-centered.fp-movie-actions-final .movie-chip-icon,
.movie-user-actions-centered.fp-movie-actions-final i {
    width: 26px !important;
    height: 26px !important;
    display: inline-grid !important;
    place-items: center !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
}

.movie-user-actions-centered.fp-movie-actions-final .movie-chip-icon i {
    width: 20px !important;
    height: 20px !important;
}

.movie-user-actions-centered.fp-movie-actions-final .movie-user-actions > button:nth-child(1),
.movie-user-actions-centered.fp-movie-actions-final .movie-user-actions > a:nth-child(1) {
    border-color: rgba(251,113,133,.20) !important;
}

.movie-user-actions-centered.fp-movie-actions-final .movie-user-actions > button:nth-child(2),
.movie-user-actions-centered.fp-movie-actions-final .movie-user-actions > a:nth-child(2) {
    border-color: rgba(147,197,253,.22) !important;
}

.movie-user-actions-centered.fp-movie-actions-final .movie-user-actions > button:nth-child(3),
.movie-user-actions-centered.fp-movie-actions-final .movie-user-actions > a:nth-child(3) {
    border-color: rgba(125,211,252,.22) !important;
}

/* Poster only slightly lower on desktop */
.movie-main-info .movie-poster-large {
    margin-top: clamp(18px, 2.4vw, 40px) !important;
}

@media (max-width: 760px) {
    .movie-description-centered {
        margin-top: 18px;
        padding: 0 4px;
    }

    .movie-description-centered .movie-description {
        text-align: center;
        line-height: 1.95;
        font-size: 13px;
    }

    .movie-user-actions-centered.fp-movie-actions-final {
        margin-top: 16px !important;
        padding: 0 2px !important;
    }

    .movie-user-actions-centered.fp-movie-actions-final .movie-user-actions {
        width: 100% !important;
        max-width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .movie-user-actions-centered.fp-movie-actions-final .movie-user-actions > button,
    .movie-user-actions-centered.fp-movie-actions-final .movie-user-actions > a,
    .movie-user-actions-centered.fp-movie-actions-final .movie-action-chip {
        width: 100% !important;
        max-width: none !important;
        height: 76px !important;
        min-height: 76px !important;
        padding: 8px 5px !important;
        border-radius: 19px !important;
        font-size: 10.5px !important;
    }

    .movie-main-info .movie-poster-large {
        margin-top: 0 !important;
    }
}
/* FilmParty final poster vertical drop only */
.movie-main-info {
    padding-bottom: clamp(130px, 14vw, 240px) !important;
}

.movie-main-info .movie-poster-large {
    margin-top: 0 !important;
    transform: translateY(50%) !important;
    will-change: transform;
}

@media (max-width: 760px) {
    .movie-main-info {
        padding-bottom: 110px !important;
    }

    .movie-main-info .movie-poster-large {
        margin-top: 0 !important;
        transform: translateY(32%) !important;
    }
}

/* FilmParty final movie header tuning */
.movie-type-pill {
    display: none !important;
}

/* Less empty vertical space between top content and centered description */
.movie-main-info {
    padding-bottom: clamp(82px, 9vw, 155px) !important;
}

.movie-description-centered {
    margin-top: 10px !important;
}

.movie-description-centered .movie-description {
    margin-top: 0 !important;
}

/* Keep same style/position, only make the 3 top action buttons ~10% smaller */
.movie-user-actions-centered.fp-movie-actions-final {
    margin-top: 16px !important;
}

.movie-user-actions-centered.fp-movie-actions-final .movie-user-actions {
    gap: 9px !important;
}

.movie-user-actions-centered.fp-movie-actions-final .movie-user-actions > button,
.movie-user-actions-centered.fp-movie-actions-final .movie-user-actions > a,
.movie-user-actions-centered.fp-movie-actions-final .movie-action-chip {
    width: 119px !important;
    max-width: 119px !important;
    height: 74px !important;
    min-height: 74px !important;
    padding: 8px 7px !important;
    border-radius: 20px !important;
    gap: 6px !important;
    font-size: 10.4px !important;
}

.movie-user-actions-centered.fp-movie-actions-final .movie-chip-icon,
.movie-user-actions-centered.fp-movie-actions-final i {
    width: 23px !important;
    height: 23px !important;
}

.movie-user-actions-centered.fp-movie-actions-final .movie-chip-icon i {
    width: 18px !important;
    height: 18px !important;
}

@media (max-width: 760px) {
    .movie-main-info {
        padding-bottom: 76px !important;
    }

    .movie-description-centered {
        margin-top: 8px !important;
    }

    .movie-user-actions-centered.fp-movie-actions-final {
        margin-top: 14px !important;
    }

    .movie-user-actions-centered.fp-movie-actions-final .movie-user-actions {
        gap: 7px !important;
    }

    .movie-user-actions-centered.fp-movie-actions-final .movie-user-actions > button,
    .movie-user-actions-centered.fp-movie-actions-final .movie-user-actions > a,
    .movie-user-actions-centered.fp-movie-actions-final .movie-action-chip {
        height: 68px !important;
        min-height: 68px !important;
        padding: 7px 4px !important;
        border-radius: 18px !important;
        font-size: 9.6px !important;
    }

    .movie-user-actions-centered.fp-movie-actions-final .movie-chip-icon,
    .movie-user-actions-centered.fp-movie-actions-final i {
        width: 21px !important;
        height: 21px !important;
    }

    .movie-user-actions-centered.fp-movie-actions-final .movie-chip-icon i {
        width: 17px !important;
        height: 17px !important;
    }
}
/* FilmParty final download page edge spacing fix */

/* دکمه‌های سه‌تایی: فقط کمی باریک‌تر و دورتر از لبه‌ها */
.movie-user-actions-centered.fp-movie-actions-final {
    padding-inline: 24px !important;
    box-sizing: border-box !important;
}

.movie-user-actions-centered.fp-movie-actions-final .movie-user-actions {
    width: auto !important;
    max-width: calc(100% - 28px) !important;
    justify-content: center !important;
    gap: 10px !important;
}

.movie-user-actions-centered.fp-movie-actions-final .movie-user-actions > button,
.movie-user-actions-centered.fp-movie-actions-final .movie-user-actions > a,
.movie-user-actions-centered.fp-movie-actions-final .movie-action-chip {
    width: 108px !important;
    max-width: 108px !important;
}

/* خلاصه داستان: متن‌های طولانی از لبه‌ها فاصله بگیرند */
.movie-description-centered {
    width: min(760px, calc(100% - 36px)) !important;
    max-width: calc(100% - 36px) !important;
    padding-inline: 0 !important;
    box-sizing: border-box !important;
}

.movie-description-centered .movie-description {
    max-width: 720px !important;
    padding-inline: 14px !important;
    box-sizing: border-box !important;
    overflow-wrap: anywhere;
}

/* موبایل */
@media (max-width: 760px) {
    .movie-user-actions-centered.fp-movie-actions-final {
        padding-inline: 14px !important;
    }

    .movie-user-actions-centered.fp-movie-actions-final .movie-user-actions {
        width: auto !important;
        max-width: 100% !important;
        grid-template-columns: repeat(3, minmax(0, 92px)) !important;
        justify-content: center !important;
        gap: 7px !important;
    }

    .movie-user-actions-centered.fp-movie-actions-final .movie-user-actions > button,
    .movie-user-actions-centered.fp-movie-actions-final .movie-user-actions > a,
    .movie-user-actions-centered.fp-movie-actions-final .movie-action-chip {
        width: 92px !important;
        max-width: 92px !important;
    }

    .movie-description-centered {
        width: min(100%, calc(100% - 28px)) !important;
        max-width: calc(100% - 28px) !important;
    }

    .movie-description-centered .movie-description {
        padding-inline: 10px !important;
    }
}

/* گوشی‌های خیلی باریک */
@media (max-width: 360px) {
    .movie-user-actions-centered.fp-movie-actions-final .movie-user-actions {
        grid-template-columns: repeat(3, minmax(0, 86px)) !important;
        gap: 6px !important;
    }

    .movie-user-actions-centered.fp-movie-actions-final .movie-user-actions > button,
    .movie-user-actions-centered.fp-movie-actions-final .movie-user-actions > a,
    .movie-user-actions-centered.fp-movie-actions-final .movie-action-chip {
        width: 86px !important;
        max-width: 86px !important;
    }
}
/* FilmParty final movie action size balance + custom icons */

/* دکمه‌ها: نصف مقدار فشرده‌سازی قبلی؛ کمی پهن‌تر و نفس‌دارتر */
.movie-user-actions-centered.fp-movie-actions-final {
    padding-inline: 18px !important;
}

.movie-user-actions-centered.fp-movie-actions-final .movie-user-actions {
    max-width: calc(100% - 18px) !important;
    gap: 9px !important;
}

.movie-user-actions-centered.fp-movie-actions-final .movie-user-actions > button,
.movie-user-actions-centered.fp-movie-actions-final .movie-user-actions > a,
.movie-user-actions-centered.fp-movie-actions-final .movie-action-chip {
    width: 114px !important;
    max-width: 114px !important;
}

/* موبایل: نه چسبیده به لبه، نه زیادی فشرده */
@media (max-width: 760px) {
    .movie-user-actions-centered.fp-movie-actions-final {
        padding-inline: 10px !important;
    }

    .movie-user-actions-centered.fp-movie-actions-final .movie-user-actions {
        grid-template-columns: repeat(3, minmax(0, 98px)) !important;
        justify-content: center !important;
        gap: 7px !important;
    }

    .movie-user-actions-centered.fp-movie-actions-final .movie-user-actions > button,
    .movie-user-actions-centered.fp-movie-actions-final .movie-user-actions > a,
    .movie-user-actions-centered.fp-movie-actions-final .movie-action-chip {
        width: 98px !important;
        max-width: 98px !important;
    }
}

@media (max-width: 360px) {
    .movie-user-actions-centered.fp-movie-actions-final .movie-user-actions {
        grid-template-columns: repeat(3, minmax(0, 92px)) !important;
        gap: 6px !important;
    }

    .movie-user-actions-centered.fp-movie-actions-final .movie-user-actions > button,
    .movie-user-actions-centered.fp-movie-actions-final .movie-user-actions > a,
    .movie-user-actions-centered.fp-movie-actions-final .movie-action-chip {
        width: 92px !important;
        max-width: 92px !important;
    }
}

/* قلب اختصاصی حرفه‌ای برای افزودن به لیست دلخواه */
.movie-action-chip.js-wishlist-toggle .movie-chip-icon {
    position: relative !important;
    width: 28px !important;
    height: 28px !important;
    display: inline-grid !important;
    place-items: center !important;
    border-radius: 999px !important;
    background:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,.28), transparent 35%),
        radial-gradient(circle at 70% 85%, rgba(244,63,94,.20), transparent 45%),
        rgba(255,255,255,.075) !important;
    border: 1px solid rgba(251,113,133,.22) !important;
    box-shadow:
        0 8px 18px rgba(244,63,94,.15),
        inset 0 1px 0 rgba(255,255,255,.14) !important;
    overflow: visible !important;
}

.movie-action-chip.js-wishlist-toggle .movie-chip-icon i {
    display: none !important;
}

.movie-action-chip.js-wishlist-toggle .movie-chip-icon::before,
.movie-action-chip.js-wishlist-toggle .movie-chip-icon::after {
    content: "";
    position: absolute;
    width: 11px;
    height: 17px;
    top: 7px;
    border-radius: 999px 999px 0 0;
    background:
        linear-gradient(145deg, #fff 0%, #fecdd3 20%, #fb7185 58%, #be123c 100%);
    box-shadow:
        0 0 10px rgba(251,113,133,.42),
        inset 0 1px 0 rgba(255,255,255,.35);
    transform-origin: 50% 100%;
}

.movie-action-chip.js-wishlist-toggle .movie-chip-icon::before {
    left: 7px;
    transform: rotate(-45deg);
}

.movie-action-chip.js-wishlist-toggle .movie-chip-icon::after {
    right: 7px;
    transform: rotate(45deg);
}

.movie-action-chip.js-wishlist-toggle:hover .movie-chip-icon {
    border-color: rgba(251,113,133,.38) !important;
    box-shadow:
        0 10px 22px rgba(244,63,94,.22),
        0 0 18px rgba(251,113,133,.12),
        inset 0 1px 0 rgba(255,255,255,.18) !important;
}

.movie-action-chip.js-wishlist-toggle:hover .movie-chip-icon::before,
.movie-action-chip.js-wishlist-toggle:hover .movie-chip-icon::after {
    filter: drop-shadow(0 0 7px rgba(251,113,133,.44));
}

.movie-action-chip.js-wishlist-toggle.active .movie-chip-icon,
.movie-action-chip.js-wishlist-toggle.is-active .movie-chip-icon {
    background:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,.32), transparent 35%),
        linear-gradient(145deg, rgba(244,63,94,.34), rgba(190,18,60,.18)),
        rgba(255,255,255,.09) !important;
    border-color: rgba(251,113,133,.46) !important;
}

/* حذف فلش/مارکر پیش‌فرض details و جایگزینی با نماد کاستوم */
.glass-details > summary {
    position: relative;
    list-style: none !important;
    cursor: pointer;
    padding-left: 54px !important;
}

.glass-details > summary::-webkit-details-marker {
    display: none !important;
}

.glass-details > summary::marker {
    content: "" !important;
}

.glass-details > summary::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 50%;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    transform: translateY(-50%);
    background:
        radial-gradient(circle at 32% 22%, rgba(255,255,255,.24), transparent 34%),
        radial-gradient(circle at 80% 100%, rgba(59,130,246,.18), transparent 44%),
        rgba(255,255,255,.065);
    border: 1px solid rgba(147,197,253,.18);
    box-shadow:
        0 10px 20px rgba(0,0,0,.18),
        inset 0 1px 0 rgba(255,255,255,.12);
}

.glass-details > summary::after {
    content: "";
    position: absolute;
    left: 26px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-left: 2px solid rgba(255,255,255,.88);
    border-bottom: 2px solid rgba(255,255,255,.88);
    transform: translateY(-63%) rotate(-45deg);
    transform-origin: center;
    filter: drop-shadow(0 0 5px rgba(96,165,250,.35));
    transition:
        transform .22s ease,
        border-color .22s ease,
        filter .22s ease;
}

.glass-details[open] > summary::after {
    transform: translateY(-35%) rotate(135deg);
    border-color: rgba(191,219,254,.96);
    filter: drop-shadow(0 0 7px rgba(96,165,250,.48));
}

.glass-details > summary:hover::before {
    border-color: rgba(147,197,253,.32);
    background:
        radial-gradient(circle at 32% 22%, rgba(255,255,255,.30), transparent 34%),
        radial-gradient(circle at 80% 100%, rgba(59,130,246,.26), transparent 44%),
        rgba(255,255,255,.085);
}

/* موبایل: فلش‌ها جمع‌وجورتر */
@media (max-width: 760px) {
    .glass-details > summary {
        padding-left: 48px !important;
    }

    .glass-details > summary::before {
        left: 13px;
        width: 26px;
        height: 26px;
    }

    .glass-details > summary::after {
        left: 22.5px;
    }
}

/* FilmParty inline private movie note chip */
.movie-private-note-chip-shell {
    width: min(760px, calc(100% - 34px));
    margin: 18px auto 6px;
    display: grid;
    gap: 7px;
    justify-items: center;
}

.movie-private-note-chip {
    width: min(560px, 100%);
    min-height: 46px;
    max-height: 128px;
    overflow-y: auto;
    padding: 13px 18px;
    border-radius: 999px;
    outline: none;
    direction: rtl;
    text-align: center;
    line-height: 1.9;
    color: rgba(255,255,255,.92);
    font-size: 13px;
    font-weight: 850;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    background:
        radial-gradient(circle at 18% 18%, rgba(255,255,255,.16), transparent 34%),
        radial-gradient(circle at 100% 0%, rgba(59,130,246,.16), transparent 42%),
        radial-gradient(circle at 0% 100%, rgba(244,63,94,.10), transparent 42%),
        rgba(255,255,255,.062);
    border: 1px solid rgba(255,255,255,.14);
    box-shadow:
        0 16px 34px rgba(0,0,0,.18),
        inset 0 1px 0 rgba(255,255,255,.10);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition:
        width .2s ease,
        border-radius .2s ease,
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.movie-private-note-chip:empty::before {
    content: attr(data-placeholder);
    color: rgba(226,232,240,.72);
}

.movie-private-note-chip:not(.has-note):focus::before {
    content: "";
}

.movie-private-note-chip.is-editing,
.movie-private-note-chip.has-note {
    border-radius: 24px;
}

.movie-private-note-chip.is-editing {
    width: min(640px, 100%);
    text-align: right;
    border-color: rgba(147,197,253,.30);
    background:
        radial-gradient(circle at 18% 18%, rgba(255,255,255,.18), transparent 34%),
        radial-gradient(circle at 100% 0%, rgba(59,130,246,.20), transparent 42%),
        radial-gradient(circle at 0% 100%, rgba(244,63,94,.12), transparent 42%),
        rgba(255,255,255,.078);
    box-shadow:
        0 18px 40px rgba(0,0,0,.22),
        0 0 22px rgba(59,130,246,.08),
        inset 0 1px 0 rgba(255,255,255,.14);
}

.movie-private-note-chip.is-limit {
    border-color: rgba(251,113,133,.36);
}

.movie-private-note-chip::-webkit-scrollbar {
    width: 4px;
}

.movie-private-note-chip::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(147,197,253,.28);
}

.movie-private-note-meta {
    width: min(560px, 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 18px;
    color: rgba(226,232,240,.46);
    font-size: 10.5px;
    font-weight: 800;
}

.movie-private-note-meta b {
    direction: ltr;
    color: rgba(191,219,254,.62);
    font-size: 10px;
    font-weight: 900;
}

#moviePrivateNoteStatus[data-mode="saving"],
#moviePrivateNoteStatus[data-mode="typing"] {
    color: rgba(191,219,254,.9);
}

#moviePrivateNoteStatus[data-mode="saved"] {
    color: rgba(134,239,172,.9);
}

#moviePrivateNoteStatus[data-mode="warn"],
#moviePrivateNoteStatus[data-mode="error"] {
    color: rgba(251,113,133,.92);
}

@media (max-width: 760px) {
    .movie-private-note-chip-shell {
        width: calc(100% - 28px);
        margin-top: 15px;
    }

    .movie-private-note-chip {
        min-height: 44px;
        max-height: 118px;
        padding: 12px 14px;
        font-size: 12.5px;
    }

    .movie-private-note-meta {
        width: 100%;
        font-size: 10px;
    }
}

/* FilmParty private note chip position above download links */
.movie-private-note-chip-shell {
    margin: 12px auto 18px !important;
}

.movie-user-actions-centered.fp-movie-actions-final + .movie-private-note-chip-shell {
    margin-top: 10px !important;
}

.movie-private-note-chip-shell + .movie-accordion-zone {
    margin-top: 14px !important;
}

@media (max-width: 760px) {
    .movie-private-note-chip-shell {
        margin: 10px auto 16px !important;
    }

    .movie-private-note-chip-shell + .movie-accordion-zone {
        margin-top: 12px !important;
    }
}
/* FilmParty final movie top spacing + poster vertical correction */

/* فاصله خالی بین محتوای بالا و خلاصه داستان کمتر شود */
.movie-main-info {
    padding-bottom: clamp(56px, 6.5vw, 112px) !important;
}

.movie-description-centered {
    margin-top: 0 !important;
}

/* پوستر فقط عمودی ۱۵ درصد بالاتر بیاید؛ بدون حرکت چپ/راست */
.movie-main-info .movie-poster-large {
    margin-top: 0 !important;
    transform: translateY(35%) !important;
    will-change: transform;
}

/* موبایل */
@media (max-width: 760px) {
    .movie-main-info {
        padding-bottom: 62px !important;
    }

    .movie-description-centered {
        margin-top: 0 !important;
    }

    .movie-main-info .movie-poster-large {
        transform: translateY(24%) !important;
    }
}

/* FILMPARTY_STEP116_4_DESKTOP_MOVIE_BANNER_LESS_CROP_START
   Desktop-only movie/download page banner crop fix.
   Cause: .movie-hero-strip was only 290px tall while the image used object-fit: cover,
   so wide desktop panels cropped too much from top/bottom.
   Mobile is intentionally untouched.
*/
@media (min-width: 761px) {
    .movie-floating-page .movie-glass-panel .movie-hero-strip {
        height: clamp(410px, 38vw, 560px) !important;
        min-height: 410px !important;
        max-height: 560px !important;
        overflow: hidden !important;
        background: #050b14 !important;
    }

    .movie-floating-page .movie-glass-panel .movie-hero-strip img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center 32% !important;
        display: block !important;
        transform: none !important;
    }

    .movie-floating-page .movie-glass-panel .movie-hero-fade {
        background:
            linear-gradient(to bottom, rgba(7,17,31,.10) 0%, rgba(7,17,31,.16) 42%, rgba(7,17,31,.92) 100%),
            linear-gradient(to left, rgba(7,17,31,.05), rgba(7,17,31,.68)) !important;
    }
}

@media (min-width: 1440px) {
    .movie-floating-page .movie-glass-panel .movie-hero-strip {
        height: clamp(500px, 35vw, 620px) !important;
        max-height: 620px !important;
    }

    .movie-floating-page .movie-glass-panel .movie-hero-strip img {
        object-position: center 30% !important;
    }
}
/* FILMPARTY_STEP116_4_DESKTOP_MOVIE_BANNER_LESS_CROP_END */


/* FILMPARTY_MOVIE_POSTER_DESKTOP_UP_50_START
   Desktop-only movie/download poster vertical lift.
   Scope: .movie-main-info .movie-poster-large only.
   No mobile change, no margin/layout/reflow change.
*/
@media (min-width: 761px) {
    .movie-main-info .movie-poster-large {
        transform: translateY(-20%) !important;
    }
}
/* FILMPARTY_MOVIE_POSTER_DESKTOP_UP_50_END */



/* FILMPARTY_STEP118_MOVIE_COLLECTIONS_COMPLETE_CSS_START
   Scoped to movie page collection dropdown only.
*/
.movie-collection-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.movie-collection-details summary span {
    color: rgba(147,197,253,.92);
    font-size: 12px;
    font-weight: 900;
}

.movie-collection-details summary b {
    color: rgba(255,255,255,.94);
    font-size: 14px;
    font-weight: 950;
    margin-inline-end: auto;
}

.movie-collection-details summary em {
    color: rgba(226,232,240,.58);
    font-style: normal;
    font-size: 11px;
    font-weight: 800;
}

.movie-collection-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    padding: 4px 2px 8px;
}

.movie-collection-card {
    flex: 0 0 126px;
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
    border-radius: 18px;
    padding: 8px;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 14px 28px rgba(0,0,0,.18);
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.movie-collection-card:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,.075);
    border-color: rgba(147,197,253,.28);
}

.movie-collection-card.current {
    border-color: rgba(250,204,21,.46);
    background: linear-gradient(135deg, rgba(250,204,21,.14), rgba(255,255,255,.055));
}

.movie-collection-card img {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 14px;
    background: rgba(255,255,255,.06);
}

.movie-collection-card strong {
    display: block;
    margin-top: 8px;
    color: rgba(255,255,255,.92);
    font-size: 12px;
    line-height: 1.55;
    font-weight: 950;
    min-height: 38px;
}

.movie-collection-card span,
.movie-collection-card em {
    display: block;
    margin-top: 4px;
    color: rgba(226,232,240,.62);
    font-size: 11px;
    line-height: 1.6;
    font-style: normal;
}

.movie-collection-card em {
    color: rgba(250,204,21,.86);
    font-weight: 900;
}

@media (max-width: 760px) {
    .movie-collection-card {
        flex-basis: 112px;
        border-radius: 16px;
        padding: 7px;
    }

    .movie-collection-details summary {
        flex-wrap: wrap;
    }
}
/* FILMPARTY_STEP118_MOVIE_COLLECTIONS_COMPLETE_CSS_END */



/* FILMPARTY_STEP119B_MOVIE_STATS_IMDB_CHIPS_CSS_START
   Scope: movie download/info page meta chips + genre chips only.
*/
.movie-meta-row {
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.movie-meta-row > span,
.movie-meta-row .movie-meta-chip {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    min-height: 30px !important;
    padding: 6px 11px !important;
    border-radius: 999px !important;
    color: rgba(226,232,240,.88) !important;
    background:
        radial-gradient(circle at 18% 15%, rgba(255,255,255,.18), transparent 34%),
        rgba(255,255,255,.065) !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    box-shadow:
        0 10px 24px rgba(0,0,0,.14),
        inset 0 1px 0 rgba(255,255,255,.10) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    font-size: 12px !important;
    font-weight: 850 !important;
    line-height: 1.5 !important;
}

.movie-meta-row .imdb-chip {
    color: rgba(253,224,71,.98) !important;
    border-color: rgba(250,204,21,.32) !important;
    background:
        radial-gradient(circle at 18% 15%, rgba(255,255,255,.22), transparent 34%),
        radial-gradient(circle at 100% 0%, rgba(250,204,21,.22), transparent 44%),
        rgba(250,204,21,.078) !important;
    box-shadow:
        0 12px 28px rgba(0,0,0,.16),
        0 0 18px rgba(250,204,21,.09),
        inset 0 1px 0 rgba(255,255,255,.13) !important;
}

.movie-meta-row .imdb-chip b,
.movie-meta-row .wishlist-stock-chip b {
    font-weight: 950 !important;
}

.movie-meta-row .imdb-chip small,
.movie-meta-row .wishlist-stock-chip small {
    color: rgba(255,255,255,.64) !important;
    font-size: 10.5px !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
}

.movie-meta-row .wishlist-stock-chip {
    color: rgba(252,231,243,.94) !important;
    border-color: rgba(244,114,182,.24) !important;
    background:
        radial-gradient(circle at 18% 15%, rgba(255,255,255,.18), transparent 34%),
        radial-gradient(circle at 100% 0%, rgba(244,114,182,.16), transparent 44%),
        rgba(255,255,255,.062) !important;
}

.movie-genre-row {
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.movie-genre-row span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 30px !important;
    padding: 6px 12px !important;
    border-radius: 999px !important;
    color: rgba(191,219,254,.95) !important;
    background:
        radial-gradient(circle at 18% 15%, rgba(255,255,255,.18), transparent 34%),
        radial-gradient(circle at 100% 0%, rgba(96,165,250,.18), transparent 44%),
        rgba(59,130,246,.075) !important;
    border: 1px solid rgba(147,197,253,.22) !important;
    box-shadow:
        0 10px 24px rgba(0,0,0,.14),
        inset 0 1px 0 rgba(255,255,255,.11) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    font-size: 12px !important;
    font-weight: 900 !important;
}

@media (max-width: 760px) {
    .movie-meta-row > span,
    .movie-meta-row .movie-meta-chip,
    .movie-genre-row span {
        min-height: 28px !important;
        padding: 5px 10px !important;
        font-size: 11.5px !important;
    }

    .movie-meta-row .imdb-chip small,
    .movie-meta-row .wishlist-stock-chip small {
        font-size: 10px !important;
    }
}
/* FILMPARTY_STEP119B_MOVIE_STATS_IMDB_CHIPS_CSS_END */











/* FILMPARTY_STEP120F_WISHLIST_DESKTOP_GLASS_HEART_CSS_START
   Surgical refinement:
   - English number handled in wishlist.js.
   - Desktop gets a wider clean glass capsule, not the narrow 58px button.
   - Mobile keeps the compact working footprint.
   - Backend/toggle mechanics untouched.
*/
.movie-user-actions-centered.fp-movie-actions-final .js-open-profile-list-picker {
    order: 1 !important;
}

.movie-user-actions-centered.fp-movie-actions-final .movie-wishlist-heart-count {
    order: 2 !important;
}

.movie-user-actions-centered.fp-movie-actions-final .js-movie-recommend-open {
    order: 3 !important;
}

.movie-user-actions .movie-wishlist-heart-count i,
.movie-user-actions .movie-wishlist-heart-count .fp-icon,
.movie-user-actions .movie-wishlist-heart-count .fp-wishlist-heart-svg {
    display: none !important;
    visibility: hidden !important;
}

.movie-user-actions .movie-wishlist-heart-count .movie-chip-icon::before,
.movie-user-actions .movie-wishlist-heart-count .movie-chip-icon::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: none !important;
    box-shadow: none !important;
    filter: none !important;
}

/* Desktop: premium clean capsule, same visual rhythm as the two neighbor action buttons */
@media (min-width: 761px) {
    .movie-user-actions-centered.fp-movie-actions-final .movie-wishlist-heart-count {
        width: 114px !important;
        min-width: 114px !important;
        max-width: 114px !important;
        height: 74px !important;
        min-height: 74px !important;
        flex: 0 0 114px !important;
        display: inline-grid !important;
        place-items: center !important;
        padding: 0 !important;
        border-radius: 22px !important;
        background:
            radial-gradient(circle at 30% 18%, rgba(255,255,255,.22), transparent 34%),
            radial-gradient(circle at 72% 92%, rgba(191,219,254,.12), transparent 44%),
            rgba(255,255,255,.055) !important;
        border: 1px solid rgba(255,255,255,.13) !important;
        box-shadow:
            0 16px 34px rgba(0,0,0,.18),
            inset 0 1px 0 rgba(255,255,255,.11) !important;
        backdrop-filter: blur(18px) !important;
        -webkit-backdrop-filter: blur(18px) !important;
        overflow: visible !important;
        font-size: 0 !important;
        line-height: 1 !important;
        transform: none !important;
    }

    .movie-user-actions-centered.fp-movie-actions-final .movie-wishlist-heart-count:hover {
        transform: translateY(-2px) !important;
        border-color: rgba(255,255,255,.24) !important;
        background:
            radial-gradient(circle at 30% 18%, rgba(255,255,255,.30), transparent 34%),
            radial-gradient(circle at 72% 92%, rgba(191,219,254,.18), transparent 44%),
            rgba(255,255,255,.075) !important;
        box-shadow:
            0 20px 42px rgba(0,0,0,.22),
            0 0 20px rgba(255,255,255,.055),
            inset 0 1px 0 rgba(255,255,255,.14) !important;
    }

    .movie-user-actions-centered.fp-movie-actions-final .movie-wishlist-heart-count .fp-wishlist-heart-shell {
        width: 62px !important;
        height: 56px !important;
        min-width: 62px !important;
    }

    .movie-user-actions-centered.fp-movie-actions-final .movie-wishlist-heart-count .fp-wishlist-glass-heart {
        width: 62px !important;
        height: 56px !important;
    }

    .movie-user-actions-centered.fp-movie-actions-final .movie-wishlist-heart-count .fp-wishlist-count {
        font-size: 12.8px !important;
        height: 22px !important;
        max-width: 39px !important;
    }
}

/* Shared heart core */
.movie-user-actions .movie-wishlist-heart-count .fp-wishlist-heart-shell {
    position: relative !important;
    display: grid !important;
    place-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.movie-user-actions .movie-wishlist-heart-count .fp-wishlist-glass-heart {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    overflow: visible !important;
    filter:
        drop-shadow(0 9px 18px rgba(0,0,0,.27))
        drop-shadow(0 0 12px rgba(255,255,255,.10)) !important;
}

.movie-user-actions .movie-wishlist-heart-count .fp-heart-ambient {
    fill: rgba(255,255,255,.12) !important;
}

.movie-user-actions .movie-wishlist-heart-count .fp-heart-body {
    fill: rgba(255,255,255,.91) !important;
    stroke: rgba(255,255,255,.56) !important;
    stroke-width: .7 !important;
}

.movie-user-actions .movie-wishlist-heart-count .fp-heart-edge {
    fill: none !important;
    stroke: rgba(255,255,255,.96) !important;
    stroke-width: 1.45 !important;
    stroke-linejoin: round !important;
}

.movie-user-actions .movie-wishlist-heart-count .fp-heart-gloss {
    fill: rgba(255,255,255,.46) !important;
}

.movie-user-actions .movie-wishlist-heart-count.active .fp-heart-body,
.movie-user-actions .movie-wishlist-heart-count:hover .fp-heart-body {
    fill: rgba(255,255,255,.97) !important;
    stroke: rgba(255,255,255,.76) !important;
}

.movie-user-actions .movie-wishlist-heart-count .fp-wishlist-count {
    position: relative !important;
    z-index: 2 !important;
    display: grid !important;
    place-items: center !important;
    min-width: 28px !important;
    padding: 0 2px !important;
    margin: -1px 0 0 0 !important;
    color: rgba(7,17,31,.96) !important;
    font-family: "Vazirmatn", "IRANSans", "Segoe UI", Tahoma, Arial, sans-serif !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    letter-spacing: -.035em !important;
    font-variant-numeric: tabular-nums !important;
    direction: ltr !important;
    unicode-bidi: isolate !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-shadow:
        0 1px 0 rgba(255,255,255,.62),
        0 0 9px rgba(255,255,255,.26) !important;
}

.movie-user-actions .movie-wishlist-heart-count .sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.movie-meta-row .wishlist-stock-chip {
    display: none !important;
}

/* Mobile: keep the current compact footprint that already works */
@media (max-width: 760px) {
    .movie-user-actions-centered.fp-movie-actions-final .movie-wishlist-heart-count {
        width: 54px !important;
        min-width: 54px !important;
        max-width: 54px !important;
        height: 54px !important;
        min-height: 54px !important;
        flex-basis: 54px !important;
        justify-self: center !important;
        display: inline-grid !important;
        place-items: center !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        overflow: visible !important;
        font-size: 0 !important;
        line-height: 1 !important;
        transform: none !important;
    }

    .movie-user-actions-centered.fp-movie-actions-final .movie-wishlist-heart-count:hover {
        transform: none !important;
    }

    .movie-user-actions-centered.fp-movie-actions-final .movie-wishlist-heart-count .fp-wishlist-heart-shell,
    .movie-user-actions-centered.fp-movie-actions-final .movie-wishlist-count-heart-shell {
        width: 49px !important;
        height: 45px !important;
        min-width: 49px !important;
    }

    .movie-user-actions-centered.fp-movie-actions-final .movie-wishlist-heart-count .fp-wishlist-glass-heart {
        width: 49px !important;
        height: 45px !important;
    }

    .movie-user-actions-centered.fp-movie-actions-final .movie-wishlist-heart-count .fp-wishlist-count {
        font-size: 10.8px !important;
        height: 20px !important;
        max-width: 34px !important;
    }
}
/* FILMPARTY_STEP120F_WISHLIST_DESKTOP_GLASS_HEART_CSS_END */



/* FILMPARTY_STEP120G_WISHLIST_HEART_GLASS_ONLY_START
   Only refines the heart material to a glassy white finish.
   No size/order/layout/mechanism changes.
*/
.movie-user-actions .movie-wishlist-heart-count .fp-wishlist-glass-heart {
    filter:
        drop-shadow(0 9px 18px rgba(0,0,0,.22))
        drop-shadow(0 0 14px rgba(255,255,255,.18)) !important;
}

.movie-user-actions .movie-wishlist-heart-count .fp-heart-ambient {
    fill: rgba(255,255,255,.09) !important;
}

.movie-user-actions .movie-wishlist-heart-count .fp-heart-body {
    fill: rgba(255,255,255,.24) !important;
    stroke: rgba(255,255,255,.58) !important;
    stroke-width: .95 !important;
}

.movie-user-actions .movie-wishlist-heart-count .fp-heart-edge {
    fill: none !important;
    stroke: rgba(255,255,255,.96) !important;
    stroke-width: 1.58 !important;
    stroke-linejoin: round !important;
}

.movie-user-actions .movie-wishlist-heart-count .fp-heart-gloss {
    fill: rgba(255,255,255,.64) !important;
}

.movie-user-actions .movie-wishlist-heart-count.active .fp-heart-body,
.movie-user-actions .movie-wishlist-heart-count:hover .fp-heart-body {
    fill: rgba(255,255,255,.31) !important;
    stroke: rgba(255,255,255,.74) !important;
}

.movie-user-actions .movie-wishlist-heart-count.active .fp-heart-gloss,
.movie-user-actions .movie-wishlist-heart-count:hover .fp-heart-gloss {
    fill: rgba(255,255,255,.72) !important;
}


.movie-back-btn span {
    width: 14px;
    height: 14px;
    display: block;
    border-left: 2.3px solid currentColor;
    border-bottom: 2.3px solid currentColor;
    transform: rotate(45deg) translateX(1px);
    opacity: .94;
}

.movie-back-btn:hover {
    border-color: rgba(255,255,255,.24);
    background:
        radial-gradient(circle at 28% 18%, rgba(255,255,255,.25), transparent 38%),
        rgba(255,255,255,.12);
}

@media (max-width: 520px) {
    .movie-back-btn {
        top: 18px;
        left: 72px;
        width: 42px;
        height: 42px;
        border-radius: 16px;
    }

    .movie-back-btn span {
        width: 13px;
        height: 13px;
    }
}
/* FILMPARTY_STEP123_MOVIE_BACK_BUTTON_CSS_END */


/* FILMPARTY_STEP123_3_MOVIE_BACK_ONLY_FINAL_START
   Final state:
   - Movie X close button removed from HTML/CSS.
   - Only standalone back button remains on the left.
*/
.movie-floating-page .movie-back-btn {
    position: fixed !important;
    top: 22px !important;
    left: 22px !important;
    right: auto !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    max-width: 46px !important;
    max-height: 46px !important;
    border-radius: 17px !important;
    box-sizing: border-box !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 6 !important;
}

.movie-floating-page .movie-back-btn span {
    width: 14px !important;
    height: 14px !important;
    margin: 0 !important;
    border-left: 2.3px solid currentColor !important;
    border-bottom: 2.3px solid currentColor !important;
    transform: rotate(45deg) translateX(1px) !important;
}

@media (max-width: 520px) {
    .movie-floating-page .movie-back-btn {
        top: 18px !important;
        left: 18px !important;
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
        max-width: 42px !important;
        max-height: 42px !important;
        border-radius: 16px !important;
    }

    .movie-floating-page .movie-back-btn span {
        width: 13px !important;
        height: 13px !important;
    }
}
/* FILMPARTY_STEP123_3_MOVIE_BACK_ONLY_FINAL_END */

/* FILMPARTY_STEP123_4_MOVIE_BACK_GLASS_RESTORE_START
   Restore premium glass look for the final standalone movie back button.
   Only affects .movie-back-btn.
*/
.movie-floating-page .movie-back-btn {
    color: rgba(255,255,255,.96) !important;
    border: 1px solid rgba(255,255,255,.16) !important;
    background:
        radial-gradient(circle at 28% 18%, rgba(255,255,255,.22), transparent 38%),
        linear-gradient(135deg, rgba(255,255,255,.13), rgba(255,255,255,.05)) !important;
    box-shadow:
        0 18px 46px rgba(0,0,0,.30),
        inset 0 1px 0 rgba(255,255,255,.14),
        inset 0 -1px 0 rgba(255,255,255,.04) !important;
    backdrop-filter: blur(20px) saturate(1.15) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.15) !important;
}

.movie-floating-page .movie-back-btn:hover {
    color: rgba(255,255,255,1) !important;
    border-color: rgba(255,255,255,.24) !important;
    background:
        radial-gradient(circle at 28% 18%, rgba(255,255,255,.28), transparent 38%),
        linear-gradient(135deg, rgba(255,255,255,.17), rgba(255,255,255,.07)) !important;
    box-shadow:
        0 20px 50px rgba(0,0,0,.34),
        inset 0 1px 0 rgba(255,255,255,.18),
        inset 0 -1px 0 rgba(255,255,255,.06) !important;
}

.movie-floating-page .movie-back-btn:active {
    transform: translateY(1px) !important;
}

.movie-floating-page .movie-back-btn span {
    opacity: .96 !important;
}

@media (max-width: 520px) {
    .movie-floating-page .movie-back-btn {
        border: 1px solid rgba(255,255,255,.15) !important;
        background:
            radial-gradient(circle at 28% 18%, rgba(255,255,255,.20), transparent 38%),
            linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.045)) !important;
        box-shadow:
            0 16px 38px rgba(0,0,0,.28),
            inset 0 1px 0 rgba(255,255,255,.12) !important;
        backdrop-filter: blur(18px) saturate(1.12) !important;
        -webkit-backdrop-filter: blur(18px) saturate(1.12) !important;
    }
}
/* FILMPARTY_STEP123_4_MOVIE_BACK_GLASS_RESTORE_END */


/* FILMPARTY_STEP124_DOWNLOAD_HEARTBEAT_UI_START */
.download-actions,
.episode-file-actions.download-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.download-actions button,
.episode-file-actions.download-actions button {
    min-height: 38px;
    border-radius: 14px;
    transition: opacity .18s ease, transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.download-actions button:disabled,
.episode-file-actions.download-actions button:disabled {
    opacity: .44;
    cursor: not-allowed;
    filter: grayscale(.22);
    transform: none !important;
}

.download-actions .copy-link-btn,
.episode-file-actions.download-actions .copy-link-btn {
    background: linear-gradient(135deg, rgba(255,255,255,.11), rgba(255,255,255,.045));
    border: 1px solid rgba(255,255,255,.13);
    color: rgba(255,255,255,.88);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 10px 22px rgba(0,0,0,.16);
    backdrop-filter: blur(16px);
}

.download-actions .direct-download-btn,
.episode-file-actions.download-actions .direct-download-btn {
    background: linear-gradient(135deg, rgba(74,222,128,.18), rgba(255,255,255,.055));
    border: 1px solid rgba(74,222,128,.24);
    color: rgba(220,255,232,.96);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 10px 24px rgba(0,0,0,.18);
    backdrop-filter: blur(16px);
}

.download-actions .refresh-download-btn,
.episode-file-actions.download-actions .refresh-download-btn {
    min-width: 118px;
    background: linear-gradient(135deg, rgba(96,165,250,.20), rgba(255,255,255,.06));
    border: 1px solid rgba(96,165,250,.30);
    color: rgba(232,242,255,.96);
    font-weight: 950;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 12px 28px rgba(0,0,0,.20);
    backdrop-filter: blur(18px);
}

.download-actions .refresh-download-btn.timer-mode,
.episode-file-actions.download-actions .refresh-download-btn.timer-mode {
    direction: ltr;
    background:
        radial-gradient(circle at 20% 0%, rgba(96,165,250,.22), transparent 35%),
        linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.045));
    border-color: rgba(255,255,255,.18);
    color: rgba(255,255,255,.96);
    letter-spacing: .4px;
}

.download-actions .refresh-download-btn.refresh-mode,
.episode-file-actions.download-actions .refresh-download-btn.refresh-mode {
    background:
        radial-gradient(circle at 18% 0%, rgba(245,190,68,.28), transparent 34%),
        linear-gradient(135deg, rgba(245,190,68,.20), rgba(255,255,255,.06));
    border-color: rgba(245,190,68,.36);
    color: rgba(255,238,190,.98);
}

.download-actions .refresh-download-btn.exhausted-mode,
.episode-file-actions.download-actions .refresh-download-btn.exhausted-mode {
    background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
    border-color: rgba(255,255,255,.12);
    color: rgba(255,255,255,.54);
}

.download-actions button:not(:disabled):hover,
.episode-file-actions.download-actions button:not(:disabled):hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}

@media (max-width: 720px) {
    .download-actions,
    .episode-file-actions.download-actions {
        display: grid;
        grid-template-columns: 1fr 1.25fr 1.15fr;
        gap: 7px;
    }

    .download-actions button,
    .episode-file-actions.download-actions button {
        width: 100%;
        min-width: 0;
        padding-inline: 8px;
        font-size: 12px;
    }
}
/* FILMPARTY_STEP124_DOWNLOAD_HEARTBEAT_UI_END */


/* FILMPARTY_STEP124B_KILL_LEGACY_DOWNLOAD_TIMER_START */
.fp-download-timer-toolbar {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

.download-actions > .download-timer,
.episode-file-actions.download-actions > .download-timer,
.episode-file-actions > .download-timer {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}
/* FILMPARTY_STEP124B_KILL_LEGACY_DOWNLOAD_TIMER_END */


/* FILMPARTY_STEP124C_MOBILE_DOWNLOAD_ROW_START */
@media (max-width: 720px) {
    .download-actions,
    .episode-file-actions.download-actions {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: stretch !important;
        gap: 6px !important;
        grid-template-columns: none !important;
    }

    .download-actions button,
    .episode-file-actions.download-actions button {
        flex: 1 1 0 !important;
        width: auto !important;
        min-width: 0 !important;
        min-height: 34px !important;
        height: 34px !important;
        padding: 0 8px !important;
        border-radius: 12px !important;
        font-size: 11px !important;
        line-height: 1.05 !important;
        white-space: nowrap !important;
    }

    .download-actions .refresh-download-btn,
    .episode-file-actions.download-actions .refresh-download-btn {
        min-width: 0 !important;
    }

    .download-actions .copy-link-btn,
    .episode-file-actions.download-actions .copy-link-btn,
    .download-actions .direct-download-btn,
    .episode-file-actions.download-actions .direct-download-btn,
    .download-actions .refresh-download-btn,
    .episode-file-actions.download-actions .refresh-download-btn {
        margin: 0 !important;
    }
}
/* FILMPARTY_STEP124C_MOBILE_DOWNLOAD_ROW_END */


/* FILMPARTY_STEP124D_DOWNLOAD_BUTTONS_POLISH_START */
.download-actions,
.episode-file-actions.download-actions {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: stretch !important;
    gap: 8px !important;
}

.download-actions button,
.episode-file-actions.download-actions button {
    position: relative;
    flex: 1 1 0;
    width: auto !important;
    min-width: 0 !important;
    min-height: 40px !important;
    height: 40px !important;
    padding: 0 10px !important;
    border-radius: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 12.5px !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease, filter .18s ease, border-color .18s ease;
}

.download-actions .copy-link-btn,
.episode-file-actions.download-actions .copy-link-btn {
    flex: 0.92 1 0 !important;
    color: rgba(244,248,255,.96) !important;
    border: 1px solid rgba(162, 206, 255, .42) !important;
    background:
        linear-gradient(135deg, rgba(118, 170, 255, .22), rgba(255,255,255,.08)),
        rgba(255,255,255,.04) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.16),
        0 0 0 1px rgba(162, 206, 255, .10),
        0 0 22px rgba(102, 171, 255, .18),
        0 10px 24px rgba(0,0,0,.20) !important;
}

.download-actions .direct-download-btn,
.episode-file-actions.download-actions .direct-download-btn {
    flex: 1.10 1 0 !important;
    color: rgba(232,255,240,.98) !important;
    border: 1px solid rgba(74, 222, 128, .42) !important;
    background:
        linear-gradient(135deg, rgba(74, 222, 128, .22), rgba(255,255,255,.08)),
        rgba(255,255,255,.04) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.16),
        0 0 0 1px rgba(74,222,128,.10),
        0 0 22px rgba(74,222,128,.18),
        0 10px 24px rgba(0,0,0,.20) !important;
}

.download-actions .refresh-download-btn,
.episode-file-actions.download-actions .refresh-download-btn {
    flex: 1.18 1 0 !important;
    min-width: 0 !important;
    color: rgba(236,245,255,.98) !important;
    border: 1px solid rgba(82, 196, 255, .46) !important;
    background:
        linear-gradient(135deg, rgba(82,196,255,.26), rgba(168,85,247,.12)),
        rgba(255,255,255,.04) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.18),
        0 0 0 1px rgba(82,196,255,.12),
        0 0 26px rgba(82,196,255,.22),
        0 12px 30px rgba(0,0,0,.22) !important;
}

.download-actions .refresh-download-btn.build-link-btn,
.episode-file-actions.download-actions .refresh-download-btn.build-link-btn {
    color: rgba(236,245,255,.98) !important;
    border-color: rgba(82, 196, 255, .50) !important;
    background:
        radial-gradient(circle at 20% 0%, rgba(82,196,255,.24), transparent 36%),
        linear-gradient(135deg, rgba(82,196,255,.28), rgba(168,85,247,.14)),
        rgba(255,255,255,.04) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.20),
        0 0 0 1px rgba(82,196,255,.14),
        0 0 28px rgba(82,196,255,.24),
        0 12px 32px rgba(0,0,0,.22) !important;
}

.download-actions .refresh-download-btn.timer-mode,
.episode-file-actions.download-actions .refresh-download-btn.timer-mode {
    direction: ltr !important;
    color: rgba(248,252,255,.99) !important;
    border-color: rgba(121, 232, 255, .52) !important;
    background:
        radial-gradient(circle at 20% 0%, rgba(121,232,255,.28), transparent 36%),
        linear-gradient(135deg, rgba(65,188,255,.24), rgba(255,255,255,.10)),
        rgba(255,255,255,.04) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.20),
        0 0 0 1px rgba(121,232,255,.12),
        0 0 30px rgba(121,232,255,.25),
        0 12px 32px rgba(0,0,0,.22) !important;
}

.download-actions .refresh-download-btn.refresh-mode,
.episode-file-actions.download-actions .refresh-download-btn.refresh-mode {
    color: rgba(255,244,220,.99) !important;
    border-color: rgba(255, 194, 92, .52) !important;
    background:
        radial-gradient(circle at 20% 0%, rgba(255,194,92,.26), transparent 36%),
        linear-gradient(135deg, rgba(255,194,92,.24), rgba(255,119,198,.10)),
        rgba(255,255,255,.04) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.18),
        0 0 0 1px rgba(255,194,92,.12),
        0 0 28px rgba(255,194,92,.22),
        0 12px 30px rgba(0,0,0,.22) !important;
}

.download-actions button:not(:disabled):hover,
.episode-file-actions.download-actions button:not(:disabled):hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

.download-actions button:disabled,
.episode-file-actions.download-actions button:disabled {
    opacity: .58 !important;
    color: rgba(255,255,255,.55) !important;
    border-color: rgba(255,255,255,.12) !important;
    background:
        linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.03)),
        rgba(255,255,255,.02) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.08),
        0 6px 16px rgba(0,0,0,.12) !important;
    filter: saturate(.80) brightness(.90) !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.download-actions .refresh-download-btn.exhausted-mode,
.episode-file-actions.download-actions .refresh-download-btn.exhausted-mode {
    opacity: .44 !important;
    color: rgba(255,255,255,.45) !important;
    border-color: rgba(255,255,255,.10) !important;
    background:
        linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
        rgba(255,255,255,.015) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.06),
        0 5px 14px rgba(0,0,0,.10) !important;
}

@media (max-width: 720px) {
    .download-actions,
    .episode-file-actions.download-actions {
        gap: 7px !important;
    }

    .download-actions button,
    .episode-file-actions.download-actions button {
        min-height: 38px !important;
        height: 38px !important;
        padding: 0 9px !important;
        border-radius: 14px !important;
        font-size: 12px !important;
    }

    .download-actions .copy-link-btn,
    .episode-file-actions.download-actions .copy-link-btn {
        flex: 0.88 1 0 !important;
    }

    .download-actions .direct-download-btn,
    .episode-file-actions.download-actions .direct-download-btn {
        flex: 1.08 1 0 !important;
    }

    .download-actions .refresh-download-btn,
    .episode-file-actions.download-actions .refresh-download-btn {
        flex: 1.16 1 0 !important;
    }
}

@media (max-width: 390px) {
    .download-actions button,
    .episode-file-actions.download-actions button {
        font-size: 11.4px !important;
        padding: 0 7px !important;
    }
}
/* FILMPARTY_STEP124D_DOWNLOAD_BUTTONS_POLISH_END */


/* FILMPARTY_STEP124E_DOWNLOAD_BUTTONS_FINAL_NEON_SIZE_START */
.download-actions,
.episode-file-actions.download-actions {
    gap: 9px !important;
}

.download-actions button,
.episode-file-actions.download-actions button {
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 12px !important;
    border-radius: 17px !important;
    font-size: 13.4px !important;
    font-weight: 950 !important;
}

.download-actions .copy-link-btn,
.episode-file-actions.download-actions .copy-link-btn {
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.22),
        0 0 0 1px rgba(162, 206, 255, .18),
        0 0 30px rgba(102, 171, 255, .34),
        0 0 54px rgba(102, 171, 255, .18),
        0 12px 28px rgba(0,0,0,.24) !important;
}

.download-actions .direct-download-btn,
.episode-file-actions.download-actions .direct-download-btn {
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.22),
        0 0 0 1px rgba(74,222,128,.18),
        0 0 30px rgba(74,222,128,.34),
        0 0 54px rgba(74,222,128,.18),
        0 12px 28px rgba(0,0,0,.24) !important;
}

.download-actions .refresh-download-btn,
.episode-file-actions.download-actions .refresh-download-btn {
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.24),
        0 0 0 1px rgba(82,196,255,.20),
        0 0 34px rgba(82,196,255,.38),
        0 0 62px rgba(168,85,247,.18),
        0 14px 34px rgba(0,0,0,.26) !important;
}

.download-actions .refresh-download-btn.build-link-btn,
.episode-file-actions.download-actions .refresh-download-btn.build-link-btn {
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.26),
        0 0 0 1px rgba(82,196,255,.22),
        0 0 38px rgba(82,196,255,.42),
        0 0 66px rgba(168,85,247,.20),
        0 14px 36px rgba(0,0,0,.26) !important;
}

.download-actions .refresh-download-btn.timer-mode,
.episode-file-actions.download-actions .refresh-download-btn.timer-mode {
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.26),
        0 0 0 1px rgba(121,232,255,.22),
        0 0 38px rgba(121,232,255,.42),
        0 0 66px rgba(121,232,255,.20),
        0 14px 36px rgba(0,0,0,.26) !important;
}

.download-actions .refresh-download-btn.refresh-mode,
.episode-file-actions.download-actions .refresh-download-btn.refresh-mode {
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.24),
        0 0 0 1px rgba(255,194,92,.22),
        0 0 36px rgba(255,194,92,.40),
        0 0 62px rgba(255,119,198,.18),
        0 14px 34px rgba(0,0,0,.26) !important;
}

.download-actions button:not(:disabled):hover,
.episode-file-actions.download-actions button:not(:disabled):hover {
    filter: brightness(1.08) saturate(1.08) !important;
    transform: translateY(-1px);
}

.download-actions button:disabled,
.episode-file-actions.download-actions button:disabled {
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.08),
        0 6px 16px rgba(0,0,0,.12) !important;
}

@media (max-width: 720px) {
    .download-actions,
    .episode-file-actions.download-actions {
        gap: 8px !important;
    }

    .download-actions button,
    .episode-file-actions.download-actions button {
        min-height: 42px !important;
        height: 42px !important;
        padding: 0 10px !important;
        border-radius: 16px !important;
        font-size: 12.8px !important;
    }
}

@media (max-width: 390px) {
    .download-actions button,
    .episode-file-actions.download-actions button {
        min-height: 41px !important;
        height: 41px !important;
        padding: 0 8px !important;
        font-size: 12px !important;
    }
}
/* FILMPARTY_STEP124E_DOWNLOAD_BUTTONS_FINAL_NEON_SIZE_END */


/* FILMPARTY_STEP124J_DIRECT_DOWNLOAD_WIDTH_VISIBLE_TINY_START */
.download-actions .copy-link-btn,
.episode-file-actions.download-actions .copy-link-btn {
    flex: 0.84 1 0 !important;
}

.download-actions .direct-download-btn,
.episode-file-actions.download-actions .direct-download-btn {
    flex: 1.30 1 0 !important;
    min-width: 0 !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
}

.download-actions .refresh-download-btn,
.episode-file-actions.download-actions .refresh-download-btn {
    flex: 1.08 1 0 !important;
    min-width: 0 !important;
}

@media (max-width: 720px) {
    .download-actions .copy-link-btn,
    .episode-file-actions.download-actions .copy-link-btn {
        flex: 0.82 1 0 !important;
    }

    .download-actions .direct-download-btn,
    .episode-file-actions.download-actions .direct-download-btn {
        flex: 1.32 1 0 !important;
        min-width: 0 !important;
        padding-left: 9px !important;
        padding-right: 9px !important;
    }

    .download-actions .refresh-download-btn,
    .episode-file-actions.download-actions .refresh-download-btn {
        flex: 1.06 1 0 !important;
        min-width: 0 !important;
    }
}

@media (max-width: 390px) {
    .download-actions .copy-link-btn,
    .episode-file-actions.download-actions .copy-link-btn {
        flex: 0.80 1 0 !important;
    }

    .download-actions .direct-download-btn,
    .episode-file-actions.download-actions .direct-download-btn {
        flex: 1.34 1 0 !important;
        min-width: 0 !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .download-actions .refresh-download-btn,
    .episode-file-actions.download-actions .refresh-download-btn {
        flex: 1.04 1 0 !important;
        min-width: 0 !important;
    }
}
/* FILMPARTY_STEP124J_DIRECT_DOWNLOAD_WIDTH_VISIBLE_TINY_END */


/* FILMPARTY_STEP124K_QUALITY_SIZE_INLINE_START */
.download-file-meta,
.episode-file-main {
    min-width: 0;
}

.download-quality-inline {
    display: inline-flex !important;
    align-items: baseline !important;
    gap: 5px !important;
    white-space: nowrap !important;
    line-height: 1.15 !important;
}

.download-size-inline {
    font-size: .72em !important;
    font-weight: 700 !important;
    opacity: .74 !important;
    color: rgba(255,255,255,.76) !important;
    letter-spacing: 0 !important;
}

.download-file-meta > span,
.download-row > div:first-child > span.download-size-inline {
    display: inline !important;
}

@media (max-width: 720px) {
    .download-quality-inline {
        gap: 4px !important;
    }

    .download-size-inline {
        font-size: .68em !important;
    }
}
/* FILMPARTY_STEP124K_QUALITY_SIZE_INLINE_END */


/* FILMPARTY_STEP124L_DESKTOP_DOWNLOAD_BUTTONS_WIDER_START */
@media (min-width: 721px) {
    .download-row .download-actions,
    .episode-file-card .episode-file-actions.download-actions {
        width: min(520px, 100%) !important;
        min-width: min(520px, 100%) !important;
        flex: 0 0 min(520px, 100%) !important;
        gap: 10px !important;
    }

    .download-row .download-actions button,
    .episode-file-card .episode-file-actions.download-actions button {
        min-height: 44px !important;
        height: 44px !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .download-row .download-actions .copy-link-btn,
    .episode-file-card .episode-file-actions.download-actions .copy-link-btn {
        flex: 0.92 1 0 !important;
    }

    .download-row .download-actions .direct-download-btn,
    .episode-file-card .episode-file-actions.download-actions .direct-download-btn {
        flex: 1.34 1 0 !important;
    }

    .download-row .download-actions .refresh-download-btn,
    .episode-file-card .episode-file-actions.download-actions .refresh-download-btn {
        flex: 1.16 1 0 !important;
    }
}
/* FILMPARTY_STEP124L_DESKTOP_DOWNLOAD_BUTTONS_WIDER_END */

/* FILMPARTY_STEP126_SERIES_DOWNLOAD_UNIFY_START */
.series-download-main {
    margin: 0 16px 16px;
    display: grid;
    gap: 14px;
}

.series-download-main-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 2px;
    color: var(--text-soft);
}

.series-download-main-head span {
    color: rgba(255,255,255,.86);
    font-size: 12px;
    font-weight: 900;
}

.series-download-main-head strong {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 0 11px;
    border-radius: 999px;
    color: #cfe5ff;
    background: rgba(47,123,255,.14);
    border: 1px solid rgba(87,161,255,.26);
    font-size: 12px;
}

.series-season-public.fp-series-season-download {
    margin: 0;
    border-radius: 18px;
    background: rgba(0,0,0,.16);
    border: 1px solid rgba(255,255,255,.09);
}

.series-season-public.fp-series-season-download > summary {
    min-height: 0;
    padding: 14px;
    background: rgba(255,255,255,.045);
}

.series-season-public.fp-series-season-download > summary div span {
    color: #ffb0bd;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .8px;
}

.series-season-public.fp-series-season-download > summary div strong {
    margin-top: 5px;
    font-size: 16px;
}

.series-season-public.fp-series-season-download > summary em {
    border-radius: 999px;
}

.series-season-public.fp-series-season-download .series-episodes-public {
    padding: 0 14px 14px;
}

.series-episode-public.fp-series-episode-download {
    padding: 0;
    overflow: hidden;
    border-radius: 17px;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.09);
}

.series-episode-public.fp-series-episode-download > summary {
    cursor: pointer;
    list-style: none;
    padding: 13px;
    background: rgba(255,255,255,.035);
}

.series-episode-public.fp-series-episode-download > summary::-webkit-details-marker {
    display: none;
}

.fp-series-episode-summary .episode-number-badge {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(47,123,255,.58), rgba(61,149,255,.24)),
        rgba(255,255,255,.06);
    border: 1px solid rgba(137,190,255,.20);
    box-shadow: 0 10px 26px rgba(47,123,255,.12);
}

.fp-series-episode-summary .series-episode-public-info h3 {
    font-size: 16px;
}

.series-episode-public.fp-series-episode-download[open] > summary {
    background: rgba(47,123,255,.07);
}

.series-episode-public.fp-series-episode-download > .episode-desc-public {
    margin: 0;
    padding: 0 13px 12px;
}

.series-episode-public.fp-series-episode-download > .episode-download-groups {
    margin: 0;
    padding: 0 13px 13px;
}

.series-episode-public.fp-series-episode-download > .episode-no-file {
    margin: 0 13px 13px;
}

.series-episode-public.fp-series-episode-download .episode-download-group {
    border-radius: 17px;
}

.series-episode-public.fp-series-episode-download .episode-file-card {
    border-radius: 16px;
    background: rgba(255,255,255,.052);
}

.series-episode-public.fp-series-episode-download .episode-file-actions.download-actions {
    width: 100%;
}

@media (max-width: 720px) {
    .series-download-main {
        margin: 0 12px 12px;
        gap: 12px;
    }

    .series-download-main-head {
        display: grid;
        justify-items: start;
    }

    .series-season-public.fp-series-season-download > summary {
        align-items: flex-start;
    }

    .series-episode-public.fp-series-episode-download > summary {
        padding: 12px;
    }

    .fp-series-episode-summary .episode-number-badge {
        width: 40px;
        height: 40px;
    }
}
/* FILMPARTY_STEP126_SERIES_DOWNLOAD_UNIFY_END */

/* FILMPARTY_STEP126B_SERIES_DOWNLOAD_POLISH_START */
.series-download-main-head {
    justify-content: flex-start;
}

.series-download-main-head strong {
    display: none !important;
}

.series-season-public.fp-series-season-download .series-episodes-public {
    padding-top: 12px;
}

.series-season-public.fp-series-season-download .series-season-desc + .series-episodes-public {
    padding-top: 8px;
}

.series-season-public.fp-series-season-download > summary div span:empty {
    display: none;
}

.series-episode-public.fp-series-episode-download .episode-meta-row {
    min-height: 0;
}

.series-episode-public.fp-series-episode-download .episode-meta-row:empty {
    display: none;
}

.series-episode-public.fp-series-episode-download .episode-meta-row span:empty {
    display: none;
}
/* FILMPARTY_STEP126B_SERIES_DOWNLOAD_POLISH_END */

/* FILMPARTY_STEP126C_SERIES_DOWNLOAD_FLAT_UI_START */
/*
 * Senior UI decision:
 * Keep only 2 meaningful visual levels:
 * 1) Season accordion
 * 2) Open/selected episode
 * Version groups become lightweight labels, and files become movie-like download rows.
 */

.series-download-main {
    gap: 12px !important;
}

.series-download-main-head {
    display: none !important;
}

.series-download-main .series-accordion {
    gap: 12px !important;
}

/* Season: one soft shell only, less boxed than before */
.series-season-public.fp-series-season-download,
.download-version.series-season-public.fp-series-season-download {
    margin: 0 0 12px !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    background:
        linear-gradient(135deg, rgba(255,255,255,.052), rgba(255,255,255,.026)) !important;
    border: 1px solid rgba(255,255,255,.105) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.055) !important;
}

.series-season-public.fp-series-season-download > summary {
    min-height: 58px !important;
    padding: 14px 15px !important;
    background:
        linear-gradient(135deg, rgba(255,255,255,.070), rgba(255,255,255,.030)) !important;
    border-bottom: 1px solid transparent !important;
}

.series-season-public.fp-series-season-download[open] > summary {
    border-bottom-color: rgba(255,255,255,.075) !important;
}

.series-season-public.fp-series-season-download > summary div strong {
    margin: 0 !important;
    font-size: 16px !important;
}

.series-season-public.fp-series-season-download > summary div span {
    margin-bottom: 4px !important;
    letter-spacing: .45px !important;
}

.series-season-public.fp-series-season-download > summary em {
    flex: 0 0 auto !important;
    min-height: 28px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.070) !important;
    border-color: rgba(255,255,255,.105) !important;
    color: rgba(255,255,255,.72) !important;
}

/* The important fix: always put breathing room between season header and episodes */
.series-season-public.fp-series-season-download .series-season-desc {
    padding: 12px 15px 0 !important;
    margin: 0 !important;
}

.series-season-public.fp-series-season-download .series-episodes-public {
    gap: 10px !important;
    padding: 12px 14px 14px !important;
}

.series-season-public.fp-series-season-download .series-season-desc + .series-episodes-public {
    padding-top: 12px !important;
}

/* Episode: closed episodes are list rows, not heavy cards */
.series-episode-public.fp-series-episode-download {
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 16px !important;
    background: rgba(255,255,255,.040) !important;
    border: 1px solid rgba(255,255,255,.080) !important;
    box-shadow: none !important;
}

.series-episode-public.fp-series-episode-download + .series-episode-public.fp-series-episode-download {
    margin-top: 0 !important;
}

.series-episode-public.fp-series-episode-download > summary {
    min-height: 58px !important;
    padding: 12px 13px !important;
    background: transparent !important;
    border-bottom: 1px solid transparent !important;
}

.series-episode-public.fp-series-episode-download > summary:hover {
    background: rgba(255,255,255,.030) !important;
}

/* Selected/open episode must be obvious, but still clean */
.series-episode-public.fp-series-episode-download[open] {
    background:
        radial-gradient(circle at top right, rgba(47,123,255,.140), transparent 34%),
        rgba(255,255,255,.055) !important;
    border-color: rgba(87,161,255,.235) !important;
    box-shadow:
        inset 3px 0 0 rgba(87,161,255,.72),
        0 12px 34px rgba(0,0,0,.16),
        0 0 0 1px rgba(87,161,255,.055) !important;
}

.series-episode-public.fp-series-episode-download[open] > summary {
    background: rgba(47,123,255,.055) !important;
    border-bottom-color: rgba(255,255,255,.070) !important;
}

/* Episode number badge: smaller and row-friendly */
.fp-series-episode-summary .episode-number-badge,
.series-episode-public.fp-series-episode-download .episode-number-badge {
    width: 38px !important;
    height: 38px !important;
    border-radius: 13px !important;
    font-size: 14px !important;
    background:
        linear-gradient(135deg, rgba(47,123,255,.62), rgba(61,149,255,.24)),
        rgba(255,255,255,.055) !important;
    border: 1px solid rgba(137,190,255,.20) !important;
    box-shadow: 0 8px 22px rgba(47,123,255,.12) !important;
}

.fp-series-episode-summary .series-episode-public-info h3,
.series-episode-public.fp-series-episode-download .series-episode-public-info h3 {
    margin: 0 0 6px !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
}

.series-episode-public.fp-series-episode-download .episode-meta-row {
    gap: 6px !important;
}

.series-episode-public.fp-series-episode-download .episode-meta-row span {
    padding: 3px 7px !important;
    font-size: 11px !important;
    background: rgba(0,0,0,.105) !important;
    border-color: rgba(255,255,255,.060) !important;
}

/* Descriptions should not create a new card feeling */
.series-episode-public.fp-series-episode-download > .episode-desc-public {
    margin: 0 !important;
    padding: 10px 14px 0 !important;
    color: rgba(219,231,244,.82) !important;
    line-height: 1.85 !important;
}

/* Version groups: remove extra card boxes */
.series-episode-public.fp-series-episode-download > .episode-download-groups {
    display: grid !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 12px 14px 14px !important;
}

.series-episode-public.fp-series-episode-download .episode-download-group,
.series-episode-public.fp-series-episode-download .episode-download-group.dubbed,
.series-episode-public.fp-series-episode-download .episode-download-group.subtitle {
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

.series-episode-public.fp-series-episode-download .episode-download-group-title {
    margin: 0 0 8px !important;
    padding: 0 2px !important;
    color: rgba(255,255,255,.86) !important;
    font-size: 12px !important;
    font-weight: 900 !important;
}

.series-episode-public.fp-series-episode-download .episode-download-group-title .fp-reaction-icon {
    display: none !important;
}

/* Files: one-column movie-like rows, not cards inside cards */
.series-episode-public.fp-series-episode-download .episode-file-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 9px !important;
}

.series-episode-public.fp-series-episode-download .episode-file-card {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    padding: 12px 13px !important;
    border-radius: 16px !important;
    background: rgba(255,255,255,.052) !important;
    border: 1px solid rgba(255,255,255,.085) !important;
    box-shadow: none !important;
}

.series-episode-public.fp-series-episode-download .episode-file-main {
    min-width: 0 !important;
    flex: 1 1 auto !important;
}

.series-episode-public.fp-series-episode-download .episode-file-main strong {
    margin: 0 0 4px !important;
    font-size: 16px !important;
    line-height: 1.15 !important;
}

.series-episode-public.fp-series-episode-download .episode-file-main span {
    margin: 0 !important;
    color: rgba(255,255,255,.62) !important;
}

.series-episode-public.fp-series-episode-download .episode-file-actions.download-actions {
    flex: 0 0 min(520px, 100%) !important;
    width: min(520px, 100%) !important;
    min-width: min(520px, 100%) !important;
    gap: 10px !important;
}

/* Empty states become hints, not another heavy card */
.series-episode-public.fp-series-episode-download > .episode-no-file,
.series-season-public.fp-series-season-download .episode-no-file {
    margin: 0 !important;
    padding: 12px 13px !important;
    border-radius: 14px !important;
    background: rgba(0,0,0,.105) !important;
    border: 1px dashed rgba(255,255,255,.105) !important;
    color: rgba(255,255,255,.62) !important;
}

/* Mobile: keep the same visual hierarchy without squeezing */
@media (max-width: 720px) {
    .series-download-main {
        margin: 0 10px 12px !important;
        gap: 10px !important;
    }

    .series-season-public.fp-series-season-download > summary {
        min-height: 54px !important;
        padding: 12px !important;
    }

    .series-season-public.fp-series-season-download .series-episodes-public {
        padding: 10px 10px 12px !important;
        gap: 9px !important;
    }

    .series-episode-public.fp-series-episode-download > summary {
        min-height: 54px !important;
        padding: 11px !important;
    }

    .series-episode-public.fp-series-episode-download[open] {
        box-shadow:
            inset 0 3px 0 rgba(87,161,255,.72),
            0 10px 28px rgba(0,0,0,.14) !important;
    }

    .fp-series-episode-summary .episode-number-badge,
    .series-episode-public.fp-series-episode-download .episode-number-badge {
        width: 36px !important;
        height: 36px !important;
        border-radius: 12px !important;
    }

    .series-episode-public.fp-series-episode-download .episode-file-card {
        display: grid !important;
        gap: 10px !important;
        padding: 11px !important;
    }

    .series-episode-public.fp-series-episode-download .episode-file-actions.download-actions {
        width: 100% !important;
        min-width: 0 !important;
        flex: none !important;
        gap: 7px !important;
    }
}

@media (max-width: 430px) {
    .series-season-public.fp-series-season-download > summary {
        gap: 9px !important;
    }

    .series-season-public.fp-series-season-download > summary em {
        font-size: 11px !important;
        padding: 0 8px !important;
    }

    .series-episode-public.fp-series-episode-download .episode-file-actions.download-actions button {
        font-size: 11.4px !important;
        padding-left: 7px !important;
        padding-right: 7px !important;
    }
}
/* FILMPARTY_STEP126C_SERIES_DOWNLOAD_FLAT_UI_END */


/* FILMPARTY_STEP127_REFRESH_AFTER_EXPIRE_RED_GLASS_START */
.download-actions .refresh-download-btn.refresh-mode,
.episode-file-actions.download-actions .refresh-download-btn.refresh-mode {
    color: rgba(255, 238, 242, .99) !important;
    border-color: rgba(255, 73, 104, .58) !important;
    background:
        radial-gradient(circle at 20% 0%, rgba(255, 73, 104, .34), transparent 38%),
        linear-gradient(135deg, rgba(255, 48, 79, .28), rgba(255,255,255,.075)),
        rgba(255,255,255,.035) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.24),
        0 0 0 1px rgba(255, 73, 104, .18),
        0 0 34px rgba(255, 48, 79, .34),
        0 0 64px rgba(255, 48, 79, .18),
        0 14px 34px rgba(0,0,0,.26) !important;
}
/* FILMPARTY_STEP127_REFRESH_AFTER_EXPIRE_RED_GLASS_END */

/* FILMPARTY_STEP128_SEASON_BULK_COPY_UI_START */
.season-bulk-copy-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 14px 14px;
    padding: 12px 13px;
    border-radius: 18px;
    position: relative;
    background:
        linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.035)),
        radial-gradient(circle at top right, rgba(87,161,255,.14), transparent 42%);
    border: 1px solid rgba(255,255,255,.105);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 16px 34px rgba(0,0,0,.14);
    backdrop-filter: blur(18px);
}

.season-bulk-copy-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.season-bulk-copy-copy strong {
    color: rgba(255,255,255,.92);
    font-size: 13px;
    font-weight: 900;
}

.season-bulk-copy-copy span {
    color: rgba(255,255,255,.52);
    font-size: 11px;
    line-height: 1.8;
}

.season-bulk-copy-action {
    position: relative;
    flex: 0 0 auto;
}

.season-bulk-copy-trigger {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 14px;
    padding: 0 14px;
    color: rgba(255,255,255,.92);
    cursor: pointer;
    white-space: nowrap;
    background:
        linear-gradient(135deg, rgba(255,255,255,.13), rgba(255,255,255,.055)),
        rgba(47,123,255,.10);
    box-shadow: 0 0 20px rgba(87,161,255,.10);
    transition: transform .22s ease, border-color .22s ease, background .22s ease, opacity .22s ease;
}

.season-bulk-copy-trigger:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: rgba(145,194,255,.34);
    background:
        linear-gradient(135deg, rgba(255,255,255,.17), rgba(255,255,255,.07)),
        rgba(47,123,255,.16);
}

.season-bulk-copy-trigger:disabled {
    cursor: not-allowed;
    opacity: .48;
    filter: saturate(.75);
}

.season-bulk-copy-trigger span {
    font-size: 16px;
    line-height: 1;
}

.season-bulk-copy-trigger b {
    font-size: 12px;
    font-weight: 900;
}

.season-bulk-copy-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 8px);
    left: 0;
    min-width: 230px;
    display: grid;
    gap: 7px;
    padding: 9px;
    border-radius: 16px;
    background: rgba(8, 14, 28, .92);
    border: 1px solid rgba(255,255,255,.13);
    box-shadow: 0 20px 50px rgba(0,0,0,.38);
    backdrop-filter: blur(22px);
}

.season-bulk-copy-menu[hidden] {
    display: none;
}

.season-bulk-copy-option {
    width: 100%;
    min-height: 38px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 12px;
    padding: 0 11px;
    text-align: right;
    color: rgba(255,255,255,.88);
    background: rgba(255,255,255,.065);
    cursor: pointer;
}

.season-bulk-copy-option:hover {
    background: rgba(47,123,255,.16);
    border-color: rgba(87,161,255,.28);
}

@media (max-width: 680px) {
    .season-bulk-copy-bar {
        align-items: stretch;
        display: grid;
        gap: 10px;
        margin: 0 10px 12px;
        padding: 11px;
    }

    .season-bulk-copy-trigger {
        width: 100%;
    }

    .season-bulk-copy-menu {
        position: static;
        min-width: 0;
        margin-top: 8px;
    }
}
/* FILMPARTY_STEP128_SEASON_BULK_COPY_UI_END */

/* FILMPARTY_STEP131B_SEASON_BULK_COPY_MINIMAL_UI_FIXED_START */
.season-bulk-copy-copy {
    display: none !important;
}

.season-bulk-copy-bar {
    display: block !important;
    margin: 0 14px 11px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.season-bulk-copy-action {
    position: relative !important;
    width: max-content !important;
    max-width: 100% !important;
}

.season-bulk-copy-trigger {
    width: auto !important;
    min-width: 0 !important;
    min-height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 14px !important;
    border-radius: 14px !important;
    white-space: nowrap !important;
    color: rgba(255,255,255,.90) !important;
    cursor: pointer !important;
    background:
        linear-gradient(135deg, rgba(255,255,255,.105), rgba(255,255,255,.035)),
        radial-gradient(circle at 12% 0%, rgba(255,65,88,.135), transparent 42%) !important;
    border: 1px solid rgba(255,255,255,.105) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.080),
        0 10px 24px rgba(0,0,0,.115),
        0 0 18px rgba(255,44,70,.045) !important;
    transition:
        transform .22s ease,
        background .22s ease,
        border-color .22s ease,
        box-shadow .22s ease,
        opacity .22s ease !important;
}

.season-bulk-copy-trigger b {
    font-size: 12.2px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

.season-bulk-copy-trigger:hover:not(:disabled),
.season-bulk-copy-trigger[aria-expanded="true"]:not(:disabled) {
    transform: translateY(-1px) !important;
    color: #fff !important;
    background:
        linear-gradient(135deg, rgba(255,255,255,.135), rgba(255,255,255,.050)),
        radial-gradient(circle at 14% 0%, rgba(255,58,82,.205), transparent 46%) !important;
    border-color: rgba(255,110,125,.245) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.12),
        0 12px 28px rgba(0,0,0,.145),
        0 0 24px rgba(255,44,70,.075) !important;
}

.season-bulk-copy-trigger:disabled {
    opacity: .42 !important;
    cursor: not-allowed !important;
    filter: saturate(.75) !important;
}

.season-bulk-copy-menu {
    position: absolute !important;
    z-index: 35 !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: auto !important;
    min-width: 190px !important;
    display: grid !important;
    gap: 8px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.season-bulk-copy-menu[hidden] {
    display: none !important;
}

.season-bulk-copy-option {
    width: 100% !important;
    min-height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 14px !important;
    padding: 0 12px !important;
    text-align: center !important;
    color: rgba(255,255,255,.90) !important;
    font-size: 12px !important;
    font-weight: 850 !important;
    cursor: pointer !important;
    background:
        linear-gradient(135deg, rgba(255,255,255,.115), rgba(255,255,255,.045)),
        radial-gradient(circle at 14% 0%, rgba(255,65,88,.110), transparent 44%) !important;
    border: 1px solid rgba(255,255,255,.125) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.085),
        0 10px 22px rgba(0,0,0,.145),
        0 0 18px rgba(255,44,70,.045) !important;
}

.season-bulk-copy-option:hover {
    color: #fff !important;
    background:
        linear-gradient(135deg, rgba(255,255,255,.150), rgba(255,255,255,.060)),
        radial-gradient(circle at 14% 0%, rgba(255,58,82,.200), transparent 46%) !important;
    border-color: rgba(255,110,125,.245) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.13),
        0 12px 26px rgba(0,0,0,.18),
        0 0 24px rgba(255,44,70,.075) !important;
}

@media (max-width: 720px) {
    .season-bulk-copy-bar {
        margin: 0 10px 10px !important;
    }

    .season-bulk-copy-action {
        width: 100% !important;
    }

    .season-bulk-copy-trigger {
        width: 100% !important;
        min-height: 39px !important;
        padding: 0 10px !important;
    }

    .season-bulk-copy-menu {
        position: static !important;
        width: 100% !important;
        min-width: 0 !important;
        margin-top: 8px !important;
    }

    .season-bulk-copy-option {
        width: 100% !important;
    }
}

@media (max-width: 430px) {
    .season-bulk-copy-trigger b,
    .season-bulk-copy-option {
        font-size: 11.7px !important;
    }
}
/* FILMPARTY_STEP131B_SEASON_BULK_COPY_MINIMAL_UI_FIXED_END */

/* FILMPARTY_STEP132B_SEASON_BULK_POSITION_CLOSED_FIXED_START */
/*
 * Final micro-polish:
 * - Season bulk button uses "فصل N" label from PHP.
 * - Button sits between the season header and the first episode with balanced breathing room.
 * - Main download accordion and seasons stay closed on first page load.
 */
.series-season-public.fp-series-season-download .season-bulk-copy-bar {
    margin: 12px 14px 0 !important;
}

.series-season-public.fp-series-season-download .series-season-desc + .season-bulk-copy-bar {
    margin-top: 10px !important;
}

.series-season-public.fp-series-season-download .season-bulk-copy-bar + .series-episodes-public {
    padding-top: 12px !important;
}

@media (max-width: 720px) {
    .series-season-public.fp-series-season-download .season-bulk-copy-bar {
        margin: 10px 10px 0 !important;
    }

    .series-season-public.fp-series-season-download .season-bulk-copy-bar + .series-episodes-public {
        padding-top: 10px !important;
    }
}
/* FILMPARTY_STEP132B_SEASON_BULK_POSITION_CLOSED_FIXED_END */

/* FILMPARTY_STEP135B_EPISODE_BUTTON_CENTER_SVG_HIDE_BADGE_START */
/*
 * Episode accordion summary final polish:
 * - hide the blue number badge visually
 * - center "دانلود قسمت X" as one unified semi-bold label
 * - use inline SVG arrow-down-tray with stroke=currentColor
 * - keep all download/token behavior untouched
 */
.series-episode-public.fp-series-episode-download > summary.fp-series-episode-summary,
.series-episode-public.fp-series-episode-download > summary.series-episode-public-top {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 58px !important;
    text-align: center !important;
}

/* Hide the old blue square without removing DOM structure */
.series-episode-public.fp-series-episode-download .episode-number-badge,
.fp-series-episode-summary .episode-number-badge {
    display: none !important;
}

.series-episode-public.fp-series-episode-download .series-episode-public-info {
    width: 100% !important;
    min-width: 0 !important;
    text-align: center !important;
    display: grid !important;
    justify-items: center !important;
}

.series-episode-public.fp-series-episode-download .series-episode-public-info h3,
.series-episode-public.fp-series-episode-download .series-episode-download-title {
    margin: 0 0 6px !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.series-episode-public.fp-series-episode-download .series-episode-download-label {
    transform: translateY(1px) !important; /* FILMPARTY_STEP135C_EPISODE_LABEL_NUDGE */
    display: inline-flex !important;
    direction: rtl !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 0 auto !important;
    color: rgba(255,255,255,.94) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    text-align: center !important;
}

.series-episode-public.fp-series-episode-download .series-episode-download-icon {
    width: 19px !important;
    height: 19px !important;
    flex: 0 0 19px !important;
    display: inline-block !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    color: rgba(213,234,255,.96) !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    filter:
        drop-shadow(0 0 5px rgba(105,175,255,.18))
        drop-shadow(0 0 10px rgba(105,175,255,.08)) !important;
    transform: translateY(-1px) !important;
}

.series-episode-public.fp-series-episode-download[open] .series-episode-download-label {
    color: #fff !important;
}

.series-episode-public.fp-series-episode-download[open] .series-episode-download-icon {
    color: rgba(231,244,255,.99) !important;
    filter:
        drop-shadow(0 0 7px rgba(120,188,255,.24))
        drop-shadow(0 0 14px rgba(120,188,255,.10)) !important;
}

.series-episode-public.fp-series-episode-download .episode-meta-row {
    justify-content: center !important;
    text-align: center !important;
}

@media (max-width: 720px) {
    .series-episode-public.fp-series-episode-download > summary.fp-series-episode-summary,
    .series-episode-public.fp-series-episode-download > summary.series-episode-public-top {
        min-height: 56px !important;
    }

    .series-episode-public.fp-series-episode-download .series-episode-download-label {
        font-size: 13px !important;
        gap: 7px !important;
    }

    .series-episode-public.fp-series-episode-download .series-episode-download-icon {
        width: 18px !important;
        height: 18px !important;
        flex-basis: 18px !important;
    }
}

@media (max-width: 390px) {
    .series-episode-public.fp-series-episode-download .series-episode-download-label {
        font-size: 12.4px !important;
    }
}
/* FILMPARTY_STEP135B_EPISODE_BUTTON_CENTER_SVG_HIDE_BADGE_END */

/* FILMPARTY_MOVIE_POSTER_SCENES_PLAY_START */
.movie-poster-media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 24px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 22px 60px rgba(0,0,0,.5);
}

.movie-poster-media > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    aspect-ratio: auto;
}

.movie-poster-scenes-play {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
}

.movie-poster-scenes-play::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 52%, rgba(0,0,0,.42) 0%, rgba(0,0,0,.18) 42%, rgba(0,0,0,.04) 68%, transparent 78%);
    opacity: .92;
    transition: opacity .22s ease, background .22s ease;
    pointer-events: none;
}

.movie-poster-scenes-play-icon {
    position: relative;
    z-index: 1;
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    filter:
        drop-shadow(0 14px 28px rgba(0,0,0,.38))
        drop-shadow(0 0 22px rgba(37,99,235,.22));
    transition: transform .22s ease, filter .22s ease;
}

.movie-poster-scenes-play-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.movie-poster-scenes-play:hover::before {
    opacity: 1;
    background:
        radial-gradient(circle at 50% 52%, rgba(0,0,0,.5) 0%, rgba(0,0,0,.24) 44%, rgba(0,0,0,.08) 70%, transparent 80%);
}

.movie-poster-scenes-play:hover .movie-poster-scenes-play-icon {
    transform: scale(1.07);
    filter:
        drop-shadow(0 18px 34px rgba(0,0,0,.42))
        drop-shadow(0 0 28px rgba(96,165,250,.34));
}

@media (max-width: 760px) {
    .movie-poster-media {
        border-radius: 20px;
    }

    .movie-poster-scenes-play-icon {
        width: 50px;
        height: 50px;
    }
}
/* FILMPARTY_MOVIE_POSTER_SCENES_PLAY_END */


/* FILMPARTY_STEP131_DOWNLOAD_NEON_EDGE_ONLY_START
   Visual-only: replace scattered outer glow with tight neon border.
   Layout, size, flex, and JS behavior untouched.
*/
.download-actions .copy-link-btn:not(:disabled),
.episode-file-actions.download-actions .copy-link-btn:not(:disabled) {
    border: 1.5px solid rgba(118, 178, 255, .92) !important;
    background:
        linear-gradient(135deg, rgba(118, 170, 255, .20), rgba(255,255,255,.07)),
        rgba(255,255,255,.04) !important;
    box-shadow:
        inset 0 0 0 1px rgba(162, 214, 255, .42),
        inset 0 0 12px rgba(102, 171, 255, .14),
        0 0 7px rgba(102, 171, 255, .72) !important;
}

.download-actions .direct-download-btn:not(:disabled),
.episode-file-actions.download-actions .direct-download-btn:not(:disabled) {
    border: 1.5px solid rgba(74, 222, 128, .94) !important;
    background:
        linear-gradient(135deg, rgba(74, 222, 128, .20), rgba(255,255,255,.07)),
        rgba(255,255,255,.04) !important;
    box-shadow:
        inset 0 0 0 1px rgba(134, 239, 172, .40),
        inset 0 0 12px rgba(74, 222, 128, .14),
        0 0 7px rgba(74, 222, 128, .74) !important;
}

.download-actions .refresh-download-btn:not(:disabled):not(.exhausted-mode),
.episode-file-actions.download-actions .refresh-download-btn:not(:disabled):not(.exhausted-mode) {
    border: 1.5px solid rgba(82, 196, 255, .94) !important;
    background:
        linear-gradient(135deg, rgba(82, 196, 255, .22), rgba(168, 85, 247, .10)),
        rgba(255,255,255,.04) !important;
    box-shadow:
        inset 0 0 0 1px rgba(125, 211, 252, .42),
        inset 0 0 12px rgba(82, 196, 255, .14),
        0 0 7px rgba(82, 196, 255, .76) !important;
}

.download-actions .refresh-download-btn.build-link-btn:not(:disabled),
.episode-file-actions.download-actions .refresh-download-btn.build-link-btn:not(:disabled) {
    border-color: rgba(96, 208, 255, .96) !important;
    background:
        linear-gradient(135deg, rgba(82, 196, 255, .24), rgba(168, 85, 247, .12)),
        rgba(255,255,255,.04) !important;
    box-shadow:
        inset 0 0 0 1px rgba(125, 211, 252, .46),
        inset 0 0 12px rgba(82, 196, 255, .16),
        0 0 8px rgba(82, 196, 255, .80) !important;
}

.download-actions .refresh-download-btn.timer-mode:not(:disabled),
.episode-file-actions.download-actions .refresh-download-btn.timer-mode:not(:disabled) {
    border-color: rgba(121, 232, 255, .96) !important;
    background:
        linear-gradient(135deg, rgba(65, 188, 255, .22), rgba(255,255,255,.09)),
        rgba(255,255,255,.04) !important;
    box-shadow:
        inset 0 0 0 1px rgba(165, 243, 252, .44),
        inset 0 0 12px rgba(121, 232, 255, .16),
        0 0 8px rgba(121, 232, 255, .82) !important;
}

.download-actions .refresh-download-btn.refresh-mode:not(:disabled),
.episode-file-actions.download-actions .refresh-download-btn.refresh-mode:not(:disabled) {
    border-color: rgba(255, 194, 92, .96) !important;
    background:
        linear-gradient(135deg, rgba(255, 194, 92, .22), rgba(255, 119, 198, .08)),
        rgba(255,255,255,.04) !important;
    box-shadow:
        inset 0 0 0 1px rgba(253, 224, 71, .42),
        inset 0 0 12px rgba(255, 194, 92, .14),
        0 0 8px rgba(255, 194, 92, .78) !important;
}

.download-actions button:not(:disabled):hover,
.episode-file-actions.download-actions button:not(:disabled):hover {
    filter: brightness(1.06) saturate(1.08) !important;
}

.download-actions button:disabled,
.episode-file-actions.download-actions button:disabled,
.download-actions .refresh-download-btn.exhausted-mode,
.episode-file-actions.download-actions .refresh-download-btn.exhausted-mode {
    border: 1px solid rgba(255, 255, 255, .14) !important;
    background:
        linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.025)),
        rgba(255,255,255,.02) !important;
    box-shadow: none !important;
}
/* FILMPARTY_STEP131_DOWNLOAD_NEON_EDGE_ONLY_END */


/* FILMPARTY_STEP132_MOBILE_DIRECT_DOWNLOAD_TEXT_FIT_START */
@media (max-width: 720px) {
    .download-actions .direct-download-btn,
    .episode-file-actions.download-actions .direct-download-btn {
        flex: 1.38 1 0 !important;
        padding-left: 11px !important;
        padding-right: 11px !important;
        font-size: 11.6px !important;
        letter-spacing: -0.15px !important;
    }
}

@media (max-width: 390px) {
    .download-actions .direct-download-btn,
    .episode-file-actions.download-actions .direct-download-btn {
        flex: 1.40 1 0 !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        font-size: 11px !important;
        letter-spacing: -0.2px !important;
    }
}
/* FILMPARTY_STEP132_MOBILE_DIRECT_DOWNLOAD_TEXT_FIT_END */


/* FILMPARTY_STEP133_DOWNLOAD_GLASS_ACTIVE_START
   Visual-only: real-glass depth on active download buttons.
   Neon edge from STEP131 preserved; layout/behavior untouched.
*/
.download-actions button:not(:disabled):not(.exhausted-mode),
.episode-file-actions.download-actions button:not(:disabled):not(.exhausted-mode) {
    backdrop-filter: blur(20px) saturate(1.48) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.48) !important;
}

.download-actions button:not(:disabled):not(.exhausted-mode)::before,
.episode-file-actions.download-actions button:not(:disabled):not(.exhausted-mode)::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 7%;
    right: 7%;
    height: 50%;
    border-radius: inherit;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, .36) 0%,
        rgba(255, 255, 255, .10) 52%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 0;
}

.download-actions button:not(:disabled):not(.exhausted-mode) > *,
.episode-file-actions.download-actions button:not(:disabled):not(.exhausted-mode) > * {
    position: relative;
    z-index: 1;
}

.download-actions .copy-link-btn:not(:disabled),
.episode-file-actions.download-actions .copy-link-btn:not(:disabled) {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .28) 0%, rgba(255, 255, 255, .06) 34%, transparent 56%),
        linear-gradient(135deg, rgba(118, 170, 255, .20) 0%, rgba(102, 171, 255, .09) 54%, rgba(255, 255, 255, .04) 100%) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .46),
        inset 0 -1px 0 rgba(0, 0, 0, .15),
        inset 0 12px 24px rgba(255, 255, 255, .07),
        inset 0 0 0 1px rgba(162, 214, 255, .40),
        0 0 7px rgba(102, 171, 255, .72) !important;
}

.download-actions .direct-download-btn:not(:disabled),
.episode-file-actions.download-actions .direct-download-btn:not(:disabled) {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .28) 0%, rgba(255, 255, 255, .06) 34%, transparent 56%),
        linear-gradient(135deg, rgba(74, 222, 128, .20) 0%, rgba(52, 211, 153, .09) 54%, rgba(255, 255, 255, .04) 100%) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .46),
        inset 0 -1px 0 rgba(0, 0, 0, .15),
        inset 0 12px 24px rgba(255, 255, 255, .07),
        inset 0 0 0 1px rgba(134, 239, 172, .38),
        0 0 7px rgba(74, 222, 128, .74) !important;
}

.download-actions .refresh-download-btn:not(:disabled):not(.exhausted-mode),
.episode-file-actions.download-actions .refresh-download-btn:not(:disabled):not(.exhausted-mode) {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .28) 0%, rgba(255, 255, 255, .06) 34%, transparent 56%),
        linear-gradient(135deg, rgba(82, 196, 255, .22) 0%, rgba(168, 85, 247, .10) 54%, rgba(255, 255, 255, .04) 100%) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .46),
        inset 0 -1px 0 rgba(0, 0, 0, .15),
        inset 0 12px 24px rgba(255, 255, 255, .07),
        inset 0 0 0 1px rgba(125, 211, 252, .40),
        0 0 7px rgba(82, 196, 255, .76) !important;
}

.download-actions .refresh-download-btn.build-link-btn:not(:disabled),
.episode-file-actions.download-actions .refresh-download-btn.build-link-btn:not(:disabled) {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .30) 0%, rgba(255, 255, 255, .07) 34%, transparent 56%),
        linear-gradient(135deg, rgba(82, 196, 255, .24) 0%, rgba(168, 85, 247, .12) 54%, rgba(255, 255, 255, .04) 100%) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .48),
        inset 0 -1px 0 rgba(0, 0, 0, .15),
        inset 0 12px 24px rgba(255, 255, 255, .08),
        inset 0 0 0 1px rgba(125, 211, 252, .42),
        0 0 8px rgba(82, 196, 255, .80) !important;
}

.download-actions .refresh-download-btn.timer-mode:not(:disabled),
.episode-file-actions.download-actions .refresh-download-btn.timer-mode:not(:disabled) {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .30) 0%, rgba(255, 255, 255, .07) 34%, transparent 56%),
        linear-gradient(135deg, rgba(65, 188, 255, .22) 0%, rgba(255, 255, 255, .10) 54%, rgba(255, 255, 255, .04) 100%) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .48),
        inset 0 -1px 0 rgba(0, 0, 0, .15),
        inset 0 12px 24px rgba(255, 255, 255, .08),
        inset 0 0 0 1px rgba(165, 243, 252, .42),
        0 0 8px rgba(121, 232, 255, .82) !important;
}

.download-actions .refresh-download-btn.refresh-mode:not(:disabled),
.episode-file-actions.download-actions .refresh-download-btn.refresh-mode:not(:disabled) {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .30) 0%, rgba(255, 255, 255, .07) 34%, transparent 56%),
        linear-gradient(135deg, rgba(255, 194, 92, .22) 0%, rgba(255, 119, 198, .08) 54%, rgba(255, 255, 255, .04) 100%) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .48),
        inset 0 -1px 0 rgba(0, 0, 0, .15),
        inset 0 12px 24px rgba(255, 255, 255, .08),
        inset 0 0 0 1px rgba(253, 224, 71, .40),
        0 0 8px rgba(255, 194, 92, .78) !important;
}

.download-actions button:not(:disabled):not(.exhausted-mode):hover::before,
.episode-file-actions.download-actions button:not(:disabled):not(.exhausted-mode):hover::before {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, .46) 0%,
        rgba(255, 255, 255, .14) 52%,
        transparent 100%
    );
}

.download-actions button:disabled::before,
.episode-file-actions.download-actions button:disabled::before,
.download-actions .refresh-download-btn.exhausted-mode::before,
.episode-file-actions.download-actions .refresh-download-btn.exhausted-mode::before {
    content: none !important;
}
/* FILMPARTY_STEP133_DOWNLOAD_GLASS_ACTIVE_END */


/* FILMPARTY_STEP134_MOVIE_DESCRIPTION_FLOW_START
   Summary stays after header blocks; full-width centered with safe edge inset.
*/
.movie-main-info {
    display: grid !important;
    grid-template-columns: 240px 1fr !important;
    grid-template-rows: auto auto !important;
    align-items: start !important;
    column-gap: 28px !important;
    row-gap: 0 !important;
    padding-bottom: clamp(18px, 2.8vw, 32px) !important;
}

.movie-info-content {
    display: contents !important;
}

.movie-main-info .movie-poster-large {
    grid-column: 1 !important;
    grid-row: 1 !important;
}

.movie-main-info .movie-info-head {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    padding-top: 110px !important;
}

.movie-main-info .movie-info-head > :last-child {
    margin-bottom: 0 !important;
}

.movie-main-info .fp-movie-description-flow {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    justify-self: center !important;
    width: min(720px, calc(100% - 40px)) !important;
    max-width: calc(100% - 40px) !important;
    margin: 18px auto 0 !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
}

.movie-main-info .fp-movie-description-flow .movie-description {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    line-height: 2 !important;
    overflow-wrap: anywhere !important;
}

@media (max-width: 760px) {
    .movie-main-info {
        grid-template-columns: 120px 1fr !important;
        column-gap: 14px !important;
        padding-bottom: 24px !important;
    }

    .movie-main-info .movie-info-head {
        padding-top: 72px !important;
    }

    .movie-main-info .fp-movie-description-flow {
        width: min(100%, calc(100% - 28px)) !important;
        max-width: calc(100% - 28px) !important;
        margin-top: 14px !important;
        padding: 0 14px !important;
    }

    .movie-main-info .fp-movie-description-flow .movie-description {
        font-size: 13px !important;
        line-height: 1.95 !important;
    }
}
/* FILMPARTY_STEP134_MOVIE_DESCRIPTION_FLOW_END */


/* FILMPARTY_POSTER_AND_ADMIN_NOTE_FINAL_START
   Poster: natural 2:3 ratio (no max-height crop). Desktop 240px column;
   mobile 128px column (not squeezed, not oversized).
   Admin note: full-width centered row between header and description.
*/
.movie-main-info .movie-poster-large {
    align-self: start !important;
    margin-top: 110px !important;
    transform: none !important;
}

.movie-main-info .movie-poster-media {
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    aspect-ratio: 2 / 3 !important;
    height: auto !important;
    margin-inline: auto !important;
}

.movie-main-info .movie-poster-media > img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
}

@media (min-width: 761px) {
    .movie-main-info .movie-poster-large {
        transform: none !important;
    }
}

@media (max-width: 760px) {
    .movie-main-info {
        grid-template-columns: 128px 1fr !important;
        column-gap: 14px !important;
    }

    .movie-main-info .movie-poster-large {
        margin-top: 72px !important;
        transform: none !important;
    }
}

.movie-main-info .fp-movie-admin-note-flow {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    justify-self: center !important;
    width: min(720px, calc(100% - 40px)) !important;
    max-width: calc(100% - 40px) !important;
    margin: 14px auto 0 !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
}

.movie-main-info .fp-movie-admin-note-flow .admin-note-box {
    width: 100% !important;
    margin: 0 !important;
    text-align: center !important;
}

.movie-main-info .fp-movie-admin-note-flow + .fp-movie-description-flow {
    grid-row: 3 !important;
    margin-top: 14px !important;
}

@media (max-width: 760px) {
    .movie-main-info .fp-movie-admin-note-flow {
        width: min(100%, calc(100% - 28px)) !important;
        max-width: calc(100% - 28px) !important;
        margin-top: 12px !important;
        padding: 0 14px !important;
    }

    .movie-main-info .fp-movie-admin-note-flow + .fp-movie-description-flow {
        margin-top: 12px !important;
    }
}
/* FILMPARTY_POSTER_AND_ADMIN_NOTE_FINAL_END */

/* FILMPARTY_MOVIE_BANNER_MASCOT_START
   Bubblegum mascot — bottom pinned to banner top edge; no top crop.
*/
.movie-floating-page:has(.fp-movie-banner-mascot-slot) {
    overflow-x: hidden;
    overflow-y: visible;
}

.movie-floating-page:has(.fp-movie-banner-mascot-slot) .movie-glass-panel {
    overflow: visible;
}

.movie-floating-page .movie-hero-banner-shell {
    position: relative;
    overflow: visible;
    z-index: 8;
}

.movie-floating-page .movie-hero-strip {
    border-radius: 34px 34px 0 0;
}

.movie-floating-page .fp-movie-banner-mascot-slot {
    position: absolute;
    top: 4px;
    left: calc(100% - clamp(108px, 14vw, 168px));
    width: clamp(44px, 10.5vw, 68px);
    height: 0;
    overflow: visible;
    transform: translateX(-50%);
    z-index: 40;
    pointer-events: none;
}

.movie-floating-page .fp-movie-banner-mascot-slot .fp-movie-banner-sit-edge {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 480 / 600;
    display: block;
    object-fit: contain;
    object-position: center bottom;
    clip-path: inset(0 0 9.5% 0);
    -webkit-clip-path: inset(0 0 9.5% 0);
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

@media (min-width: 761px) {
    .movie-floating-page .fp-movie-banner-mascot-slot {
        width: clamp(50px, 6.5vw, 78px);
        left: calc(100% - clamp(132px, 12vw, 200px));
    }
}

@media (max-width: 760px) {
    .movie-floating-page .fp-movie-banner-mascot-slot {
        width: clamp(52px, 13vw, 72px);
        left: calc(100% - clamp(80px, 16vw, 120px));
    }

    .movie-floating-page .fp-movie-banner-mascot-slot .fp-movie-banner-sit-edge {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 480 / 600;
    }
}
/* FILMPARTY_MOVIE_BANNER_MASCOT_END */

/* FILMPARTY_ONDEMAND_BUILD_UI_START
   On-demand download builds: live glassy progress on the buttons.
   The fill bar is a ::before whose width follows --build-progress (set from the
   REAL server percent), so it animates smoothly between poll updates. */
.download-row.download-building-row,
.episode-file-card.download-building-row {
    position: relative;
}

.download-actions .refresh-download-btn.building-mode,
.episode-file-actions.download-actions .refresh-download-btn.building-mode {
    direction: ltr !important;
    color: rgba(240,248,255,.99) !important;
    border-color: rgba(139, 233, 195, .55) !important;
    background:
        linear-gradient(135deg, rgba(64,214,150,.12), rgba(82,196,255,.08)),
        rgba(255,255,255,.045) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.20),
        0 0 0 1px rgba(64,214,150,.16),
        0 0 26px rgba(64,214,150,.22),
        0 12px 30px rgba(0,0,0,.22) !important;
    position: relative;
    overflow: hidden;
    animation: fp-build-breathe 2.6s ease-in-out infinite;
}

/* the liquid progress fill */
.download-actions .refresh-download-btn.building-mode::before,
.episode-file-actions.download-actions .refresh-download-btn.building-mode::before {
    content: "";
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: var(--build-progress, 0%);
    min-width: 6%;
    border-radius: inherit;
    background:
        linear-gradient(180deg, rgba(255,255,255,.16), transparent 55%),
        linear-gradient(90deg, rgba(64,214,150,.50), rgba(82,196,255,.42));
    box-shadow: 1px 0 10px rgba(94, 226, 174, .45);
    transition: width .7s cubic-bezier(.22, 1, .36, 1);
    pointer-events: none;
}

/* glass glint sweeping across */
.download-actions .refresh-download-btn.building-mode::after,
.episode-file-actions.download-actions .refresh-download-btn.building-mode::after {
    content: "";
    position: absolute;
    inset: -40% -20%;
    background: linear-gradient(100deg,
        transparent 30%,
        rgba(255,255,255,.16) 48%,
        rgba(255,255,255,.05) 52%,
        transparent 70%);
    animation: fp-build-shimmer 1.9s cubic-bezier(.4, 0, .6, 1) infinite;
    pointer-events: none;
}

.download-actions .refresh-download-btn.building-mode > span,
.episode-file-actions.download-actions .refresh-download-btn.building-mode > span {
    position: relative;
    z-index: 1;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 1px 6px rgba(0,0,0,.35);
}

@keyframes fp-build-shimmer {
    0%   { transform: translateX(-60%); }
    100% { transform: translateX(60%); }
}

@keyframes fp-build-breathe {
    0%, 100% { filter: brightness(1); }
    50%      { filter: brightness(1.10); }
}

.download-building-row .download-timer {
    direction: rtl;
    font-size: 12px;
    color: rgba(190, 240, 215, .85);
}

/* season bulk-copy trigger while its episodes are being materialized */
.season-bulk-copy-trigger.season-bulk-building {
    direction: ltr;
    position: relative;
    overflow: hidden;
    color: rgba(240,248,255,.99);
    border-color: rgba(139, 233, 195, .55);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.20),
        0 0 0 1px rgba(64,214,150,.16),
        0 0 24px rgba(64,214,150,.20);
    animation: fp-build-breathe 2.6s ease-in-out infinite;
}

.season-bulk-copy-trigger.season-bulk-building::before {
    content: "";
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: var(--bulk-progress, 0%);
    min-width: 6%;
    border-radius: inherit;
    background:
        linear-gradient(180deg, rgba(255,255,255,.16), transparent 55%),
        linear-gradient(90deg, rgba(64,214,150,.48), rgba(82,196,255,.40));
    box-shadow: 1px 0 10px rgba(94, 226, 174, .45);
    transition: width .7s cubic-bezier(.22, 1, .36, 1);
    pointer-events: none;
}

.season-bulk-copy-trigger.season-bulk-building::after {
    content: "";
    position: absolute;
    inset: -40% -20%;
    background: linear-gradient(100deg,
        transparent 30%,
        rgba(255,255,255,.16) 48%,
        rgba(255,255,255,.05) 52%,
        transparent 70%);
    animation: fp-build-shimmer 1.9s cubic-bezier(.4, 0, .6, 1) infinite;
    pointer-events: none;
}

.season-bulk-copy-trigger.season-bulk-building > * {
    position: relative;
    z-index: 1;
    font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
    .download-actions .refresh-download-btn.building-mode,
    .episode-file-actions.download-actions .refresh-download-btn.building-mode,
    .season-bulk-copy-trigger.season-bulk-building,
    .download-actions .refresh-download-btn.building-mode::after,
    .episode-file-actions.download-actions .refresh-download-btn.building-mode::after,
    .season-bulk-copy-trigger.season-bulk-building::after {
        animation: none;
    }
}
/* FILMPARTY_ONDEMAND_BUILD_UI_END */

/* FILMPARTY_DL_BTN_UX_START
   Download-button UX redesign: the idle state is ONE inviting primary CTA
   («دریافت لینک دانلود»); the copy + direct buttons stay hidden until a link
   exists, so a fresh row never looks disabled/broken. */
.download-actions [hidden],
.episode-file-actions[hidden] { display: none !important; }

.download-actions .dl-ico,
.episode-file-actions .dl-ico {
    vertical-align: -3px;
    margin-inline-end: 7px;
    flex: 0 0 auto;
}

/* the primary "get download link" call to action */
.download-actions .refresh-download-btn.build-cta,
.episode-file-actions.download-actions .refresh-download-btn.build-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 46px !important;
    padding: 0 22px;
    font-weight: 900;
    font-size: 15px;
    letter-spacing: .2px;
    color: #eaf6ff !important;
    border: 1px solid rgba(120, 200, 255, .55) !important;
    border-radius: 15px;
    background:
        radial-gradient(120% 140% at 20% -20%, rgba(255,255,255,.28), transparent 45%),
        linear-gradient(135deg, #1f6fff 0%, #34a7ff 55%, #22d3ee 120%) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.35),
        0 6px 18px rgba(31,111,255,.38),
        0 0 0 0 rgba(52,167,255,.55) !important;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .3s ease, filter .16s ease;
    animation: fp-cta-attract 3.2s ease-in-out infinite;
}
.download-actions .refresh-download-btn.build-cta:hover,
.episode-file-actions.download-actions .refresh-download-btn.build-cta:hover {
    transform: translateY(-2px);
    filter: brightness(1.06) saturate(1.05);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.4),
        0 10px 26px rgba(31,111,255,.5),
        0 0 0 4px rgba(52,167,255,.16) !important;
    animation: none;
}
.download-actions .refresh-download-btn.build-cta:active,
.episode-file-actions.download-actions .refresh-download-btn.build-cta:active {
    transform: translateY(0) scale(.985);
}

/* gentle breathing halo that draws the eye without being noisy */
@keyframes fp-cta-attract {
    0%, 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 18px rgba(31,111,255,.38), 0 0 0 0 rgba(52,167,255,.0); }
    50%      { box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 22px rgba(31,111,255,.46), 0 0 0 5px rgba(52,167,255,.12); }
}

/* the real "download now" button, revealed once the link is ready */
.download-actions .direct-download-btn.direct-ready,
.episode-file-actions.download-actions .direct-download-btn.direct-ready {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    font-weight: 900;
    color: #06231a !important;
    border: 1px solid rgba(74, 222, 128, .7) !important;
    border-radius: 14px;
    background:
        radial-gradient(120% 140% at 20% -20%, rgba(255,255,255,.55), transparent 45%),
        linear-gradient(135deg, #34d399 0%, #4ade80 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 6px 16px rgba(52,211,153,.34) !important;
    transition: transform .16s ease, filter .16s ease;
}
.download-actions .direct-download-btn.direct-ready:hover,
.episode-file-actions.download-actions .direct-download-btn.direct-ready:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

/* copy = clear glass secondary once visible */
.download-actions .copy-link-btn:not([hidden]),
.episode-file-actions.download-actions .copy-link-btn:not([hidden]) {
    min-height: 44px;
    padding: 0 16px;
    font-weight: 800;
    color: rgba(233,244,255,.96) !important;
    border: 1px solid rgba(255,255,255,.22) !important;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.04)) !important;
    transition: transform .16s ease, filter .16s ease;
}
.download-actions .copy-link-btn:not([hidden]):hover,
.episode-file-actions.download-actions .copy-link-btn:not([hidden]):hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

/* timer = calm status pill, clearly NOT a button (it's the link's validity) */
.download-actions .refresh-download-btn.timer-mode,
.episode-file-actions.download-actions .refresh-download-btn.timer-mode {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-height: 44px;
    padding: 4px 16px;
    cursor: default;
    animation: none;
}
.download-actions .refresh-download-btn.timer-mode .dl-timer-label {
    font-size: 10px;
    font-weight: 700;
    opacity: .72;
    letter-spacing: .3px;
}
.download-actions .refresh-download-btn.timer-mode .dl-timer-clock {
    font-size: 15px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    direction: ltr;
}

@media (prefers-reduced-motion: reduce) {
    .download-actions .refresh-download-btn.build-cta,
    .episode-file-actions.download-actions .refresh-download-btn.build-cta { animation: none; }
}
/* FILMPARTY_DL_BTN_UX_END */

/* FILMPARTY_DL_BTN_IOS_START
   iOS Safari overrides button text via -webkit-text-fill-color and can force a
   system/white fill that ignores `color`, making the label blend into the
   button. Pin the fill colour explicitly for every download-action button so
   the text stays readable on iOS/iPadOS. Also reset the native button chrome. */
.download-actions .copy-link-btn,
.download-actions .direct-download-btn,
.download-actions .refresh-download-btn,
.episode-file-actions.download-actions .copy-link-btn,
.episode-file-actions.download-actions .direct-download-btn,
.episode-file-actions.download-actions .refresh-download-btn,
.season-bulk-copy-trigger,
.season-bulk-copy-option {
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

/* primary CTA + building + refresh: light text on dark/coloured fill */
.download-actions .refresh-download-btn.build-cta,
.episode-file-actions.download-actions .refresh-download-btn.build-cta,
.download-actions .refresh-download-btn.building-mode,
.episode-file-actions.download-actions .refresh-download-btn.building-mode,
.download-actions .refresh-download-btn.refresh-mode,
.episode-file-actions.download-actions .refresh-download-btn.refresh-mode {
    -webkit-text-fill-color: #eaf6ff !important;
}
.download-actions .refresh-download-btn.build-cta .dl-ico,
.download-actions .refresh-download-btn.refresh-mode .dl-ico {
    -webkit-text-fill-color: currentColor;
}

/* green "download now": dark text must survive iOS's white override */
.download-actions .direct-download-btn.direct-ready,
.episode-file-actions.download-actions .direct-download-btn.direct-ready {
    -webkit-text-fill-color: #06231a !important;
    color: #06231a !important;
}
.download-actions .direct-download-btn.direct-ready .dl-ico {
    -webkit-text-fill-color: #06231a;
}

/* copy (glass) + timer pill: readable light text */
.download-actions .copy-link-btn:not([hidden]),
.episode-file-actions.download-actions .copy-link-btn:not([hidden]),
.download-actions .refresh-download-btn.timer-mode,
.episode-file-actions.download-actions .refresh-download-btn.timer-mode {
    -webkit-text-fill-color: rgba(233,244,255,.96) !important;
}

/* exhausted state: keep the muted label visible */
.download-actions .refresh-download-btn.exhausted-mode,
.episode-file-actions.download-actions .refresh-download-btn.exhausted-mode {
    -webkit-text-fill-color: rgba(255,225,225,.9) !important;
}

/* season bulk-copy trigger label on iOS */
.season-bulk-copy-trigger,
.season-bulk-copy-trigger b {
    -webkit-text-fill-color: currentColor;
}
/* FILMPARTY_DL_BTN_IOS_END */
