.spv-viewing {
    --spv-background: #ffffff;
    --spv-border: #d8dde3;
    --spv-text: #17212b;
    --spv-muted: #536273;
    --spv-accent: #185f73;
    --spv-accent-dark: #104554;
    --spv-site-blue: #6ec1e4;
    --spv-focus: #f0a32f;
    --spv-error: #9f2525;
    --spv-success: #216b3a;
    box-sizing: border-box;
    width: min(100%, 62rem);
    margin: 2rem auto;
    color: var(--spv-text);
    font-size: 1rem;
    line-height: 1.55;
}

.spv-viewing *,
.spv-viewing *::before,
.spv-viewing *::after {
    box-sizing: inherit;
}

.spv-panel {
    padding: clamp(1.1rem, 3vw, 2rem);
    border: 1px solid var(--spv-border);
    border-radius: 0.5rem;
    background: var(--spv-background);
    box-shadow: 0 0.35rem 1.25rem rgba(23, 33, 43, 0.08);
}

.spv-panel > :first-child {
    margin-top: 0;
}

.spv-panel > :last-child {
    margin-bottom: 0;
}

.spv-panel h2,
.spv-panel h3 {
    color: var(--spv-text);
    line-height: 1.25;
}

.spv-panel h2 {
    margin-bottom: 0.75rem;
    font-size: clamp(1.45rem, 4vw, 2rem);
}

.spv-panel h3 {
    margin: 0 0 0.55rem;
    font-size: 1.05rem;
}

.spv-panel--notice {
    max-width: 42rem;
    margin-right: auto;
    margin-left: auto;
}

.spv-form {
    display: grid;
    gap: 1.15rem;
    margin-top: 1.5rem;
}

.spv-field label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 650;
}

.spv-field input {
    width: 100%;
    min-height: 2.9rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid #8996a3;
    border-radius: 0.3rem;
    background: #ffffff;
    color: #111820;
    font: inherit;
}

.spv-field input:hover {
    border-color: #566473;
}

.spv-field input:focus,
.spv-choice input:focus,
.spv-terms:focus,
.spv-button:focus,
.spv-text-link:focus,
.spv-privacy a:focus {
    outline: 3px solid var(--spv-focus);
    outline-offset: 2px;
}

.spv-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.spv-terms {
    max-height: 15rem;
    padding: 1rem;
    overflow: auto;
    border: 1px solid var(--spv-border);
    border-radius: 0.3rem;
    background: #f7f9fb;
}

.spv-terms p {
    margin: 0;
}

.spv-choice {
    display: grid;
    grid-template-columns: 1.35rem minmax(0, 1fr);
    gap: 0.65rem;
    align-items: start;
}

.spv-choice input {
    width: 1.25rem;
    height: 1.25rem;
    margin: 0.15rem 0 0;
    accent-color: var(--spv-accent);
}

.spv-choice label {
    font-weight: 600;
}

.spv-choice a,
.spv-privacy a,
.spv-text-link {
    color: var(--spv-accent-dark);
    text-decoration-thickness: 0.09em;
    text-underline-offset: 0.15em;
}

.spv-privacy {
    margin: 0;
    color: var(--spv-muted);
    font-size: 0.94rem;
}

.spv-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 2.8rem;
    padding: 0.65rem 1.1rem;
    border: 2px solid var(--spv-accent);
    border-radius: 0.3rem;
    background: var(--spv-accent);
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.spv-button:hover {
    border-color: var(--spv-accent-dark);
    background: var(--spv-accent-dark);
    color: #ffffff;
}

.spv-button.spv-button--site-primary {
    border-color: var(--spv-site-blue);
    background: var(--spv-site-blue);
    color: #000000;
}

.spv-button.spv-button--site-primary:hover {
    border-color: var(--spv-accent-dark);
    background: var(--spv-accent-dark);
    color: #ffffff;
}

.spv-button.spv-button--site-primary:focus,
.spv-button.spv-button--site-primary:active {
    border-color: var(--spv-site-blue);
    background: var(--spv-site-blue);
    color: #000000;
    outline-color: var(--spv-accent-dark);
}

.spv-button.spv-button--site-primary:disabled,
.spv-button.spv-button--site-primary:disabled:hover,
.spv-button.spv-button--site-primary:disabled:focus,
.spv-button.spv-button--site-primary:disabled:active {
    border-color: #8996a3;
    background: #d8dde3;
    color: #3f4d5b;
    cursor: wait;
}

.spv-button--secondary {
    border-color: var(--spv-accent);
    background: transparent;
    color: var(--spv-accent-dark);
}

.spv-button--secondary:hover {
    color: #ffffff;
}

.spv-message {
    margin: 1rem 0;
    padding: 0.75rem 0.9rem;
    border-left: 0.3rem solid currentColor;
    background: #f7f9fb;
}

.spv-message--error {
    color: var(--spv-error);
}

.spv-message--success {
    color: var(--spv-success);
}

.spv-redeem-actions {
    margin: 1rem 0 0;
}

.spv-redeem-actions[hidden] {
    display: none !important;
}

.spv-player-panel {
    padding: clamp(0.8rem, 2vw, 1.25rem);
}

.spv-player {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(78vh, 67.5rem);
    border-radius: 0.35rem;
    background: #000000;
    aspect-ratio: 16 / 9;
}

.spv-player-note {
    margin: 1rem 0;
    color: var(--spv-muted);
    font-size: 0.94rem;
}

.spv-logout {
    margin-top: 1rem;
}

@media (max-width: 38rem) {
    .spv-viewing {
        margin: 1rem auto;
    }

    .spv-panel {
        padding: 1rem;
        border-radius: 0.35rem;
    }

    .spv-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .spv-viewing *,
    .spv-viewing *::before,
    .spv-viewing *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

@media (forced-colors: active) {
    .spv-panel,
    .spv-field input,
    .spv-terms,
    .spv-button {
        border-color: CanvasText;
    }
}
