:root {
    --studio-1: #8C0839;
    --studio-2: #BF1765;
    --studio-3: #BF1FB5;
    --studio-4: #580B59;
    --studio-5: #0D0D0D;
    --card-bg: rgba(18, 18, 18, 0.96);
    --card-border: rgba(191, 31, 181, 0.24);
    --soft-text: #f7d9eb;
    --muted-text: #dbc5d0;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}
html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden; /* Isso impede que a tela role para o lado e mostre o vazio */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(140, 8, 57, 0.24), transparent 20%),
        radial-gradient(circle at top right, rgba(191, 31, 181, 0.18), transparent 20%),
        linear-gradient(180deg, #090909, var(--studio-5));
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.brand {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.auth-btn,
.secondary-btn,
.primary-btn,
.cancel-btn {
    border-radius: 999px;
    border: 0;
    padding: 0.85rem 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.auth-btn {
    border: 0;
    background: linear-gradient(135deg, var(--studio-1), var(--studio-3));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 7.5rem;
    min-height: 2.8rem;
    padding: 0 1rem;
    border-radius: 14px;
    box-shadow: 0 16px 32px rgba(140, 8, 57, 0.26);
}

.auth-btn:hover,
.secondary-btn:hover,
.primary-btn:hover,
.cancel-btn:hover {
    transform: translateY(-1px);
}

.auth-btn.logged-in {
    background: linear-gradient(135deg, var(--studio-1), var(--studio-2));
    border-color: transparent;
}

.profile-avatar {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.03em;
    border: 1px solid rgba(255, 255, 255, 0.18);
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-panel {
    position: fixed;
    top: calc(1.2rem + 76px);
    right: 1rem;
    width: min(320px, calc(60vw - 2rem));
    max-height: calc(100vh - 76px - 3rem);
    border-radius: 20px;
    border: 1px solid var(--card-border);
    background: linear-gradient(180deg, rgba(40, 10, 34, 0.98), rgba(13, 13, 13, 0.98));
    box-shadow: var(--shadow);
    padding: 0.95rem;
    z-index: 50;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.profile-panel.hidden {
    display: none;
}

.profile-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-panel-info {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.profile-panel-avatar {
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--studio-1), var(--studio-3));
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.03em;
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    flex-shrink: 0;
}

.profile-panel-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-panel-name {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.profile-panel-email {
    margin: 0.2rem 0 0;
    color: #cfcfcf;
    font-size: 0.82rem;
}

.profile-panel-close {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.3rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.15rem;
}

.profile-panel-actions {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.75rem;
}

.profile-action-btn {
    width: 100%;
    border: 1px solid rgba(191, 31, 181, 0.2);
    background: linear-gradient(180deg, rgba(88, 11, 89, 0.55), rgba(13, 13, 13, 0.96));
    color: #f5f5f5;
    border-radius: 12px;
    padding: 0.7rem 0.85rem;
    font-size: 0.92rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.profile-action-btn:hover {
    background: linear-gradient(180deg, rgba(191, 31, 181, 0.28), rgba(140, 8, 57, 0.35));
    border-color: rgba(191, 31, 181, 0.35);
    transform: translateX(1px);
}

.profile-action-btn.is-danger {
    color: #fff2f8;
    border-color: rgba(140, 8, 57, 0.38);
    background: linear-gradient(180deg, rgba(140, 8, 57, 0.5), rgba(88, 11, 89, 0.5));
}

.profile-action-btn.is-danger:hover {
    background: linear-gradient(180deg, rgba(140, 8, 57, 0.7), rgba(88, 11, 89, 0.7));
    border-color: rgba(191, 31, 181, 0.45);
}

.admin-card {
    width: min(540px, 100%);
}

.admin-grid {
    display: grid;
    gap: 0.75rem;
    margin: 1rem 0;
}

.admin-item {
    padding: 0.85rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(191, 31, 181, 0.24);
    background: linear-gradient(180deg, rgba(88, 11, 89, 0.28), rgba(13, 13, 13, 0.9));
}

.admin-item-label {
    display: block;
    color: #d8d8d8;
    font-size: 0.88rem;
    margin-bottom: 0.2rem;
}

.admin-item-value {
    display: block;
    color: #fff;
    font-weight: 800;
}

/* ── Admin Sections ── */
.admin-sections {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.5rem;
}

.admin-section {
    border: 1px solid rgba(191, 31, 181, 0.2);
    border-radius: 16px;
    overflow: hidden;
}

.admin-section-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    background: linear-gradient(180deg, rgba(88, 11, 89, 0.42), rgba(13, 13, 13, 0.92));
    border: 0;
    color: #f2f2f2;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
    transition: background 0.18s ease;
}

.admin-section-header:hover {
    background: linear-gradient(180deg, rgba(191, 31, 181, 0.3), rgba(88, 11, 89, 0.6));
}

.admin-section-chevron {
    font-size: 0.8rem;
    transition: transform 0.22s ease;
    opacity: 0.7;
}

.admin-section.is-open .admin-section-chevron {
    transform: rotate(180deg);
}

.admin-field {
    display: grid;
    gap: 0.35rem;
}

.admin-field label {
    font-weight: 700;
    color: #fff;
}

.admin-field span {
    color: var(--muted-text);
    font-size: 0.9rem;
    line-height: 1.5;
}

.admin-field select,
.admin-field input {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(191, 31, 181, 0.24);
    background: rgba(13, 13, 13, 0.95);
    color: #fff;
    padding: 0.85rem 0.95rem;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.admin-field select:focus,
.admin-field input:focus {
    outline: 2px solid rgba(191, 31, 181, 0.34);
    border-color: rgba(191, 31, 181, 0.45);
}

.admin-feedback {
    min-height: 1.2rem;
    font-size: 0.92rem;
    font-weight: 700;
}

.admin-feedback.is-success {
    color: #a8ffcc;
}

.admin-feedback.is-error {
    color: #ffd8ee;
}

.admin-save-row {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

/* ── Admin Project Review ── */
.admin-proj-filters {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.admin-proj-filter-btn {
    border: 1px solid rgba(191, 31, 181, 0.22);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.65);
    border-radius: 999px;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.admin-proj-filter-btn.is-active {
    background: linear-gradient(135deg, var(--studio-1), var(--studio-3));
    border-color: transparent;
    color: #fff;
}

.admin-proj-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding-right: 4px;
}

.admin-proj-item {
    border: 1px solid rgba(191, 31, 181, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
    transition: border-color 0.2s;
}

.admin-proj-item.is-expanded {
    border-color: rgba(191, 31, 181, 0.4);
}

.admin-proj-item-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem;
    cursor: pointer;
}

.admin-proj-item-cover {
    width: 38px;
    height: 54px;
    border-radius: 8px;
    object-fit: cover;
    background: #1a1a1a;
    flex-shrink: 0;
    border: 1px solid rgba(191, 31, 181, 0.2);
}

.admin-proj-item-meta {
    flex: 1;
    min-width: 0;
}

.admin-proj-item-name {
    font-weight: 800;
    font-size: 0.9rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-proj-item-sub {
    font-size: 0.75rem;
    color: var(--muted-text);
    margin-top: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-proj-status-badge {
    flex-shrink: 0;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.admin-proj-status-badge.pending {
    background: rgba(255, 190, 50, 0.12);
    border: 1px solid rgba(255, 190, 50, 0.35);
    color: #ffd166;
}

.admin-proj-status-badge.approved {
    background: rgba(50, 200, 120, 0.12);
    border: 1px solid rgba(50, 200, 120, 0.35);
    color: #6ee7b7;
}

.admin-proj-status-badge.rejected {
    background: rgba(255, 80, 120, 0.12);
    border: 1px solid rgba(255, 80, 120, 0.35);
    color: #ffa0bb;
}

.admin-proj-chevron {
    font-size: 0.75rem;
    opacity: 0.5;
    transition: transform 0.22s;
    flex-shrink: 0;
}

.admin-proj-item.is-expanded .admin-proj-chevron {
    transform: rotate(180deg);
}

.admin-proj-body {
    display: none;
    padding: 0.75rem 0.85rem 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    gap: 0.6rem;
    flex-direction: column;
}

.admin-proj-item.is-expanded .admin-proj-body {
    display: flex;
}

.admin-proj-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
}

.admin-proj-detail {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 0.5rem 0.65rem;
}

.admin-proj-detail-label {
    font-size: 0.72rem;
    color: var(--muted-text);
    display: block;
    margin-bottom: 0.1rem;
}

.admin-proj-detail-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    word-break: break-word;
}

.admin-proj-desc {
    font-size: 0.85rem;
    color: var(--soft-text);
    line-height: 1.55;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 0.55rem 0.7rem;
}

.admin-proj-items-list {
    font-size: 0.8rem;
    color: var(--muted-text);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-height: 110px;
    overflow-y: auto;
}

.admin-proj-items-list a {
    color: var(--studio-2);
    text-decoration: none;
}

.admin-proj-items-list a:hover {
    text-decoration: underline;
}

.admin-reprove-area {
    display: none;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.2rem;
}

.admin-reprove-area.is-visible {
    display: flex;
}

.admin-reprove-area textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 80, 120, 0.3);
    border-radius: 12px;
    color: #fff;
    padding: 0.6rem 0.75rem;
    font-size: 0.88rem;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
    box-sizing: border-box;
    width: 100%;
}

.admin-reprove-area textarea:focus {
    outline: none;
    border-color: rgba(255, 80, 120, 0.6);
}

.admin-proj-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.35rem;
    flex-wrap: wrap;
}

.admin-approve-btn {
    flex: 1;
    border: 0;
    border-radius: 12px;
    padding: 0.6rem 0.75rem;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    background: linear-gradient(135deg, #065f46, #059669);
    color: #d1fae5;
    transition: opacity 0.18s, transform 0.18s;
}

.admin-approve-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.admin-reprove-btn {
    flex: 1;
    border: 1px solid rgba(255, 80, 120, 0.35);
    border-radius: 12px;
    padding: 0.6rem 0.75rem;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    background: rgba(255, 80, 120, 0.1);
    color: #ffa0bb;
    transition: background 0.18s, transform 0.18s;
}

.admin-reprove-btn:hover {
    background: rgba(255, 80, 120, 0.2);
    transform: translateY(-1px);
}

.admin-reprove-confirm-btn {
    border: 0;
    border-radius: 12px;
    padding: 0.55rem 1rem;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    background: linear-gradient(135deg, #7f1d1d, #dc2626);
    color: #fff;
}

.admin-reprove-cancel-btn {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 0.55rem 1rem;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
}

.admin-proj-reprove-reason {
    font-size: 0.8rem;
    color: #ffa0bb;
    background: rgba(255, 80, 120, 0.08);
    border-radius: 10px;
    padding: 0.5rem 0.65rem;
    border: 1px solid rgba(255, 80, 120, 0.2);
}

.admin-proj-empty {
    color: var(--muted-text);
    font-size: 0.9rem;
    text-align: center;
    padding: 1.5rem 0;
}

.admin-proj-count {
    font-size: 0.78rem;
    color: var(--muted-text);
    margin-bottom: 0.5rem;
}

/* ── Review Page ── */
#reviewPage {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 38;
    background: radial-gradient(circle at top left, rgba(140, 8, 57, 0.24), transparent 25%), radial-gradient(circle at bottom right, rgba(191, 31, 181, 0.18), transparent 25%), linear-gradient(180deg, #090909, var(--studio-5));
    overflow-y: auto;
    overscroll-behavior: contain;
}

#reviewPage.is-open {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.review-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    gap: 0.75rem;
}

.review-topbar-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.review-topbar-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.02em;
}

.review-topbar-sub {
    font-size: 0.75rem;
    color: var(--muted-text);
    font-weight: 600;
}

.review-content {
    flex: 1;
    width: min(860px, 100%);
    margin: 0 auto;
    padding: 1.8rem 1.25rem 3rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.review-stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
}

.review-stat-card {
    border: 1px solid rgba(191, 31, 181, 0.22);
    border-radius: 16px;
    padding: 0.9rem 1rem;
    background: linear-gradient(180deg, rgba(88, 11, 89, 0.25), rgba(13, 13, 13, 0.88));
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
}

.review-stat-number {
    font-size: 1.7rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.review-stat-label {
    font-size: 0.75rem;
    color: var(--muted-text);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.review-filters-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.review-filter-btn {
    border: 1px solid rgba(191, 31, 181, 0.22);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.65);
    border-radius: 999px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.review-filter-btn.is-active {
    background: linear-gradient(135deg, var(--studio-1), var(--studio-3));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 14px rgba(140, 8, 57, 0.3);
}

.review-search {
    flex: 1;
    min-width: 160px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(191, 31, 181, 0.22);
    border-radius: 999px;
    color: #fff;
    padding: 0.45rem 1rem;
    font-size: 0.88rem;
    font-family: inherit;
}

.review-search:focus {
    outline: none;
    border-color: rgba(191, 31, 181, 0.5);
    background: rgba(255, 255, 255, 0.07);
}

.review-search::placeholder {
    color: rgba(255, 255, 255, 0.28);
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.review-proj-card {
    border: 1px solid rgba(191, 31, 181, 0.18);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(28, 10, 24, 0.7), rgba(13, 13, 13, 0.95));
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.review-proj-card.is-expanded {
    border-color: rgba(191, 31, 181, 0.45);
    box-shadow: 0 12px 40px rgba(140, 8, 57, 0.2);
}

.review-proj-card-header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.85rem 1.1rem;
    cursor: pointer;
    transition: background 0.18s;
}

.review-proj-card-header:hover {
    background: rgba(191, 31, 181, 0.06);
}

.review-proj-cover {
    width: 44px;
    height: 62px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: #1a1a1a;
    border: 1px solid rgba(191, 31, 181, 0.22);
}

.review-proj-meta {
    flex: 1;
    min-width: 0;
}

.review-proj-name {
    font-weight: 800;
    font-size: 0.95rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-proj-sub {
    font-size: 0.78rem;
    color: var(--muted-text);
    margin-top: 0.18rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-proj-badge {
    flex-shrink: 0;
    border-radius: 999px;
    padding: 0.28rem 0.72rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.review-proj-badge.pending {
    background: rgba(255, 190, 50, 0.12);
    border: 1px solid rgba(255, 190, 50, 0.35);
    color: #ffd166;
}

.review-proj-badge.approved {
    background: rgba(50, 200, 120, 0.12);
    border: 1px solid rgba(50, 200, 120, 0.35);
    color: #6ee7b7;
}

.review-proj-badge.rejected {
    background: rgba(255, 80, 120, 0.12);
    border: 1px solid rgba(255, 80, 120, 0.35);
    color: #ffa0bb;
}

.review-proj-chevron {
    font-size: 0.78rem;
    opacity: 0.45;
    transition: transform 0.22s;
    flex-shrink: 0;
    margin-left: 0.25rem;
}

.review-proj-card.is-expanded .review-proj-chevron {
    transform: rotate(180deg);
}

.review-proj-body {
    display: none;
    padding: 0 1.1rem 1.1rem;
    flex-direction: column;
    gap: 0.7rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 0.85rem;
}

.review-proj-card.is-expanded .review-proj-body {
    display: flex;
}

.review-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.review-detail {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 0.6rem 0.8rem;
}

.review-detail-label {
    font-size: 0.72rem;
    color: var(--muted-text);
    display: block;
    margin-bottom: 0.15rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.review-detail-value {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    word-break: break-word;
    line-height: 1.45;
}

.review-proj-desc {
    font-size: 0.88rem;
    color: var(--soft-text);
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.review-items-box {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
}

.review-items-title {
    font-size: 0.72rem;
    color: var(--muted-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.45rem;
    display: block;
}

.review-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    max-height: 130px;
    overflow-y: auto;
}

.review-items-list a {
    color: var(--studio-2);
    text-decoration: none;
    font-size: 0.82rem;
}

.review-items-list a:hover {
    text-decoration: underline;
}

.review-items-list span {
    font-size: 0.82rem;
    color: var(--muted-text);
}

.review-reprove-reason-box {
    background: rgba(255, 80, 120, 0.07);
    border: 1px solid rgba(255, 80, 120, 0.22);
    border-radius: 12px;
    padding: 0.6rem 0.8rem;
    font-size: 0.82rem;
    color: #ffa0bb;
}

.review-proj-actions {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.review-approve-btn {
    flex: 1;
    min-width: 120px;
    border: 0;
    border-radius: 14px;
    padding: 0.7rem 1rem;
    font-weight: 800;
    font-size: 0.88rem;
    cursor: pointer;
    background: linear-gradient(135deg, #065f46, #059669);
    color: #d1fae5;
    transition: opacity 0.18s, transform 0.18s;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
}

.review-approve-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.review-reprove-btn {
    flex: 1;
    min-width: 120px;
    border: 1px solid rgba(255, 80, 120, 0.35);
    border-radius: 14px;
    padding: 0.7rem 1rem;
    font-weight: 800;
    font-size: 0.88rem;
    cursor: pointer;
    background: rgba(255, 80, 120, 0.08);
    color: #ffa0bb;
    transition: background 0.18s, transform 0.18s;
}

.review-reprove-btn:hover {
    background: rgba(255, 80, 120, 0.18);
    transform: translateY(-1px);
}

.review-reprove-area {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
}

.review-reprove-area.is-visible {
    display: flex;
}

.review-reprove-area textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 80, 120, 0.3);
    border-radius: 12px;
    color: #fff;
    padding: 0.65rem 0.8rem;
    font-size: 0.88rem;
    font-family: inherit;
    resize: vertical;
    min-height: 70px;
    box-sizing: border-box;
    width: 100%;
}

.review-reprove-area textarea:focus {
    outline: none;
    border-color: rgba(255, 80, 120, 0.6);
}

.review-reprove-row {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.review-reprove-confirm {
    border: 0;
    border-radius: 12px;
    padding: 0.6rem 1.1rem;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    background: linear-gradient(135deg, #7f1d1d, #dc2626);
    color: #fff;
}

.review-reprove-cancel {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 0.6rem 1.1rem;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
}

.review-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--muted-text);
    font-size: 0.95rem;
}

.review-count-label {
    font-size: 0.8rem;
    color: var(--muted-text);
    font-weight: 600;
}

@media (max-width: 520px) {
    .review-stats-bar {
        grid-template-columns: 1fr 1fr;
    }

    .review-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Modals ── */
.confirm-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    display: grid;
    place-items: center;
    padding: 1rem;
    z-index: 60;
}

.confirm-modal.hidden {
    display: none;
}

.confirm-card {
    width: min(380px, 100%);
    border-radius: 24px;
    border: 1px solid var(--card-border);
    background: linear-gradient(180deg, rgba(28, 14, 24, 0.98), rgba(13, 13, 13, 0.98));
    padding: 1.2rem;
    box-shadow: var(--shadow);
}

#adminModal .confirm-card {
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.admin-section-body {
    display: none;
    padding: 1rem;
    background: rgba(13, 13, 13, 0.7);
    border-top: 1px solid rgba(191, 31, 181, 0.14);
}

.admin-section.is-open .admin-section-body {
    display: grid;
    gap: 0.85rem;
}

.confirm-card h2 {
    margin: 0 0 0.45rem;
    font-size: 1.1rem;
}

.confirm-card p {
    margin: 0 0 1rem;
    color: #d6d6d6;
    line-height: 1.6;
}

.confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.edit-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    display: grid;
    place-items: center;
    padding: 1rem;
    z-index: 55;
}

.edit-modal.hidden {
    display: none;
}

.edit-card {
    width: min(460px, 100%);
    max-height: calc(100vh - 2rem);
    border-radius: 26px;
    border: 1px solid var(--card-border);
    background: linear-gradient(180deg, rgba(28, 14, 24, 0.98), rgba(13, 13, 13, 0.98));
    padding: 1.3rem;
    box-shadow: var(--shadow);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.edit-card h2 {
    margin: 0 0 0.35rem;
    font-size: 1.2rem;
}

.edit-card p {
    margin: 0 0 1rem;
    color: #d6d6d6;
    line-height: 1.6;
}

.edit-form {
    display: grid;
    gap: 0.9rem;
}

.edit-avatar-preview {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--studio-1), var(--studio-3));
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.03em;
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin: 0 auto 0.2rem;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.edit-avatar-preview:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 36px rgba(140, 8, 57, 0.28);
}

.edit-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.edit-avatar-note {
    margin: 0 0 0.5rem;
    color: #ffd2df;
    font-size: 0.94rem;
    text-align: center;
}

.edit-form label {
    display: grid;
    gap: 0.45rem;
    font-weight: 700;
    color: #f4f4f4;
}

.edit-form input {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #0f0f0f;
    color: #fff;
    border-radius: 16px;
    padding: 0.85rem 1rem;
    font-size: 1rem;
}

.edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.content {
    min-height: calc(100vh - 76px);
    padding: 1.5rem 1.25rem 3rem;
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.featured-carousel {
    display: block;
}

.featured-track {
    position: relative;
    min-height: 520px;
    border-radius: 28px;
    overflow: hidden;
    background: transparent;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.featured-slides {
    position: absolute;
    inset: 0;
}

.featured-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.featured-slide {
    /* Garante que a imagem cubra todo o espaço sem distorcer */
    background-size: cover;
    
    /* Centraliza o foco da imagem (importante para rostos de personagens) */
    background-position: center;
    
    /* Evita que a imagem se repita em ecrãs muito grandes */
    background-repeat: no-repeat;
    
    /* Transição suave caso mude de slide */
    transition: background-image 0.5s ease-in-out;
}

.featured-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.featured-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(13, 13, 13, 0.74) 0%, rgba(13, 13, 13, 0.48) 45%, rgba(13, 13, 13, 0.2) 100%), linear-gradient(180deg, rgba(13, 13, 13, 0.04), rgba(13, 13, 13, 0.68));
}

.featured-slide-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 1.2rem;
    padding: 1.4rem;
    align-items: center;
}

.featured-slide-visual {
    display: grid;
    place-items: center;
    padding: 0.4rem;
}

.featured-cover {
    width: min(320px, 100%);
    border-radius: 24px;
    object-fit: cover;
    border: 1px solid rgba(191, 31, 181, 0.28);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
    aspect-ratio: 3 / 4;
}

.featured-slide-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.85rem;
    max-width: 28rem;
    padding: 1rem 1.1rem;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(13, 13, 13, 0.6), rgba(13, 13, 13, 0.74));
    border: 1px solid rgba(191, 31, 181, 0.18);
    backdrop-filter: blur(8px);
}

.featured-chip {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    border-radius: 999px;
    background: rgba(191, 31, 181, 0.2);
    color: var(--soft-text);
    padding: 0.35rem 0.8rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin: 0;
}

.featured-slide-info h2 {
    margin: 0;
    font-size: clamp(1.8rem, 2vw + 1rem, 2.4rem);
    line-height: 1.05;
}

.featured-desc {
    margin: 0;
    color: var(--soft-text);
    line-height: 1.75;
    font-size: 1rem;
}

.featured-status {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 2;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(13, 13, 13, 0.72);
    border: 1px solid rgba(191, 31, 181, 0.2);
    color: var(--soft-text);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.featured-arrows {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.featured-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    pointer-events: auto;
    background: linear-gradient(135deg, var(--studio-1), var(--studio-3));
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(140, 8, 57, 0.28);
}

.featured-arrow.left {
    left: 1rem;
}

.featured-arrow.right {
    right: 1rem;
}

.primary-btn {
    background: linear-gradient(135deg, var(--studio-1), var(--studio-3));
    color: #fff;
    box-shadow: 0 14px 28px rgba(140, 8, 57, 0.28);
}

.secondary-btn {
    background: linear-gradient(180deg, rgba(88, 11, 89, 0.35), rgba(13, 13, 13, 0.95));
    color: #fff;
    border: 1px solid rgba(191, 31, 181, 0.24);
}

.login-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: grid;
    place-items: center;
    padding: 1rem;
    z-index: 40;
    overflow-y: auto;
}

.login-modal.hidden {
    display: none;
}

.login-card {
    width: min(460px, 100%);
    max-height: calc(100vh - 2rem);
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #111111;
    padding: 1.4rem;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.login-card h2 {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
}

.login-card p {
    margin: 0 0 1rem;
    color: #d6d6d6;
    line-height: 1.6;
}

.login-form {
    display: grid;
    gap: 0.9rem;
}

.login-link {
    margin-top: 0.75rem;
    color: #ffd2df;
    font-size: 0.95rem;
}

.link-btn {
    border: 0;
    background: transparent;
    color: var(--studio-2);
    text-decoration: underline;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.login-form label {
    display: grid;
    gap: 0.45rem;
    font-weight: 700;
    color: #f4f4f4;
}

.login-form input {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #0f0f0f;
    color: #fff;
    border-radius: 16px;
    padding: 0.85rem 1rem;
    font-size: 1rem;
}

.login-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.cancel-btn {
    border: 1px solid rgba(191, 31, 181, 0.24);
    background: linear-gradient(180deg, rgba(13, 13, 13, 0.98), rgba(88, 11, 89, 0.3));
    color: #fff;
}

.login-note {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--soft-text);
}

.login-error {
    min-height: 1.2rem;
    color: #ffd1e7;
    font-size: 0.98rem;
    margin: 0;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.support-link {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 75%;
    padding: 0.85rem 1rem;

    border-radius: 999px;
    background: linear-gradient(135deg, var(--studio-2), var(--studio-4));
    color: #fff;
    text-decoration: none;
    font-weight: 800;

    margin: 0 auto 0.5rem auto;
}

.hidden {
    display: none !important;
}

/* ── Studio Page ── */
#studioPage {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 30;
    background: radial-gradient(circle at top left, rgba(140, 8, 57, 0.28), transparent 30%), radial-gradient(circle at bottom right, rgba(191, 31, 181, 0.2), transparent 30%), linear-gradient(180deg, #090909, var(--studio-5));
    overflow-y: auto;
}

#studioPage.is-open {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.studio-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.studio-back-btn {
    border: 1px solid rgba(191, 31, 181, 0.28);
    background: linear-gradient(180deg, rgba(88, 11, 89, 0.4), rgba(13, 13, 13, 0.95));
    color: #fff;
    border-radius: 999px;
    padding: 0.6rem 1.1rem;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease;
}

.studio-back-btn:hover {
    transform: translateY(-1px);
    background: linear-gradient(180deg, rgba(191, 31, 181, 0.3), rgba(88, 11, 89, 0.6));
}

.studio-brand-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.studio-brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.studio-brand-name {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #fff;
}

.studio-topbar-right {
    min-width: 80px;
    display: flex;
    justify-content: flex-end;
}

.studio-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 1.25rem 3rem;
    width: 100%;
    box-sizing: border-box;
}

.studio-profile-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 2.5rem;
}

.studio-profile-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--studio-1), var(--studio-3));
    color: #fff;
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: 0.03em;
    border: 3px solid rgba(191, 31, 181, 0.45);
    box-shadow: 0 0 40px rgba(191, 31, 181, 0.25), 0 18px 48px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    flex-shrink: 0;
}

.studio-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.studio-profile-name {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #fff;
    text-align: center;
}

.studio-profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(191, 31, 181, 0.18);
    border: 1px solid rgba(191, 31, 181, 0.32);
    border-radius: 999px;
    padding: 0.3rem 0.85rem;
    color: var(--soft-text);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.studio-projects-section {
    width: min(860px, 100%);
}

.studio-projects-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.2rem;
}

.studio-projects-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.01em;
}

.studio-add-btn {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    border: 0;
    background: linear-gradient(135deg, var(--studio-1), var(--studio-3));
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 22px rgba(140, 8, 57, 0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    flex-shrink: 0;
}

.studio-add-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(191, 31, 181, 0.4);
}

/* ── Project Cards ── */
.studio-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
    width: 100%;
}

.studio-project-card {
    border-radius: 18px;
    border: 1px solid rgba(191, 31, 181, 0.22);
    background: linear-gradient(180deg, rgba(88, 11, 89, 0.28), rgba(13, 13, 13, 0.92));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.studio-project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(140, 8, 57, 0.3);
}

.studio-project-cover {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
    background: #1a1a1a;
}

.studio-project-info {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.studio-project-name {
    font-weight: 800;
    font-size: 0.92rem;
    color: #fff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.studio-project-type {
    font-size: 0.75rem;
    color: var(--muted-text);
    margin: 0;
}

.studio-project-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    width: fit-content;
}

.studio-project-badge.pending {
    background: rgba(255, 190, 50, 0.12);
    border: 1px solid rgba(255, 190, 50, 0.35);
    color: #ffd166;
}

.studio-project-badge.approved {
    background: rgba(50, 200, 120, 0.12);
    border: 1px solid rgba(50, 200, 120, 0.35);
    color: #6ee7b7;
}

.studio-projects-empty {
    color: var(--muted-text);
    font-size: 0.92rem;
    margin: 1rem 0;
}

/* ── Card action buttons ── */
.studio-project-actions {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.25rem;
}

.studio-proj-edit-btn {
    flex: 1;
    border: 1px solid rgba(191, 31, 181, 0.3);
    background: linear-gradient(180deg, rgba(88, 11, 89, 0.4), rgba(13, 13, 13, 0.9));
    color: #f0d0ff;
    border-radius: 10px;
    padding: 0.45rem 0;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.18s, transform 0.15s;
}

.studio-proj-edit-btn:hover {
    background: linear-gradient(180deg, rgba(191, 31, 181, 0.35), rgba(88, 11, 89, 0.7));
    transform: translateY(-1px);
}

.studio-proj-delete-btn {
    flex: 1;
    border: 1px solid rgba(255, 80, 120, 0.3);
    background: rgba(255, 80, 120, 0.07);
    color: #ffa0bb;
    border-radius: 10px;
    padding: 0.45rem 0;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.18s, transform 0.15s;
}

.studio-proj-delete-btn:hover {
    background: rgba(255, 80, 120, 0.18);
    transform: translateY(-1px);
}

/* ── Edit Project Page ── */
#editProjectPage {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 36;
    background: radial-gradient(ellipse at 20% 0%, rgba(140, 8, 57, 0.22) 0%, transparent 55%), radial-gradient(ellipse at 80% 100%, rgba(191, 31, 181, 0.16) 0%, transparent 55%), linear-gradient(180deg, #080808, #0d0d0d);
    overflow-y: auto;
}

#editProjectPage.is-open {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.ep-locked-notice {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(255, 190, 50, 0.07);
    border: 1px solid rgba(255, 190, 50, 0.25);
    border-radius: 12px;
    padding: 0.6rem 0.85rem;
    font-size: 0.82rem;
    color: #ffd166;
    margin-bottom: 0.25rem;
}

.ep-locked-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.25rem;
}

.ep-locked-chip {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 700;
    cursor: default;
}

/* ── Delete confirm modal ── */
#deleteProjectModal .confirm-card {
    border-color: rgba(255, 80, 120, 0.3);
}

#deleteProjectModal h2 {
    color: #ffa0bb;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0.5
    }
}

.badge-pulse {
    animation: pulse 1.8s ease-in-out infinite;
}

/* ── Add Project Page ── */
#addProjectPage {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 35;
    background: radial-gradient(ellipse at 20% 0%, rgba(140, 8, 57, 0.22) 0%, transparent 55%), radial-gradient(ellipse at 80% 100%, rgba(191, 31, 181, 0.16) 0%, transparent 55%), linear-gradient(180deg, #080808, #0d0d0d);
    overflow-y: auto;
}

#addProjectPage.is-open {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Topbar */
.addproject-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    flex-shrink: 0;
    gap: 0.75rem;
}

.addproject-topbar-title {
    font-size: 0.98rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.02em;
}

/* Step progress bar */
.addproject-steps-indicator {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.step-dot {
    width: 24px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    transition: background 0.28s, width 0.28s;
}

.step-dot.is-active {
    background: linear-gradient(90deg, var(--studio-1), var(--studio-3));
    width: 36px;
}

/* Content wrapper */
.addproject-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.25rem 2.5rem;
    width: min(640px, 100%);
    margin: 0 auto;
    box-sizing: border-box;
    gap: 1.1rem;
}

/* Step label */
.step-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--studio-2);
    margin: 0;
}

/* Layout etapa 1 */
.addproject-layout {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1.4rem;
    align-items: start;
}

.addproject-cover-preview {
    width: 150px;
    aspect-ratio: 2/3;
    border-radius: 14px;
    border: 2px dashed rgba(191, 31, 181, 0.35);
    background: linear-gradient(160deg, rgba(88, 11, 89, 0.28), rgba(13, 13, 13, 0.9));
    display: grid;
    place-items: center;
    overflow: hidden;
    transition: border-color 0.22s, box-shadow 0.22s;
    cursor: default;
}

.addproject-cover-preview.has-image {
    border-style: solid;
    border-color: rgba(191, 31, 181, 0.6);
    box-shadow: 0 8px 28px rgba(140, 8, 57, 0.25);
}

.addproject-cover-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.addproject-cover-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.75rem;
    text-align: center;
    padding: 0.5rem;
    pointer-events: none;
}

.addproject-cover-placeholder span {
    font-size: 1.7rem;
}

/* Fields */
.addproject-fields {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.addproject-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.addproject-field label {
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.ap-input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(191, 31, 181, 0.22);
    border-radius: 12px;
    color: #fff;
    padding: 0.7rem 0.9rem;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
    box-sizing: border-box;
    width: 100%;
}

.ap-input:focus {
    outline: none;
    border-color: rgba(191, 31, 181, 0.6);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(191, 31, 181, 0.1);
}

.ap-input::placeholder {
    color: rgba(255, 255, 255, 0.22);
}

.ap-input.is-error {
    border-color: rgba(255, 80, 120, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 80, 120, 0.1);
}

/* Chips */
.addproject-types {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.type-chip {
    border: 1px solid rgba(191, 31, 181, 0.22);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.15s, box-shadow 0.18s;
    user-select: none;
}

.type-chip:hover {
    background: rgba(191, 31, 181, 0.14);
    border-color: rgba(191, 31, 181, 0.4);
    color: #fff;
    transform: translateY(-1px);
}

.type-chip.is-selected {
    background: linear-gradient(135deg, var(--studio-1), var(--studio-3));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 14px rgba(140, 8, 57, 0.35);
}

.type-chip.is-error {
    border-color: rgba(255, 80, 120, 0.5);
}

/* Actions row */
.addproject-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 1.5rem;
    margin-bottom: 1rem;
}

.addproject-actions-right {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

/* Validation message */
.ap-validation-msg {
    font-size: 0.83rem;
    font-weight: 700;
    color: #ff7aaa;
    min-height: 1rem;
    letter-spacing: 0.01em;
}

/* Step 2 layout */
.addproject-step2-layout {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.genre-limit-note {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted-text);
}

/* Section divider */
.ap-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin: 0 0 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* Episode list */
.ep-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-height: 260px;
    overflow-y: auto;
    padding-right: 2px;
}

.ep-list::-webkit-scrollbar {
    width: 3px;
}

.ep-list::-webkit-scrollbar-track {
    background: transparent;
}

.ep-list::-webkit-scrollbar-thumb {
    background: rgba(191, 31, 181, 0.3);
    border-radius: 99px;
}

.ep-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(191, 31, 181, 0.16);
    background: rgba(255, 255, 255, 0.03);
    transition: background 0.15s;
}

.ep-item:hover {
    background: rgba(191, 31, 181, 0.07);
}

.ep-item-number {
    flex-shrink: 0;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--studio-1), var(--studio-3));
    color: #fff;
    font-weight: 800;
    font-size: 0.75rem;
    display: grid;
    place-items: center;
}

.ep-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    flex: 1;
}

.ep-item-name {
    font-weight: 700;
    color: #fff;
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ep-item-meta {
    color: var(--muted-text);
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ep-item-remove {
    border: 0;
    background: transparent;
    color: rgba(255, 100, 140, 0.5);
    font-size: 1rem;
    cursor: pointer;
    flex-shrink: 0;
    line-height: 1;
    padding: 0.15rem 0.2rem;
    transition: color 0.15s;
    border-radius: 6px;
}

.ep-item-remove:hover {
    color: #ff6080;
    background: rgba(255, 80, 120, 0.08);
}

/* Add ep row */
.compatible-links-info {
    background:rgba(255,255,255,0.05);
    border:1px solid rgba(255,255,255,0.1);
    border-radius:8px;
    padding:0.8rem;
    margin-bottom:1rem;
}

.link-badge {
    background:rgba(255,255,255,0.08);
    border:1px solid rgba(255,255,255,0.15);
    border-radius:6px;
    padding:0.5rem 0.75rem;
    text-align:center;
    font-size:0.85rem;
    transition:all 0.2s ease;
}

.link-badge.recommended {
    border-color:rgba(76,175,80,0.4);
    background:rgba(76,175,80,0.1);
    color:#4caf50;
}

.link-badge.not-recommended {
    border-color:rgba(255,152,0,0.4);
    background:rgba(255,152,0,0.1);
    color:#ffa726;
}

.ep-add-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    align-items: end;
}

.ep-add-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.5rem;
    align-items: end;
}

.ep-add-btn {
    height: 38px;
    padding: 0 1rem;
    border-radius: 12px;
    border: 0;
    background: linear-gradient(135deg, var(--studio-1), var(--studio-3));
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.18s, transform 0.18s;
    box-shadow: 0 4px 14px rgba(140, 8, 57, 0.3);
    flex-shrink: 0;
}

.ep-add-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

/* Cast list */
.cast-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.7rem;
    border-radius: 10px;
    border: 1px solid rgba(191, 31, 181, 0.16);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.85rem;
}

.cast-item-char {
    font-weight: 800;
    color: #fff;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cast-item-sep {
    color: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.cast-item-actor {
    color: var(--soft-text);
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cast-item-remove {
    border: 0;
    background: transparent;
    color: rgba(255, 100, 140, 0.5);
    font-size: 1rem;
    cursor: pointer;
    flex-shrink: 0;
    line-height: 1;
    padding: 0.1rem 0.2rem;
    transition: color 0.15s;
    border-radius: 6px;
}

.cast-item-remove:hover {
    color: #ff6080;
    background: rgba(255, 80, 120, 0.08);
}

@keyframes apShake {

    0%,
    100% {
        transform: translateX(0)
    }

    20% {
        transform: translateX(-5px)
    }

    40% {
        transform: translateX(5px)
    }

    60% {
        transform: translateX(-4px)
    }

    80% {
        transform: translateX(4px)
    }
}

@media (max-width: 520px) {
    .addproject-layout {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .addproject-cover-preview {
        width: 130px;
    }

    .addproject-fields {
        width: 100%;
    }

    .ep-add-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .featured-track {
        min-height: 640px;
    }

    .featured-slide-inner {
        grid-template-columns: 1fr;
    }

    .featured-slide-info {
        padding: 1rem;
    }
}

/* ── Home Sections ── */
.home-sections {
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
    margin-top: 2.2rem;
}

.home-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.home-section-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    letter-spacing: 0.01em;
}

.home-section-count {
    font-size: 0.75rem;
    color: var(--muted-text);
    font-weight: 600;
    margin-top: 0.1rem;
}

.home-section-scroll {
    display: flex;
    gap: 0.7rem;
    overflow-x: auto;
    padding-bottom: 0.6rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(191, 31, 181, 0.3) transparent;
}

.home-section-scroll::-webkit-scrollbar {
    height: 3px;
}

.home-section-scroll::-webkit-scrollbar-thumb {
    background: rgba(191, 31, 181, 0.3);
    border-radius: 99px;
}

.proj-card {
    flex-shrink: 0;
    width: 145px;
    border-radius: 14px;
    border: 1px solid rgba(191, 31, 181, 0.2);
    background: linear-gradient(180deg, rgba(88, 11, 89, 0.28), rgba(13, 13, 13, 0.9));
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    scroll-snap-align: start;
    position: relative;
}

.proj-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 18px 40px rgba(140, 8, 57, 0.38);
    border-color: rgba(191, 31, 181, 0.55);
}

.proj-card-cover {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
    background: #1a1a1a;
}

.proj-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.8rem 0.6rem 0.6rem;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, transparent 100%);
}

.proj-card-logo {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    width: 2.4rem;
    height: 2.4rem;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 0.2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}

.proj-card-name {
    font-weight: 800;
    font-size: 0.78rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 0.2rem;
}

.proj-card-type {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

.proj-card-views {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.1rem;
}

.home-section-empty {
    color: var(--muted-text);
    font-size: 0.85rem;
    padding: 0.5rem 0;
}

.featured-no-projects {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 0.75rem;
    color: var(--muted-text);
    font-size: 0.95rem;
    opacity: 0.7;
}

.featured-no-projects span:first-child {
    font-size: 2.5rem;
}

/* ── Project Detail Page ── */
#projectDetailPage {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 32;
    overflow-y: auto;
    overscroll-behavior: contain;
    width: 100vw;
    left: 0;
}

#projectDetailPage.is-open {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100vw;
}

.detail-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: var(--project-theme, #000000);
}

.detail-bg-img {
    position: absolute;
    inset: -10%;
    background-size: cover;
    background-position: center;
    filter: blur(18px) brightness(0.72) saturate(1.3);
    opacity: 0;
    display: none;
}

.detail-bg-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
}

.detail-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.detail-banner-wrapper {
    width: 100%;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.detail-content {
    flex: 1;
    /*width: min(960px, 100%);*/
    margin: 0 auto;
    padding: 2rem 1.25rem 3.5rem;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.detail-hero {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 2rem;
    align-items: start;
}

.detail-cover-wrap {
    position: relative;
}

.detail-cover {
    width: 100%;
    /*aspect-ratio: 2/3;*/
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid rgba(191, 31, 181, 0.35);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.65);
    display: block;
}

.detail-logo-wrap {
    margin-bottom: 1rem;
    max-width: 280px;
}

.detail-banner {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: center;
    flex-shrink: 1;
}

.detail-banner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    max-width: 200%;
    max-height: 280%;
}

.detail-banner-logo img {
    width: 400px;
    height: auto;
    max-width: 200%;
    max-height: 200%;
    object-fit: contain;
}

.detail-logo {
    width: 100%;
    max-height: 88px;
    object-fit: contain;
    display: block;
}

.detail-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding-top: 0.25rem;
}

.detail-title {
    font-size: clamp(1.4rem, 3vw + 0.5rem, 2rem);
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
}

.detail-meta-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.detail-badge {
    border-radius: 999px;
    padding: 0.28rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 800;
    border: 1px solid;
}

.detail-badge.type {
    background: rgba(191, 31, 181, 0.15);
    border-color: rgba(191, 31, 181, 0.35);
    color: var(--soft-text);
}

.detail-badge.status-andamento {
    background: rgba(50, 200, 120, 0.1);
    border-color: rgba(50, 200, 120, 0.3);
    color: #6ee7b7;
}

.detail-badge.status-parado {
    background: rgba(255, 190, 50, 0.1);
    border-color: rgba(255, 190, 50, 0.3);
    color: #ffd166;
}

.detail-badge.status-finalizado {
    background: rgba(80, 140, 255, 0.1);
    border-color: rgba(80, 140, 255, 0.3);
    color: #a5b4fc;
}

.detail-views-row {
    font-size: 0.8rem;
    color: var(--muted-text);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.detail-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.detail-genre-chip {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    font-size: 0.73rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
}

.detail-desc {
    color: var(--soft-text);
    line-height: 1.75;
    font-size: 0.95rem;
    margin: 0;
}

.detail-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.38);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin: 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.detail-credits-box {
    font-size: 0.88rem;
    color: var(--muted-text);
    line-height: 1.7;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
div#credits-section {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.detail-cast-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(190px, 1fr));
    gap: 0.5rem;
    padding-bottom: 1rem;
}

.detail-cast-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(191, 31, 181, 0.14);
    border-radius: 12px;
    padding: 0.55rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
}

.detail-cast-char {
    font-weight: 800;
    font-size: 0.82rem;
    color: #fff;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-cast-sep {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.7rem;
    flex-shrink: 0;
}

.detail-cast-actor {
    font-size: 0.82rem;
    color: var(--soft-text);
    text-align: right;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-episodes {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-ep-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.7rem 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(191, 31, 181, 0.16);
    background: rgba(255, 255, 255, 0.03);
    transition: background 0.18s, border-color 0.18s;
    text-decoration: none;
}

.detail-ep-item:hover {
    background: rgba(191, 31, 181, 0.1);
    border-color: rgba(191, 31, 181, 0.38);
}

.detail-ep-number {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--studio-1), var(--studio-3));
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.75rem;
    color: #fff;
}

.detail-ep-info {
    flex: 1;
    min-width: 0;
}

.detail-ep-name {
    font-weight: 700;
    font-size: 0.88rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.detail-ep-meta {
    font-size: 0.72rem;
    color: var(--muted-text);
    margin-top: 0.1rem;
}

.detail-ep-play {
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--studio-1), var(--studio-3));
    border: 0;
    border-radius: 999px;
    color: #fff;
    padding: 0.38rem 0.9rem;
    font-weight: 800;
    font-size: 0.78rem;
    cursor: pointer;
    transition: opacity 0.18s, transform 0.15s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.detail-ep-play:hover {
    opacity: 0.85;
    transform: scale(1.05);
}

.detail-episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    padding-bottom: 1rem;
}

.detail-ep-card {
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(191, 31, 181, 0.16);
    background: rgba(18, 18, 18, 0.6);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.detail-ep-card:hover {
    transform: translateY(-4px);
    border-color: rgba(191, 31, 181, 0.35);
    box-shadow: 0 12px 32px rgba(140, 8, 57, 0.3);
}

.detail-ep-card-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-ep-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.detail-ep-card:hover .detail-ep-card-overlay {
    opacity: 1;
}

.detail-ep-play-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--studio-1), var(--studio-3));
    border: 0;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 8px 20px rgba(140, 8, 57, 0.4);
}

.detail-ep-play-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 28px rgba(140, 8, 57, 0.5);
}

.detail-ep-card-info {
    padding: 0.75rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.detail-ep-card-name {
    font-weight: 700;
    font-size: 0.82rem;
    color: #fff;
    margin: 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

@media (max-width: 640px) {
    .detail-hero {
        grid-template-columns: 1fr;
    }

    .detail-cover {
        width: min(180px, 55%);
        margin: 0 auto;
        display: block;
    }

    .detail-cast-grid {
        grid-template-columns: 1fr;

    }
}

/* ── Watch Page ── */
#watchPage {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 48;
    background: #080808;
    overflow-y: auto;
    overscroll-behavior: contain;
}

#watchPage.is-open {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.watch-topbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1.2rem;
    background: rgba(6, 6, 6, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 5;
    backdrop-filter: blur(10px);
}

.watch-topbar-title {
    flex: 1;
    min-width: 0;
}

.watch-topbar-project {
    font-size: 0.73rem;
    color: var(--muted-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.watch-topbar-ep {
    font-size: 0.92rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.watch-ext-btn {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-radius: 10px;
    padding: 0.42rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: background 0.18s;
    flex-shrink: 0;
}

.watch-ext-btn:hover {
    background: rgba(255, 255, 255, 0.13);
}

.watch-body {
    display: grid;
    grid-template-columns: 1fr 290px;
    flex: 1;
}

.watch-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.watch-player-wrap {
    position: relative;
    width: 100%;
    background: #000;
}

.watch-player-wrap::before {
    content: '';
    display: block;
    padding-top: 56.25%;
}

.watch-player-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.watch-player-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: linear-gradient(135deg, #0a0a0a, #180a18);
}

.watch-player-fallback p {
    color: var(--muted-text);
    font-size: 0.88rem;
    margin: 0;
    text-align: center;
    padding: 0 1rem;
}

.watch-player-fallback a {
    background: linear-gradient(135deg, var(--studio-1), var(--studio-3));
    color: #fff;
    border-radius: 12px;
    padding: 0.65rem 1.4rem;
    font-weight: 800;
    font-size: 0.92rem;
    text-decoration: none;
    transition: opacity 0.18s;
}

.watch-player-fallback a:hover {
    opacity: 0.85;
}

.watch-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.1rem;
    background: rgba(10, 10, 10, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    gap: 0.75rem;
}

.watch-nav-center {
    text-align: center;
    flex: 1;
    min-width: 0;
}

.watch-nav-ep-num {
    font-size: 0.7rem;
    color: var(--muted-text);
    display: block;
}

.watch-nav-ep-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.watch-nav-btn {
    border: 1px solid rgba(191, 31, 181, 0.3);
    background: linear-gradient(180deg, rgba(88, 11, 89, 0.4), rgba(13, 13, 13, 0.9));
    color: #fff;
    border-radius: 12px;
    padding: 0.55rem 1rem;
    font-weight: 800;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.18s, transform 0.15s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.watch-nav-btn:hover:not(:disabled) {
    background: linear-gradient(180deg, rgba(191, 31, 181, 0.3), rgba(88, 11, 89, 0.6));
    transform: translateY(-1px);
}

.watch-nav-btn:disabled {
    opacity: 0.28;
    cursor: default;
}

.watch-ep-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    justify-content: center;
}

.watch-ep-stat {
    font-size: 0.9rem;
    color: var(--muted-text);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.watch-ep-stat-btn {
    background: none;
    border: none;
    color: var(--muted-text);
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.watch-ep-stat-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.watch-ep-stat-btn.is-liked {
    color: #ff6b9d;
}

.watch-comments-section {
    padding: 1.2rem 1.4rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.watch-comments-title {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.watch-comment-form {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.watch-comment-textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(191, 31, 181, 0.22);
    border-radius: 14px;
    color: #fff;
    padding: 0.72rem 0.9rem;
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
    min-height: 72px;
    box-sizing: border-box;
    width: 100%;
}

.watch-comment-textarea:focus {
    outline: none;
    border-color: rgba(191, 31, 181, 0.5);
    background: rgba(255, 255, 255, 0.06);
}

.watch-comment-textarea::placeholder {
    color: rgba(255, 255, 255, 0.22);
}

.watch-comment-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.watch-comment-chars {
    font-size: 0.72rem;
    color: var(--muted-text);
}

.watch-comment-submit {
    border: 0;
    background: linear-gradient(135deg, var(--studio-1), var(--studio-3));
    color: #fff;
    border-radius: 12px;
    padding: 0.58rem 1.2rem;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    transition: opacity 0.18s, transform 0.15s;
}

.watch-comment-submit:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.watch-comment-login-note {
    color: var(--muted-text);
    font-size: 0.88rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.watch-comment-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.watch-comment-item {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
}

.watch-comment-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--studio-1), var(--studio-3));
    color: #fff;
    font-weight: 800;
    font-size: 0.72rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.watch-comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.watch-comment-body {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 0.62rem 0.85rem;
}

.watch-comment-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
    flex-wrap: wrap;
}

.watch-comment-name {
    font-weight: 800;
    font-size: 0.8rem;
    color: #fff;
}

.watch-comment-time {
    font-size: 0.7rem;
    color: var(--muted-text);
}

.watch-comment-text {
    font-size: 0.88rem;
    color: var(--soft-text);
    line-height: 1.6;
    word-break: break-word;
    margin: 0;
}

.watch-comment-empty {
    color: var(--muted-text);
    font-size: 0.85rem;
    text-align: center;
    padding: 1.5rem 0;
}

.watch-comment-delete {
    margin-left: auto;
    border: 0;
    background: transparent;
    color: rgba(255, 80, 120, 0.45);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0.1rem 0.25rem;
    border-radius: 6px;
    line-height: 1;
    transition: color 0.15s, background 0.15s;
}

.watch-comment-delete:hover {
    color: #ff6080;
    background: rgba(255, 80, 120, 0.1);
}

/* Sidebar */
.watch-sidebar {
    background: rgba(8, 8, 8, 0.98);
    border-left: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.watch-sidebar-header {
    padding: 0.8rem 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.watch-sidebar-cover {
    width: 32px;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background: #1a1a1a;
    border: 1px solid rgba(191, 31, 181, 0.2);
}

.watch-sidebar-title {
    font-weight: 800;
    font-size: 0.82rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.watch-ep-scroll {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(191, 31, 181, 0.3) transparent;
}

.watch-ep-scroll::-webkit-scrollbar {
    width: 3px;
}

.watch-ep-scroll::-webkit-scrollbar-thumb {
    background: rgba(191, 31, 181, 0.3);
    border-radius: 99px;
}

.watch-ep-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.62rem 0.9rem;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    border-left: 3px solid transparent;
}

.watch-ep-row:hover {
    background: rgba(191, 31, 181, 0.08);
}

.watch-ep-row.is-active {
    background: linear-gradient(135deg, rgba(140, 8, 57, 0.22), rgba(191, 31, 181, 0.1));
    border-left-color: var(--studio-2);
}

.watch-ep-num {
    flex-shrink: 0;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.7rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.watch-ep-row.is-active .watch-ep-num {
    background: linear-gradient(135deg, var(--studio-1), var(--studio-3));
}

.watch-ep-row-info {
    flex: 1;
    min-width: 0;
}

.watch-ep-row-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.watch-ep-row-meta {
    font-size: 0.68rem;
    color: var(--muted-text);
    margin-top: 0.08rem;
}

.watch-ep-row-check {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: #6ee7b7;
}

/* Continue watching */
.continue-card {
    flex-shrink: 0;
    width: 190px;
    border-radius: 14px;
    border: 1px solid rgba(191, 31, 181, 0.22);
    background: linear-gradient(180deg, rgba(88, 11, 89, 0.28), rgba(13, 13, 13, 0.9));
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    scroll-snap-align: start;
}

.continue-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 18px 40px rgba(140, 8, 57, 0.35);
    border-color: rgba(191, 31, 181, 0.55);
}

.continue-card-cover-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #1a1a1a;
}

.continue-card-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.continue-card-cover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.continue-card:hover .continue-card-cover-overlay {
    opacity: 1;
}

.continue-card-play-icon {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: grid;
    place-items: center;
    font-size: 1rem;
}

.continue-card-body {
    padding: 0.55rem 0.65rem 0.65rem;
}

.continue-card-name {
    font-weight: 800;
    font-size: 0.8rem;
    color: #fff;
    margin: 0 0 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.continue-card-ep {
    font-size: 0.7rem;
    color: var(--studio-2);
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* History Page */
#historyPage {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 38;
    background: radial-gradient(circle at top left, rgba(140, 8, 57, 0.24), transparent 25%), linear-gradient(180deg, #090909, var(--studio-5));
    overflow-y: auto;
    overscroll-behavior: contain;
}

#historyPage.is-open {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.history-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    gap: 0.75rem;
}

.history-content {
    flex: 1;
    width: min(720px, 100%);
    margin: 0 auto;
    padding: 1.8rem 1.25rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.history-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.38);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    margin: 0.5rem 0 0.35rem;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0.95rem;
    border-radius: 16px;
    border: 1px solid rgba(191, 31, 181, 0.15);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s;
}

.history-item:hover {
    background: rgba(191, 31, 181, 0.1);
    border-color: rgba(191, 31, 181, 0.35);
}

.history-item-cover {
    width: 44px;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    background: #1a1a1a;
    border: 1px solid rgba(191, 31, 181, 0.18);
}

.history-item-info {
    flex: 1;
    min-width: 0;
}

.history-item-name {
    font-weight: 800;
    font-size: 0.9rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-item-ep {
    font-size: 0.75rem;
    color: var(--studio-2);
    font-weight: 700;
    margin-top: 0.1rem;
}

.history-item-time {
    font-size: 0.7rem;
    color: var(--muted-text);
    margin-top: 0.12rem;
}

.history-empty {
    color: var(--muted-text);
    font-size: 0.9rem;
    text-align: center;
    padding: 3rem 0;
}

.history-clear-btn {
    border: 1px solid rgba(255, 80, 120, 0.3);
    background: rgba(255, 80, 120, 0.07);
    color: #ffa0bb;
    border-radius: 999px;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s;
}

.history-clear-btn:hover {
    background: rgba(255, 80, 120, 0.18);
}

@media (max-width: 720px) {
    .watch-body {
        grid-template-columns: 1fr;
    }

    .watch-sidebar {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.07);
        max-height: 240px;
    }
}

/* ══════════════════════════════════════
       NOVOS COMPONENTES
    ══════════════════════════════════════ */

/* ── Topbar: botões novos ── */
.search-topbar-btn {
    border: 1px solid rgba(191, 31, 181, 0.25);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.75);
    border-radius: 12px;
    padding: 0.5rem 0.9rem;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: background 0.18s, color 0.18s;
    white-space: nowrap;
}

.search-topbar-btn:hover {
    background: rgba(191, 31, 181, 0.15);
    color: #fff;
}

/* ── Notificações ── */
.notif-bell-wrap {
    position: relative;
}

.notif-bell-btn {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-radius: 12px;
    width: 2.6rem;
    height: 2.6rem;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.18s;
    flex-shrink: 0;
}

.notif-bell-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    background: var(--studio-2);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    display: grid;
    place-items: center;
    padding: 0 3px;
    box-sizing: border-box;
    border: 2px solid #090909;
}

.notif-badge.hidden {
    display: none;
}

.notif-panel {
    position: fixed;
    top: calc(1.2rem + 76px);
    right: 1rem;
    width: min(340px, calc(100vw - 2rem));
    max-height: 430px;
    border-radius: 20px;
    border: 1px solid var(--card-border);
    background: linear-gradient(180deg, rgba(30, 10, 26, 0.99), rgba(13, 13, 13, 0.99));
    box-shadow: var(--shadow);
    z-index: 51;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.notif-panel.hidden {
    display: none;
}

.notif-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    position: sticky;
    top: 0;
    background: rgba(30, 10, 26, 0.99);
    z-index: 1;
}

.notif-panel-title {
    font-weight: 800;
    font-size: 0.95rem;
    color: #fff;
    margin: 0;
}

.notif-mark-all {
    border: 0;
    background: transparent;
    color: var(--studio-2);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.notif-list {
    display: flex;
    flex-direction: column;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.15s;
    cursor: pointer;
}

.notif-item:hover {
    background: rgba(191, 31, 181, 0.07);
}

.notif-item.is-unread {
    background: rgba(191, 31, 181, 0.06);
    border-left: 3px solid var(--studio-2);
}

.notif-item-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.notif-item-body {
    flex: 1;
    min-width: 0;
}

.notif-item-text {
    font-size: 0.82rem;
    color: #fff;
    line-height: 1.45;
    margin: 0 0 0.18rem;
}

.notif-item-time {
    font-size: 0.7rem;
    color: var(--muted-text);
}

.notif-unread-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--studio-2);
    flex-shrink: 0;
    margin-top: 0.35rem;
}

.notif-empty {
    color: var(--muted-text);
    font-size: 0.85rem;
    text-align: center;
    padding: 2rem 1rem;
}

/* ── Busca ── */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 52;
    background: rgba(5, 5, 5, 0.97);
    display: flex;
    flex-direction: column;
    overscroll-behavior: contain;
}

.search-overlay.hidden {
    display: none;
}

.search-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.search-input-wrap {
    flex: 1;
    position: relative;
}

.search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(191, 31, 181, 0.3);
    border-radius: 16px;
    color: #fff;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
}

.search-input:focus {
    outline: none;
    border-color: rgba(191, 31, 181, 0.6);
    background: rgba(255, 255, 255, 0.09);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.28);
}

.search-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    opacity: 0.45;
    pointer-events: none;
}

.search-close-btn {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-radius: 12px;
    padding: 0.5rem 1rem;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    white-space: nowrap;
}

.search-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-type-filters {
    display: flex;
    gap: 0.4rem;
    padding: 0.65rem 1.25rem;
    overflow-x: auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
    scrollbar-width: none;
}

.search-type-filters::-webkit-scrollbar {
    display: none;
}

.search-genre-filters {
    display: flex;
    gap: 0.35rem;
    padding: 0 1.25rem 0.65rem;
    overflow-x: auto;
    flex-shrink: 0;
    scrollbar-width: none;
}

.search-genre-filters::-webkit-scrollbar {
    display: none;
}

.search-genre-filters.hidden {
    display: none;
}

.search-filter-chip {
    border: 1px solid rgba(191, 31, 181, 0.22);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.65);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.search-filter-chip.is-active {
    background: linear-gradient(135deg, var(--studio-1), var(--studio-3));
    border-color: transparent;
    color: #fff;
}

.search-genre-chip {
    border: 1px solid rgba(191, 31, 181, 0.18);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    padding: 0.28rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.search-genre-chip.is-active {
    background: rgba(191, 31, 181, 0.22);
    border-color: rgba(191, 31, 181, 0.45);
    color: #fff;
}

.search-results-area {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1rem 1.25rem 2rem;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.75rem;
}

.search-empty {
    color: var(--muted-text);
    text-align: center;
    padding: 4rem 1rem;
    font-size: 0.95rem;
}

.search-count-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* ── Favoritos / Minha Lista ── */
.fav-btn {
    border: 0;
    background: rgba(0, 0, 0, 0.45);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.35rem 0.45rem;
    line-height: 1;
    transition: transform 0.2s, background 0.18s;
    display: inline-flex;
    align-items: center;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.fav-btn:hover {
    transform: scale(1.15);
    background: rgba(191, 31, 181, 0.25);
}

.fav-btn.is-fav {
    color: #ff6b9d;
    border-color: rgba(255, 107, 157, 0.35);
    background: rgba(255, 107, 157, 0.1);
}

#myListPage {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 42;
    background: linear-gradient(180deg, #090909, var(--studio-5));
    overflow-y: auto;
    overscroll-behavior: contain;
}

#myListPage.is-open {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.mylist-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── Footer ── */
.main-footer {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(30, 30, 30, 0.9) 100%);
    border-top: 1px solid rgba(191, 23, 101, 0.25);
    padding: 3rem 2rem 1.5rem;
    margin-top: auto;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-section h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    color: #BF1765;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-link {
    color: rgba(191, 23, 101, 0.8);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    font-size: 0.95rem;
}

.footer-link:hover {
    color: #BF1765;
    text-decoration: underline;
    transform: translateX(4px);
}

.footer-credits {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

.footer-credits strong {
    color: #BF1765;
    font-weight: 600;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(191, 23, 101, 0.15);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom p {
    margin: 0;
}

@media (max-width: 720px) {
    .main-footer {
        padding: 2rem 1.5rem 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-section h3 {
        font-size: 0.95rem;
    }
}

.mylist-content {
    flex: 1;
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 1.5rem 1.25rem 3rem;
    box-sizing: border-box;
}

.mylist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.75rem;
}

.mylist-empty {
    color: var(--muted-text);
    font-size: 0.92rem;
    text-align: center;
    padding: 3rem 0;
}

/* ── Ver Todos Page ── */
#allSectionPage {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 42;
    background: linear-gradient(180deg, #090909, var(--studio-5));
    overflow-y: auto;
    overscroll-behavior: contain;
}

#allSectionPage.is-open {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.allsec-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    gap: 0.75rem;
}

.allsec-content {
    flex: 1;
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 1.5rem 1.25rem 3rem;
    box-sizing: border-box;
}

.allsec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.75rem;
}

.allsec-count {
    font-size: 0.82rem;
    color: var(--muted-text);
    margin-bottom: 1rem;
}

.ver-todos-btn {
    border: 0;
    background: transparent;
    color: var(--studio-2);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    white-space: nowrap;
    text-decoration: underline;
    transition: color 0.15s;
}

.ver-todos-btn:hover {
    color: #fff;
    text-decoration: none;
}

/* ── Avaliação por estrelas ── */
.star-rating-block {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 0.85rem 1rem;
}

.star-rating-title {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin: 0 0 0.55rem;
}

.star-row {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.star-btn {
    border: 0;
    background: transparent;
    font-size: 1.6rem;
    cursor: pointer;
    padding: 0.05rem;
    line-height: 1;
    transition: transform 0.15s;
}

.star-btn:hover {
    transform: scale(1.25);
}

.star-rating-info {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.star-rating-avg {
    font-size: 0.82rem;
    color: var(--soft-text);
}

.star-rating-user {
    font-size: 0.75rem;
    color: var(--studio-2);
    font-weight: 700;
}

/* ── Autoplay Countdown ── */
.autoplay-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 1.1rem;
    background: linear-gradient(90deg, rgba(140, 8, 57, 0.3), rgba(191, 31, 181, 0.2));
    border-top: 1px solid rgba(191, 31, 181, 0.25);
    flex-shrink: 0;
}

.autoplay-bar.hidden {
    display: none;
}

.autoplay-info {
    flex: 1;
    min-width: 0;
}

.autoplay-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    display: block;
}

.autoplay-next-name {
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.autoplay-timer-text {
    font-size: 1rem;
    font-weight: 800;
    color: var(--studio-2);
    white-space: nowrap;
    flex-shrink: 0;
}

.autoplay-actions {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
}

.autoplay-skip-btn {
    border: 0;
    background: linear-gradient(135deg, var(--studio-1), var(--studio-3));
    color: #fff;
    border-radius: 10px;
    padding: 0.4rem 0.85rem;
    font-weight: 800;
    font-size: 0.78rem;
    cursor: pointer;
    white-space: nowrap;
}

.autoplay-cancel-btn {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    border-radius: 10px;
    padding: 0.4rem 0.85rem;
    font-weight: 700;
    font-size: 0.78rem;
    cursor: pointer;
    white-space: nowrap;
}

.autoplay-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    border: 0;
    background: transparent;
    padding: 0;
}

.autoplay-switch {
    width: 28px;
    height: 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    position: relative;
    transition: background 0.2s;
    flex-shrink: 0;
}

.autoplay-switch.is-on {
    background: var(--studio-2);
}

.autoplay-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s;
}

.autoplay-switch.is-on::after {
    transform: translateX(12px);
}

/* Container do fundo desfocado (Overlay) */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.25s ease-out;
}

/* Caixa do Modal */
.custom-modal-content {
    background: linear-gradient(145deg, #121212, #181115);
    border: 1px solid rgba(191, 31, 181, 0.25);
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(140, 8, 57, 0.15);
    animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Ícone animado */
.custom-modal-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    animation: pulseIcon 2s infinite alternate;
}

.custom-modal-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.custom-modal-content p {
    margin: 0 0 25px 0;
    font-size: 0.95rem;
    color: #dbc5d0; /* Muted text baseado no seu root */
    line-height: 1.5;
}

/* Flexbox para alinhar os botões lado a lado */
.custom-modal-actions {
    display: flex;
    gap: 12px;
}

/* Estilo Base dos Botões */
.custom-modal-actions button {
    flex: 1;
    padding: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

/* Botão Cancelar (Mais discreto) */
.modal-btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.modal-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

/* Botão Sim, Sair (Destaque em tons de Vinho/Rosa do Studio) */
.modal-btn-danger {
    background: linear-gradient(135deg, #8C0839, #580B59);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(140, 8, 57, 0.3);
}

.modal-btn-danger:hover {
    background: linear-gradient(135deg, #BF1765, #BF1FB5);
    box-shadow: 0 0 15px rgba(191, 31, 181, 0.5);
    transform: translateY(-1px);
}

.custom-modal-actions button:active {
    transform: translateY(1px) scale(0.98);
}

/* Animações de entrada suaves */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleUp {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes pulseIcon {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

/* --- TELA DE LOGIN E REGISTRO (AUTH PANEL) --- */
.auth-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background: rgba(13, 13, 13, 0.98); /* Fundo ligeiramente mais opaco */
    backdrop-filter: blur(12px);
    border-left: 1px solid rgba(191, 31, 181, 0.2);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
    z-index: 3000; /* Z-index bem alto para ficar acima de tudo */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    
    /* 🔥 MUDANÇA AQUI: O scroll agora fica no painel inteiro de forma inteligente */
    overflow-y: auto; 
    display: flex;
    flex-direction: column;
}

#authForm {
    padding: 0 30px 30px 30px;
}
.auth-tabs {
    padding: 0 30px 15px 30px;
}

.auth-panel.hidden {
    transform: translateX(100%);
    display: flex !important;
}

.auth-panel.hidden {
    transform: translateX(100%);
    display: flex !important; /* Mantém flex para animação funcionar */
}

.auth-panel-header {
    position: sticky;
    top: 0;
    background: rgba(13, 13, 13, 0.98);
    padding: 30px 30px 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 3001; /* Fica acima dos inputs do formulário */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-panel-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--muted-text);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--studio-2);
}

/* Abas Alternadoras */
.auth-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--muted-text);
    padding: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-tab-btn.active {
    background: linear-gradient(135deg, var(--studio-1), var(--studio-4));
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(140, 8, 57, 0.25);
}

/* Formulário e Inputs */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--soft-text);
    letter-spacing: 0.5px;
}

.form-group input {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 14px;
    color: #ffffff;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--studio-2);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0 0 10px rgba(191, 17, 101, 0.2);
}

/* Botão de Enviar */
.auth-submit-btn {
    width: 100%;
    padding: 14px;
    margin-top: 15px;
    background: linear-gradient(135deg, var(--studio-2), var(--studio-3));
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(191, 31, 181, 0.3);
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(191, 31, 181, 0.5);
    filter: brightness(1.1);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

/* Utilitário para esconder inputs */
.form-group.hidden {
    display: none !important;
}

/* Mensagem de Erro Profissional dentro do Formulário */
.auth-error-message {
    display: block !important;
    background-color: rgba(239, 68, 68, 0.15) !important;
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
    color: #f87171 !important;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    margin-bottom: 1.25rem;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Mobile melhorado: sidebar tabs ── */
.watch-sidebar-tabs {
    display: none;
    flex-shrink: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(8, 8, 8, 0.98);
}

@media (max-width: 720px) {
    .watch-body {
        grid-template-columns: 1fr;
    }

    .watch-sidebar {
        border-left: none;
        border-top: none;
        max-height: none;
        display: flex;
        flex-direction: column;
    }

    .watch-sidebar-header {
        display: none;
    }

    .watch-sidebar-tabs {
        display: flex;
    }

    .ws-tab-btn {
        flex: 1;
        border: 0;
        background: transparent;
        color: rgba(255, 255, 255, 0.5);
        padding: 0.7rem 0.5rem;
        font-size: 0.78rem;
        font-weight: 700;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.2rem;
        border-bottom: 2px solid transparent;
        transition: color 0.18s, border-color 0.18s;
    }

    .ws-tab-btn.is-active {
        color: #fff;
        border-bottom-color: var(--studio-2);
    }

    .ws-tab-icon {
        font-size: 1rem;
    }

    .watch-ep-scroll {
        max-height: 260px;
    }

    .watch-comments-section {
        display: none;
    }

    .watch-comments-section.is-mobile-visible {
        display: flex;
    }
}

/* ══════════════════════════════════════
   RESPONSIVIDADE MOBILE — Melhorias Gerais
   Alvo principal: < 480px (telas de celular)
   ══════════════════════════════════════ */

/* ── TOPBAR ── */
@media (max-width: 480px) {
    .topbar {
        padding: 0.85rem 1rem;
        gap: 0.5rem;
    }

    .brand {
        font-size: 1.15rem;
    }

    .logo {
        width: 36px;
        height: 36px;
    }

    .topbar-actions {
        gap: 0.4rem;
    }

    .search-topbar-btn {
        padding: 0.45rem 0.65rem;
        font-size: 0.78rem;
    }

    .auth-btn {
        min-width: 5rem;
        font-size: 0.8rem;
        padding: 0 0.75rem;
        min-height: 2.4rem;
    }

    .notif-bell-btn {
        width: 2.2rem;
        height: 2.2rem;
        font-size: 0.95rem;
    }
}

/* ── CARROSSEL DE DESTAQUES ── */
@media (max-width: 600px) {
    .featured-track {
        min-height: 0;
        height: 340px;
        border-radius: 18px;
    }

    .featured-slide::before {
        background: linear-gradient(180deg, rgba(9,9,9,0.45) 0%, rgba(9,9,9,0.75) 60%, rgba(9,9,9,0.95) 100%);
    }

    .featured-slide-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 1rem 1rem 3.5rem;
        gap: 0.75rem;
    }

    .featured-slide-visual {
        display: flex;
        justify-content: center;
        padding: 0;
    }

    .featured-cover {
        width: 100px;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.7);
        aspect-ratio: 2/3;
    }

    .featured-chip,
    .featured-desc {
        display: none;
    }

    .featured-slide-info {
        background: none;
        border: 0;
        border-radius: 0;
        backdrop-filter: none;
        padding: 0;
        gap: 0.5rem;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .featured-slide-info h2 {
        font-size: 1.1rem;
        line-height: 1.2;
        margin: 0;
        text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    }

    .featured-slide-info .primary-btn {
        padding: 0.5rem 1.1rem;
        font-size: 0.8rem;
        width: fit-content;
    }

    .featured-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    
        width: 3.5rem;
        height: 3.5rem;
    
        border: 0;
        border-radius: 50%;
        cursor: pointer;
    
        background: linear-gradient(
            135deg,
            var(--studio-1),
            var(--studio-3)
        );
    
        color: white;
        font-size: 1.4rem;
        font-weight: 800;
    
        box-shadow:
            0 10px 25px rgba(0,0,0,.35),
            0 0 20px rgba(255,0,140,.25);
    
        transition:
            transform .25s ease,
            box-shadow .25s ease,
            filter .25s ease;
    }

    .featured-arrow:hover {
        transform: translateY(-50%) scale(1.08);
        filter: brightness(1.15);
    
        box-shadow:
            0 15px 35px rgba(0,0,0,.4),
            0 0 30px rgba(255,0,140,.45);
    }
        .featured-arrow.prev {
        left: 1rem;
    }
    
    .featured-arrow.next {
        right: 1rem;
    }

    .featured-status {
        font-size: 0.68rem;
        padding: 0.22rem 0.6rem;
        bottom: 0.6rem;
        right: 0.6rem;
    }
    
}



/* ── HOME SECTIONS ── */
@media (max-width: 480px) {
    .content {
        padding: 1rem 0.85rem 2.5rem;
    }

    .home-sections {
        margin-top: 1.5rem;
        gap: 1.8rem;
    }

    .home-section-title {
        font-size: 0.95rem;
    }

    .proj-card {
        width: 125px;
    }

    .continue-card {
        width: 165px;
    }
}

/* ── PAINEL DE PERFIL ── */
@media (max-width: 480px) {
    .profile-panel {
        top: calc(0.85rem + 68px);
        right: 0.5rem;
        width: calc(70vw - 1rem);
    }

    .notif-panel {
        top: calc(0.85rem + 68px);
        right: 0.5rem;
        width: calc(100vw - 1rem);
        max-height: 380px;
    }
}

/* ── PÁGINA DE DETALHE ── */
@media (max-width: 480px) {
    .detail-topbar {
        padding: 0.85rem 1rem;
    }

    .detail-content {
        padding: 1.25rem 0.9rem 2.5rem;
        gap: 1.5rem;
    }

    .detail-hero {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .detail-cover {
        width: min(160px, 48%);
        margin: 0 auto;
    }

    .detail-title {
        font-size: 1.25rem;
        text-align: center;
    }

    .detail-meta-row {
        justify-content: center;
    }

    .detail-genres {
        justify-content: center;
    }

    .detail-desc {
        font-size: 0.88rem;
    }

    .detail-action-row {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .detail-stats-row {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .detail-cast-grid {
        grid-template-columns: 1fr;
    }

    .detail-episodes-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.75rem;
    }

    /*.detail-banner {*/
    /*    aspect-ratio: 16 / 9;*/
    /*}*/
    .detail-banner-logo img {
    width: 250px;
    height: auto;
    max-width: 200%;
    max-height: 200%;
    object-fit: contain;
}

    .detail-section-title {
        font-size: 0.72rem;
    }
}

/* ── PÁGINA DE DETALHE: info centralizada em mobile ── */
@media (max-width: 480px) {
    .detail-info {
        align-items: center;
        text-align: center;
    }

    .detail-logo-wrap {
        max-width: 200px;
    }

    .detail-cast-item {
        padding: 0.5rem 0.65rem;
        font-size: 0.78rem;
    }

    .detail-action-row {
        justify-content: center;
    }
}

/* ── WATCH PAGE ── */
@media (max-width: 480px) {
    .watch-topbar {
        padding: 0.65rem 0.9rem;
        gap: 0.5rem;
    }

    .watch-topbar-project {
        font-size: 0.68rem;
    }

    .watch-topbar-ep {
        font-size: 0.82rem;
    }

    .watch-nav {
        padding: 0.65rem 0.75rem;
        gap: 0.5rem;
    }

    .watch-nav-btn {
        padding: 0.5rem 0.7rem;
        font-size: 0.75rem;
    }

    .watch-nav-ep-num {
        font-size: 0.65rem;
    }

    .watch-nav-ep-name {
        font-size: 0.78rem;
    }

    .watch-comments-section {
        padding: 1rem 0.9rem 1.5rem;
    }

    .watch-comments-title {
        font-size: 0.9rem;
    }

    .watch-comment-textarea {
        font-size: 0.85rem;
        min-height: 60px;
    }

    .watch-ep-stats {
        padding: 0.65rem 1rem;
        gap: 0.75rem;
    }
}

/* ── ADD / EDIT PROJECT PAGES ── */
@media (max-width: 480px) {
    .addproject-topbar {
        padding: 0.75rem 1rem;
    }

    .addproject-topbar-title {
        font-size: 0.88rem;
    }

    .addproject-content {
        padding: 1.2rem 0.9rem 2rem;
        gap: 0.9rem;
    }

    .addproject-layout {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 1rem;
    }

    .addproject-cover-preview {
        width: 120px;
    }

    .addproject-fields {
        width: 100%;
    }

    .ap-input {
        font-size: 0.9rem;
        padding: 0.65rem 0.8rem;
    }

    .type-chip {
        font-size: 0.78rem;
        padding: 0.35rem 0.75rem;
    }

    .addproject-actions {
        flex-wrap: nowrap;
        justify-content: center;
        gap: 0.6rem;
    }

    .addproject-actions-right {
        width: 100%;
        justify-content: flex-end;
    }

    /* Add ep row em mobile: empilhar os inputs */
    #epAddRow,
    .ep-add-row {
        grid-template-columns: 1fr;
    }

    .ep-add-btn {
        width: 100%;
        justify-content: center;
    }

    /* Edit project: mesma lógica */
    #editProjectPage .addproject-content {
        padding: 1.2rem 0.9rem 2rem;
    }

    .compatible-links-info {
        padding: 0.65rem;
    }

    .compatible-links-info > div {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.4rem;
    }
}

/* ── STUDIO PAGE ── */
@media (max-width: 480px) {
    .studio-topbar {
        padding: 0.85rem 1rem;
    }

    .studio-content {
        padding: 1.75rem 0.9rem 2.5rem;
    }

    .studio-profile-avatar {
        width: 88px;
        height: 88px;
        font-size: 1.6rem;
    }

    .studio-profile-name {
        font-size: 1.1rem;
    }

    .studio-projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
        gap: 0.75rem;
    }

    .studio-projects-section {
        width: 100%;
    }
}

/* ── REVIEW / ADMIN PAGE ── */
@media (max-width: 480px) {
    .review-topbar {
        padding: 0.85rem 1rem;
        flex-wrap: wrap;
    }

    .review-topbar-center {
        position: static;
        transform: none;
        order: -1;
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        gap: 0.4rem;
        margin-bottom: 0.25rem;
    }

    .review-topbar-title {
        font-size: 0.9rem;
    }

    .review-topbar-sub {
        font-size: 0.7rem;
    }

    .review-content {
        padding: 1.2rem 0.9rem 2.5rem;
        gap: 0.9rem;
    }

    .review-stats-bar {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .review-stat-number {
        font-size: 1.35rem;
    }

    .review-stat-label {
        font-size: 0.65rem;
    }

    .review-filters-row {
        gap: 0.35rem;
    }

    .review-filter-btn {
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
    }

    .review-search {
        min-width: 100%;
        order: 10;
    }

    .review-detail-grid {
        grid-template-columns: 1fr;
    }

    .review-proj-actions {
        flex-direction: column;
    }

    .review-approve-btn,
    .review-reprove-btn {
        width: 100%;
    }
}

/* ── ADMIN MODAL ── */
@media (max-width: 480px) {
    .admin-card {
        width: 100%;
    }

    .confirm-card {
        border-radius: 18px;
        padding: 1rem;
    }

    .admin-field select,
    .admin-field input {
        font-size: 0.9rem;
        padding: 0.75rem 0.85rem;
    }

    .confirm-actions {
        flex-wrap: wrap;
    }

    .confirm-actions .cancel-btn,
    .confirm-actions .primary-btn {
        flex: 1;
        text-align: center;
    }
}

/* ── HISTORY PAGE ── */
@media (max-width: 480px) {
    .history-topbar {
        padding: 0.85rem 1rem;
    }

    .history-content {
        padding: 1.2rem 0.9rem 2.5rem;
    }

    .history-item {
        padding: 0.65rem 0.8rem;
        gap: 0.75rem;
    }

    .history-item-cover {
        width: 36px;
    }

    .history-item-name {
        font-size: 0.82rem;
    }

    .history-item-ep {
        font-size: 0.7rem;
    }
}

/* ── MY LIST / ALL SECTION PAGE ── */
@media (max-width: 480px) {
    .mylist-topbar,
    .allsec-topbar {
        padding: 0.85rem 1rem;
    }

    .mylist-content,
    .allsec-content {
        padding: 1.2rem 0.9rem 2.5rem;
    }

    .mylist-grid,
    .allsec-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 0.6rem;
    }
}

/* ── BUSCA OVERLAY ── */
@media (max-width: 480px) {
    .search-header {
        padding: 0.75rem 0.9rem;
        gap: 0.5rem;
    }

    .search-input {
        font-size: 0.9rem;
        padding: 0.65rem 0.85rem 0.65rem 2.5rem;
    }

    .search-close-btn {
        padding: 0.45rem 0.75rem;
        font-size: 0.8rem;
    }

    .search-type-filters {
        padding: 0.5rem 0.9rem;
        gap: 0.3rem;
    }

    .search-genre-filters {
        padding: 0 0.9rem 0.5rem;
    }

    .search-results-area {
        padding: 0.85rem 0.9rem 1.5rem;
    }

    .search-results-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 0.6rem;
    }
}

/* ── AUTH PANEL ── */
@media (max-width: 480px) {
    .auth-panel {
        max-width: 100%;
        border-left: none;
        border-top: 1px solid rgba(191, 31, 181, 0.2);
        box-shadow: 0 -10px 40px rgba(0,0,0,0.8);
    }

    .auth-panel-header {
        padding: 1.2rem 1.2rem 1rem;
    }

    .auth-panel-header h2 {
        font-size: 1.15rem;
    }

    #authForm {
        padding: 0 1.2rem 1.5rem;
    }

    .auth-tabs {
        padding: 0 1.2rem 1rem;
    }
}

/* ── LOGOUT MODAL ── */
@media (max-width: 480px) {
    .custom-modal-content {
        padding: 1.5rem 1.2rem;
        border-radius: 14px;
    }

    .custom-modal-content h3 {
        font-size: 1.15rem;
    }

    .custom-modal-content p {
        font-size: 0.88rem;
        margin-bottom: 1.25rem;
    }

    .custom-modal-actions {
        gap: 0.6rem;
    }
}

/* ── STAR RATING ── */
@media (max-width: 480px) {
    .star-btn {
        font-size: 1.4rem;
    }

    .star-rating-block {
        padding: 0.7rem 0.85rem;
    }
}

/* ── FOOTER ── */
@media (max-width: 480px) {
    .main-footer {
        padding: 1.5rem 1rem 1.25rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-bottom: 1.25rem;
    }
}

/* ── BOTÕES GERAIS ── */
@media (max-width: 480px) {
    .primary-btn,
    .cancel-btn,
    .secondary-btn {
        font-size: 0.88rem;
        padding: 0.7rem 1rem;
    }

    .studio-back-btn {
        padding: 0.5rem 0.85rem;
        font-size: 0.82rem;
    }
}

/* ── EDIT PROFILE MODAL ── */
@media (max-width: 480px) {
    .edit-card {
        border-radius: 18px;
        padding: 1.1rem;
    }

    .edit-card h2 {
        font-size: 1rem;
    }

    .edit-avatar-preview {
        width: 4.2rem;
        height: 4.2rem;
        font-size: 1rem;
    }
}

/* ── DETALHES SEASON PILLS ── */
@media (max-width: 480px) {
    .detail-season-picker {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .detail-season-pill {
        font-size: 0.75rem;
        padding: 0.3rem 0.7rem;
    }
}

/* ── EP ITEM MOVE BUTTONS ── */
@media (max-width: 480px) {
    .ep-item-move {
        display: none;
    }

    .ep-item-actions {
        gap: 0.25rem;
    }
}

/* ── NOTIF PANEL HEADER STICKY ── */
@media (max-width: 480px) {
    .notif-panel-header {
        padding: 0.75rem 0.9rem;
    }

    .notif-item {
        padding: 0.65rem 0.9rem;
    }
}

/* ── AUTH: Loading state e botão de reenvio ── */

/* Spinner inline no botão */
@keyframes authSpin {
    to { transform: rotate(360deg); }
}

.auth-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: authSpin 0.7s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Botão em loading */
.auth-submit-btn.is-loading {
    opacity: 0.78;
    cursor: not-allowed;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.auth-submit-btn:disabled {
    cursor: not-allowed;
    opacity: 0.72;
}

/* Botão de reenvio de código */
.auth-resend-btn {
    display: block;
    width: 100%;
    margin-top: 0.65rem;
    padding: 0.65rem;
    background: transparent;
    border: 1px solid rgba(191, 31, 181, 0.3);
    border-radius: 8px;
    color: var(--studio-2);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, opacity 0.18s;
    font-family: inherit;
}

.auth-resend-btn:hover:not(:disabled) {
    background: rgba(191, 31, 181, 0.1);
}

.auth-resend-btn.is-disabled,
.auth-resend-btn:disabled {
    cursor: not-allowed;
    opacity: 0.45;
    color: rgba(255, 255, 255, 0.45);
    border-color: rgba(255, 255, 255, 0.12);
}
