.arrowverse-page {
    width: 100%;
}

.arrowverse-container {
    width: calc(100% - 48px);
    max-width: 1900px;
    margin: 0 auto;
    padding: 22px 0 70px;
}

.arrowverse-topbar {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.arrowverse-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #8996a7;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.arrowverse-back:hover {
    color: #ffffff;
}

.arrowverse-cycle-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.arrowverse-cycle-actions select {
    min-width: 165px;
    height: 42px;
    padding: 0 13px;
    outline: 0;
    background: #101720;
    border: 1px solid #2a3542;
    border-radius: 8px;
    color: #ffffff;
    color-scheme: dark;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
}

.btn-new-cycle {
    min-height: 42px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: #101720;
    border: 1px solid #2a3542;
    border-radius: 8px;
    color: #a0acbb;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.btn-new-cycle:hover {
    border-color: #8b5cf6;
    color: #ffffff;
}

.arrowverse-focus-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(410px, 1fr);
    gap: 18px;
}

.current-episode-card {
    --serie-color: #8b5cf6;
    position: relative;
    min-height: 500px;
    display: grid;
    grid-template-columns: minmax(420px, 0.95fr) minmax(0, 1.4fr);
    overflow: hidden;
    background: #101720;
    border: 1px solid #293541;
    border-radius: 16px;
}

.current-episode-card::before {
    content: "";
    position: absolute;
    z-index: 3;
    top: 0;
    left: 0;
    width: 7px;
    height: 100%;
    background: var(--serie-color);
}

.current-episode-visual {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    background: #080c11;
}

.current-episode-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient( 90deg, rgba(0, 0, 0, 0.08), rgba(16, 23, 32, 0.92) 100%);
}

.current-episode-visual img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.current-series-label {
    position: absolute;
    z-index: 2;
    bottom: 22px;
    left: 25px;
    padding: 8px 13px;
    background: var(--serie-color);
    border-radius: 7px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
}

.current-episode-content {
    position: relative;
    z-index: 2;
    padding: 42px;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.current-episode-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.current-eyebrow,
.info-eyebrow {
    color: #9b6cff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.current-order {
    color: #728092;
    font-size: 14px;
    font-weight: 800;
}

.current-episode-content h1 {
    margin: 14px 0 0;
    color: #ffffff;
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1.02;
    letter-spacing: -1.8px;
}

.current-episode-number {
    margin-top: 10px;
    color: var(--serie-color);
    font-size: 21px;
    font-weight: 900;
}

.current-episode-meta {
    margin-top: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 17px;
}

.current-episode-meta span {
    color: #95a1af;
    font-size: 15px;
}

.current-episode-meta i {
    margin-right: 5px;
    color: var(--serie-color);
}

.current-progress {
    margin-top: 32px;
}

.current-progress-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.current-progress-info strong {
    color: #ffffff;
    font-size: 17px;
}

.current-progress-info span {
    color: var(--serie-color);
    font-size: 17px;
    font-weight: 900;
}

.current-progress-bar {
    height: 8px;
    margin-top: 9px;
    overflow: hidden;
    background: #29323c;
    border-radius: 999px;
}

.current-progress-inner {
    height: 100%;
    background: var(--serie-color);
    border-radius: inherit;
}

.current-watch-form {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #28323d;
}

.current-watch-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 200px));
    gap: 10px;
}

.current-watch-fields input {
    width: 100%;
    height: 43px;
    padding: 0 11px;
    outline: 0;
    background: #090f15;
    border: 1px solid #2a3542;
    border-radius: 7px;
    color: #ffffff;
    color-scheme: dark;
    font-family: inherit;
    font-size: 14px;
}

.current-watch-actions {
    margin-top: 11px;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.btn-watch-secondary,
.btn-watch-main {
    min-height: 43px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 7px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.btn-watch-secondary {
    background: #151d26;
    border: 1px solid #2b3542;
    color: #9ba6b4;
}

.btn-watch-main {
    background: var(--serie-color);
    border: 1px solid var(--serie-color);
    color: #ffffff;
}

.next-five-panel {
    min-width: 0;
    padding: 22px;
    background: #101720;
    border: 1px solid #293541;
    border-radius: 16px;
}

.next-five-heading {
    margin-bottom: 15px;
}

.next-five-heading>span {
    color: #9b6cff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.next-five-heading h2 {
    margin: 5px 0 0;
    color: #ffffff;
    font-size: 24px;
}

.next-five-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.next-five-card {
    --serie-color: #8b5cf6;
    position: relative;
    min-width: 0;
    min-height: 75px;
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    overflow: hidden;
    background: #0b1219;
    border: 1px solid #25303c;
    border-radius: 9px;
}

.next-five-card::before {
    content: "";
    position: absolute;
    z-index: 4;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--serie-color);
}

.next-five-image {
    min-height: 86px;
    overflow: hidden;
    background: #05080c;
}

.next-five-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.next-five-content {
    min-width: 0;
    padding: 9px 11px;
}

.next-five-top {
    display: flex;
    align-items: center;
    gap: 7px;
}

.next-five-position {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--serie-color);
    border-radius: 5px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
}

.next-five-series {
    overflow: hidden;
    color: var(--serie-color);
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.next-five-content>strong {
    display: block;
    margin-top: 5px;
    color: #ffffff;
    font-size: 16px;
}

.next-five-title {
    display: block;
    margin-top: 2px;
    overflow: hidden;
    color: #8a97a7;
    font-size: 11px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.next-five-meta {
    margin-top: 5px;
    display: flex;
    justify-content: space-between;
    color: #667485;
    font-size: 10px;
}

.arrowverse-info-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1.15fr 0.8fr 1.15fr;
    gap: 18px;
}

.arrowverse-info-card {
    min-width: 0;
    min-height: 310px;
    padding: 24px;
    background: #101720;
    border: 1px solid #293541;
    border-radius: 15px;
}

.arrowverse-info-card h2 {
    margin: 7px 0 0;
    color: #ffffff;
    font-size: 25px;
}

.cycle-stats-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.cycle-stats-grid>div {
    min-height: 105px;
    padding: 13px;
    display: flex;
    flex-direction: column;
    background: #0b1219;
    border: 1px solid #25303c;
    border-radius: 9px;
}

.cycle-stats-grid i {
    color: #9b6cff;
    font-size: 16px;
}

.cycle-stats-grid strong {
    margin-top: auto;
    color: #ffffff;
    font-size: 20px;
}

.cycle-stats-grid span {
    margin-top: 4px;
    color: #778596;
    font-size: 11px;
}

.pause-cycle>p,
.about-cycle>p {
    margin: 20px 0 0;
    color: #8996a7;
    font-size: 14px;
    line-height: 1.7;
}

.pause-last-watch {
    margin-top: 20px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    background: #0b1219;
    border: 1px solid #25303c;
    border-radius: 9px;
}

.pause-last-watch span {
    color: #748293;
    font-size: 12px;
}

.pause-last-watch strong {
    margin-top: 5px;
    color: #ffffff;
    font-size: 18px;
}

.arc-mini-progress {
    margin-top: 18px;
}

.arc-mini-progress>div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.arc-mini-progress span {
    overflow: hidden;
    color: #949fac;
    font-size: 12px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.arc-mini-progress strong {
    color: #9b6cff;
    font-size: 14px;
}

.arc-mini-bar {
    height: 7px;
    margin-top: 8px;
    overflow: hidden;
    background: #29323c;
    border-radius: 999px;
}

.arc-mini-bar>div {
    height: 100%;
    background: #8b5cf6;
}

.about-cycle-details {
    margin-top: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.about-cycle-details span {
    padding: 10px 13px;
    display: flex;
    flex-direction: column;
    background: #0b1219;
    border: 1px solid #25303c;
    border-radius: 8px;
    color: #798697;
    font-size: 11px;
}

.about-cycle-details strong {
    margin-bottom: 3px;
    color: #ffffff;
    font-size: 17px;
}

.arrowverse-order-section {
    margin-top: 55px;
}

.order-heading {
    margin-bottom: 22px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.order-heading h2 {
    margin: 5px 0 0;
    color: #ffffff;
    font-size: 34px;
}

.arrowverse-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.arrowverse-legend span {
    padding: 6px 9px;
    border-radius: 6px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
}

.legend-arrow {
    background: #218838;
}

.legend-flash {
    background: #d12b3a;
}

.legend-supergirl {
    background: #3478e5;
}

.legend-legends {
    background: #70757b;
}

.legend-black-lightning {
    background: #e68113;
}

.legend-batwoman {
    background: #050505;
    border: 1px solid #343434;
}

.arrowverse-arcs {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.arrowverse-arc {
    overflow: hidden;
    background: #101720;
    border: 1px solid #25303c;
    border-radius: 10px;
}

.arrowverse-arc-header {
    width: 100%;
    min-height: 58px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: transparent;
    border: 0;
    color: inherit;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.arrowverse-arc-header>div:first-child {
    display: flex;
    align-items: baseline;
    gap: 9px;
}

.arrowverse-arc-header span {
    color: #9b6cff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.3px;
}

.arrowverse-arc-header strong {
    color: #ffffff;
    font-size: 18px;
}

.arrowverse-arc-header-right {
    display: flex;
    align-items: center;
    gap: 13px;
}

.arrowverse-arc-header-right .arrowverse-arc-count {
    color: #7e8b9b;
    font-size: 12px;
    letter-spacing: 0;
}

.arrowverse-arc-header-right i {
    color: #718092;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.arrowverse-arc.open .arrowverse-arc-header-right i {
    transform: rotate(180deg);
}

.arrowverse-arc-content {
    display: none;
    padding: 0 10px 10px;
}

.arrowverse-arc.open .arrowverse-arc-content {
    display: block;
}

.arrowverse-order-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 8px;
}

.order-episode-card {
    --serie-color: #8b5cf6;
    position: relative;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    background: #0d141c;
    border: 1px solid #25303c;
    border-radius: 8px;
    color: inherit;
    font-family: inherit;
    text-align: left;
}

.order-episode-card::before {
    content: "";
    position: absolute;
    z-index: 5;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--serie-color);
}

.order-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 8;
    overflow: hidden;
    background: #070b0f;
}

.order-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.order-card-number {
    position: absolute;
    top: 5px;
    left: 8px;
    padding: 3px 5px;
    background: rgba(5, 8, 11, 0.84);
    border-radius: 4px;
    color: #ffffff;
    font-size: 9px;
    font-weight: 900;
}

.order-card-viewed {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #22a05a;
    border-radius: 50%;
    color: #ffffff;
    font-size: 8px;
}

.order-card-content {
    min-width: 0;
    padding: 8px 9px 10px;
}

.order-card-series {
    display: block;
    overflow: hidden;
    color: var(--serie-color);
    font-size: 9px;
    font-weight: 900;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.order-card-content>strong {
    display: block;
    margin-top: 3px;
    color: #ffffff;
    font-size: 13px;
}

.order-card-title {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: #748293;
    font-size: 9px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.order-episode-card.viewed {
    --serie-color: #69717b;
    background: #111419;
    border-color: #30353b;
    cursor: pointer;
}

.order-episode-card.viewed .order-card-image img {
    filter: grayscale(1) brightness(0.48);
}

.order-episode-card.viewed .order-card-series {
    color: #747b84;
}

.order-episode-card.viewed .order-card-content>strong {
    color: #9aa0a7;
}

.order-episode-card.viewed .order-card-title {
    color: #656c75;
}

.order-episode-card.viewed::before {
    background: #626a73;
}

.order-episode-card.viewed:hover {
    border-color: #69717b;
}

.serie-arrow {
    --serie-color: #218838;
}

.serie-flash {
    --serie-color: #d12b3a;
}

.serie-supergirl {
    --serie-color: #3478e5;
}

.serie-legends {
    --serie-color: #70757b;
}

.serie-black-lightning {
    --serie-color: #e68113;
}

.serie-batwoman {
    --serie-color: #050505;
}

.serie-default {
    --serie-color: #8b5cf6;
}

.arrowverse-empty,
.arrowverse-finished {
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: #101720;
    border: 1px solid #293541;
    border-radius: 16px;
    text-align: center;
}

.arrowverse-empty>i,
.arrowverse-finished>i {
    color: #9b6cff;
    font-size: 45px;
}

.arrowverse-empty h1,
.arrowverse-finished h1 {
    margin: 16px 0 8px;
    color: #ffffff;
    font-size: 35px;
}

.arrowverse-empty p,
.arrowverse-finished p {
    color: #8491a1;
    font-size: 15px;
}

body.modal-open {
    overflow: hidden;
}

.edit-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.edit-modal.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.edit-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(5px);
}

.edit-modal-box {
    position: relative;
    z-index: 1;
    width: min(100%, 460px);
    padding: 27px;
    background: #101720;
    border: 1px solid #2b3542;
    border-radius: 14px;
}

.edit-modal-box h2 {
    margin: 6px 0 20px;
    color: #ffffff;
    font-size: 25px;
}

.edit-modal-box form:first-of-type {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.edit-modal-box label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.edit-modal-box label span {
    color: #8996a7;
    font-size: 12px;
    font-weight: 800;
}

.edit-modal-box input {
    width: 100%;
    height: 43px;
    padding: 0 11px;
    outline: 0;
    background: #090f15;
    border: 1px solid #2a3542;
    border-radius: 7px;
    color: #ffffff;
    color-scheme: dark;
}

.edit-actions {
    margin-top: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.btn-edit-cancel,
.btn-edit-save,
.btn-remove-view {
    min-height: 43px;
    border-radius: 7px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.btn-edit-cancel {
    background: #151d26;
    border: 1px solid #2a3542;
    color: #a0acbb;
}

.btn-edit-save {
    background: #8b5cf6;
    border: 1px solid #8b5cf6;
    color: #ffffff;
}

.btn-remove-view {
    width: 100%;
    margin-top: 10px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #f87171;
}

@media (max-width: 1550px) {
    .arrowverse-order-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }
    .arrowverse-focus-grid {
        grid-template-columns: minmax(0, 2.5fr) minmax(390px, 1fr);
    }
}

@media (max-width: 1300px) {
    .current-episode-card {
        grid-template-columns: minmax(330px, 0.85fr) minmax(0, 1.2fr);
    }
    .arrowverse-order-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
    .cycle-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .arrowverse-focus-grid {
        grid-template-columns: 1fr;
    }
    .next-five-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .arrowverse-info-grid {
        grid-template-columns: 1fr 1fr;
    }
    .about-cycle {
        grid-column: 1 / -1;
    }
    .arrowverse-order-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 850px) {
    .arrowverse-container {
        width: calc(100% - 30px);
    }
    .current-episode-card {
        grid-template-columns: 1fr;
    }
    .current-episode-visual {
        min-height: 330px;
        max-height: 420px;
    }
    .current-episode-visual::after {
        background: linear-gradient( 0deg, rgba(16, 23, 32, 0.8), transparent 50%);
    }
    .current-episode-content {
        padding: 28px;
    }
    .arrowverse-info-grid {
        grid-template-columns: 1fr;
    }
    .about-cycle {
        grid-column: auto;
    }
    .arrowverse-order-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .order-heading {
        align-items: flex-start;
        flex-direction: column;
    }
    .arrowverse-legend {
        justify-content: flex-start;
    }
}

@media (max-width: 650px) {
    .arrowverse-topbar {
        align-items: stretch;
        flex-direction: column;
    }
    .arrowverse-cycle-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .arrowverse-cycle-actions select {
        min-width: 0;
        width: 100%;
    }
    .next-five-list {
        grid-template-columns: 1fr;
    }
    .current-watch-fields,
    .cycle-stats-grid {
        grid-template-columns: 1fr;
    }
    .current-watch-actions {
        flex-direction: column;
    }
    .btn-watch-secondary,
    .btn-watch-main {
        width: 100%;
    }
    .arrowverse-order-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 450px) {
    .arrowverse-container {
        width: calc(100% - 20px);
    }
    .arrowverse-cycle-actions {
        grid-template-columns: 1fr;
    }
    .current-episode-content {
        padding: 22px;
    }
    .current-episode-content h1 {
        font-size: 34px;
    }
    .current-episode-meta {
        gap: 10px;
    }
    .arrowverse-order-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .edit-actions {
        grid-template-columns: 1fr;
    }
}