.suivi-page {
    width: 100%;
}

.suivi-container {
    width: min(100% - 40px, 1900px);
    margin: 0 auto;
    padding: 48px 0 20px;
}

.suivi-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 46px;
}

.page-eyebrow,
.section-kicker,
.next-label,
.watch-modal-label {
    display: block;
    color: #8b5cf6;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.suivi-heading h1 {
    margin: 7px 0 8px;
    color: #f8fafc;
    font-size: clamp(34px, 3vw, 48px);
    line-height: 1;
    letter-spacing: -1.5px;
}

.suivi-heading p {
    margin: 0;
    color: #7f8b9b;
    font-size: 14px;
}

.suivi-search {
    width: min(100%, 340px);
    height: 43px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    background: #10151c;
    border: 1px solid #202833;
    border-radius: 8px;
}

.suivi-search i {
    color: #697586;
    font-size: 13px;
}

.suivi-search input {
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #f8fafc;
    font-size: 13px;
}

.suivi-search input::placeholder {
    color: #657080;
}

.suivi-section {
    margin-bottom: 52px;
}

.suivi-section-last {
    margin-bottom: 10px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.section-heading h2 {
    margin: 4px 0 0;
    color: #f8fafc;
    font-size: 21px;
    line-height: 1;
}

.section-count {
    min-width: 27px;
    height: 27px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #161c24;
    border: 1px solid #242d39;
    border-radius: 999px;
    color: #8d98a7;
    font-size: 11px;
    font-weight: 700;
}

.continue-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.continue-card {
    min-width: 0;
    overflow: hidden;
    background: #10151c;
    border: 1px solid #202833;
    border-radius: 12px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.continue-card:hover {
    border-color: #354052;
    transform: translateY(-2px);
}

.continue-card-body {
    height: 100%;
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
}

.continue-poster {
    position: relative;
    min-height: 100%;
    display: block;
    overflow: hidden;
    background: #171e27;
}

.continue-poster img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.continue-poster .cycle-badge {
    top: 10px;
    right: 10px;
}

.continue-content {
    min-width: 0;
    padding: 16px;
}

@media (max-width: 600px) {
    .continue-card-body {
        grid-template-columns: 105px minmax(0, 1fr);
    }
}

.cycle-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 9px;
    background: rgba(10, 13, 18, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: #d8dee7;
    font-size: 10px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.continue-content {
    padding: 16px;
}

.continue-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.continue-title-row h3 {
    margin: 0 0 4px;
    font-size: 17px;
}

.continue-title-row h3 a {
    color: #f8fafc;
    text-decoration: none;
}

.continue-progress-label {
    color: #778292;
    font-size: 11px;
}

.continue-percent {
    color: #a78bfa;
    font-size: 14px;
}

.progress-bar,
.mini-progress {
    width: 100%;
    overflow: hidden;
    background: #222936;
    border-radius: 999px;
}

.progress-bar {
    height: 5px;
    margin-top: 12px;
}

.mini-progress {
    height: 4px;
}

.progress-bar span,
.mini-progress span {
    height: 100%;
    display: block;
    background: #8b5cf6;
    border-radius: inherit;
}

.next-episode {
    min-height: 78px;
    margin-top: 15px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    background: #151b23;
    border: 1px solid #222b37;
    border-radius: 8px;
}

.next-episode-image {
    width: 120px;
    flex-shrink: 0;
    object-fit: cover;
}

.next-episode-content {
    min-width: 0;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.next-label {
    margin-bottom: 4px;
    font-size: 8px;
}

.next-episode-content strong {
    color: #f3f5f8;
    font-size: 13px;
}

.next-title {
    margin-top: 2px;
    overflow: hidden;
    color: #9aa4b1;
    font-size: 11px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.next-meta {
    margin-top: 4px;
    color: #697586;
    font-size: 10px;
}

.continue-actions {
    margin-top: 13px;
    display: flex;
    gap: 8px;
}

.btn-watch,
.btn-open,
.btn-now,
.btn-confirm-watch {
    border: 0;
    border-radius: 7px;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.btn-watch {
    min-width: 0;
    height: 38px;
    padding: 0 13px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: #8b5cf6;
    color: #ffffff;
    font-size: 11px;
}

.btn-watch:hover {
    background: #7c4ff0;
}

.btn-open {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #171e27;
    border: 1px solid #252f3c;
    color: #9aa4b1;
    text-decoration: none;
}

.btn-open:hover {
    color: #ffffff;
    background: #1c2430;
}

.series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.serie-card {
    min-width: 0;
    min-height: 116px;
    display: flex;
    overflow: hidden;
    background: #10151c;
    border: 1px solid #202833;
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.serie-card:hover {
    background: #121821;
    border-color: #354052;
}

.serie-card-poster {
    width: 76px;
    flex-shrink: 0;
    overflow: hidden;
    background: #171e27;
}

.serie-card-poster img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.serie-card-content {
    min-width: 0;
    padding: 12px;
    flex: 1;
}

.serie-card-title {
    overflow: hidden;
    color: #f3f5f8;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.serie-card-cycle {
    margin-top: 3px;
    color: #6f7a89;
    font-size: 10px;
}

.serie-card-next {
    margin-top: 12px;
    color: #a78bfa;
    font-size: 12px;
    font-weight: 700;
}

.serie-card-progress {
    margin: 8px 0 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #727e8e;
    font-size: 9px;
}

.serie-card-progress strong {
    color: #9aa4b1;
}

.paused-grid,
.finished-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.paused-card,
.finished-card {
    min-width: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #10151c;
    border: 1px solid #202833;
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.paused-card {
    min-height: 96px;
}

.finished-card {
    min-height: 88px;
}

.paused-card:hover,
.finished-card:hover {
    background: #121821;
    border-color: #354052;
}

.paused-poster,
.finished-poster {
    align-self: stretch;
    flex-shrink: 0;
    overflow: hidden;
    background: #171e27;
}

.paused-poster {
    width: 66px;
}

.finished-poster {
    width: 60px;
}

.paused-poster img,
.finished-poster img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.paused-content,
.finished-content {
    min-width: 0;
    padding: 12px;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.paused-label {
    margin-bottom: 5px;
    color: #f59e0b;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.paused-label i {
    margin-right: 4px;
}

.paused-content strong,
.finished-content strong {
    overflow: hidden;
    color: #f3f5f8;
    font-size: 12px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.paused-content span:not(.paused-label),
.finished-content span {
    margin-top: 3px;
    color: #7b8796;
    font-size: 10px;
}

.paused-content small {
    margin-top: 6px;
    color: #596575;
    font-size: 9px;
}

.paused-arrow {
    margin-right: 14px;
    color: #596575;
    font-size: 10px;
}

.finished-status {
    width: fit-content;
    margin-top: 7px;
    font-size: 9px;
    font-weight: 700;
}

.finished-status.completed {
    color: #22c55e;
}

.finished-status.current {
    color: #8b5cf6;
}

.finished-status i {
    margin-right: 3px;
}

.watch-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.watch-modal.open {
    display: flex;
}

.watch-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 6, 9, 0.78);
    backdrop-filter: blur(5px);
}

.watch-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    padding: 25px;
    background: #11171f;
    border: 1px solid #293342;
    border-radius: 12px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.45);
}

.watch-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 7px;
    background: #181f29;
    color: #7e8998;
    cursor: pointer;
}

.watch-modal-close:hover {
    color: #ffffff;
}

.watch-modal-dialog h2 {
    margin: 8px 0 4px;
    padding-right: 35px;
    color: #f8fafc;
    font-size: 21px;
}

.watch-modal-dialog>p {
    margin: 0 0 22px;
    color: #8c97a6;
    font-size: 13px;
}

.watch-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.watch-form-grid label {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.watch-form-grid label span {
    color: #8c97a6;
    font-size: 10px;
    font-weight: 700;
}

.watch-form-grid input {
    width: 100%;
    height: 41px;
    padding: 0 11px;
    outline: 0;
    background: #0c1117;
    border: 1px solid #27313e;
    border-radius: 7px;
    color: #f8fafc;
    color-scheme: dark;
    font-family: inherit;
}

.watch-form-grid input:focus {
    border-color: #8b5cf6;
}

.watch-form-actions {
    margin-top: 18px;
    display: flex;
    gap: 9px;
}

.btn-now,
.btn-confirm-watch {
    height: 40px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 11px;
}

.btn-now {
    background: #1a222d;
    color: #a4afbc;
}

.btn-now:hover {
    color: #ffffff;
}

.btn-confirm-watch {
    flex: 1;
    background: #8b5cf6;
    color: #ffffff;
}

.btn-confirm-watch:hover {
    background: #7c4ff0;
}

.btn-confirm-watch:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.watch-message {
    display: none;
    margin-top: 13px;
    padding: 10px 12px;
    border-radius: 7px;
    font-size: 10px;
}

.watch-message.success,
.watch-message.error {
    display: block;
}

.watch-message.success {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
}

.watch-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
}

.modal-open {
    overflow: hidden;
}

.search-hidden {
    display: none !important;
}

.search-empty {
    display: none;
    padding: 60px 20px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #657080;
    text-align: center;
}

.search-empty.visible {
    display: flex;
}

.search-empty i {
    margin-bottom: 12px;
    color: #8b5cf6;
    font-size: 22px;
}

.search-empty strong {
    color: #d6dce5;
    font-size: 14px;
}

.search-empty span {
    margin-top: 5px;
    font-size: 11px;
}

@media (max-width: 1100px) {
    .continue-grid {
        grid-template-columns: 1fr;
    }
    .continue-card {
        display: grid;
        grid-template-columns: minmax(220px, 34%) 1fr;
    }
    .continue-visual {
        height: auto;
        min-height: 235px;
    }
}

@media (max-width: 760px) {
    .suivi-container {
        width: min(100% - 28px, 1900px);
        padding-top: 32px;
    }
    .suivi-heading {
        margin-bottom: 38px;
        align-items: stretch;
        flex-direction: column;
        gap: 20px;
    }
    .suivi-search {
        width: 100%;
        max-width: none;
    }
    .continue-card {
        display: block;
    }
    .continue-visual {
        height: 145px;
        min-height: 0;
    }
    .series-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    .paused-grid,
    .finished-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .suivi-container {
        width: calc(100% - 22px);
    }
    .suivi-heading h1 {
        font-size: 34px;
    }
    .suivi-heading p {
        font-size: 12px;
        line-height: 1.5;
    }
    .suivi-section {
        margin-bottom: 42px;
    }
    .continue-content {
        padding: 14px;
    }
    .continue-actions {
        align-items: stretch;
    }
    .btn-watch {
        padding: 0 10px;
        font-size: 10px;
    }
    .series-grid {
        grid-template-columns: 1fr;
    }
    .serie-card {
        min-height: 108px;
    }
    .watch-form-grid {
        grid-template-columns: 1fr;
    }
    .watch-form-actions {
        flex-direction: column;
    }
    .btn-now,
    .btn-confirm-watch {
        width: 100%;
    }
}