:root {
    --bg: #07111f;
    --bg-deep: #02060d;
    --surface: rgba(10, 18, 32, 0.78);
    --surface-strong: rgba(8, 14, 24, 0.92);
    --surface-soft: rgba(255, 255, 255, 0.05);
    --line: rgba(255, 255, 255, 0.1);
    --text: #eef4ff;
    --muted: #9fb0c9;
    --brand: #5ce1e6;
    --accent: #ff7a59;
    --success: #7cf29a;
    --danger: #ff8b8b;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.site-body {
    position: relative;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(92, 225, 230, 0.16), transparent 28%),
        radial-gradient(circle at 80% 10%, rgba(255, 122, 89, 0.14), transparent 24%),
        linear-gradient(180deg, #0b1425 0%, var(--bg) 45%, var(--bg-deep) 100%);
    font-family: "Space Grotesk", sans-serif;
}

.site-background {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 95%);
    pointer-events: none;
    z-index: 0;
}

.site-main,
.site-navbar {
    position: relative;
    z-index: 1;
}

.site-navbar {
    padding: 1rem 0;
    background: rgba(3, 8, 15, 0.74);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-brand,
.navbar-dark .navbar-brand {
    color: #fff;
    font-family: "Sora", sans-serif;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.76);
    font-weight: 600;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: #fff;
}

.hero-panel,
.app-card,
.auth-card {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(13, 23, 41, 0.92), rgba(7, 13, 24, 0.88));
    box-shadow: var(--shadow);
}

.hero-panel {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    padding: 2rem;
}

.hero-panel::after {
    content: "";
    position: absolute;
    top: -30px;
    right: -30px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(92, 225, 230, 0.35) 0%, rgba(92, 225, 230, 0) 72%);
}

.hero-panel-compact {
    margin-bottom: 1.5rem;
}

.eyebrow,
.section-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    background: rgba(255, 255, 255, 0.07);
    color: #d7faff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-title {
    margin: 1rem 0 0;
    font-family: "Sora", sans-serif;
    font-size: clamp(2.3rem, 6vw, 4.6rem);
    line-height: 0.95;
    font-weight: 800;
}

.hero-copy,
.section-copy {
    max-width: 60ch;
    margin-top: 1rem;
    color: var(--muted);
    font-size: 1.02rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.75rem;
}

.app-card,
.auth-card {
    height: 100%;
    border-radius: 28px;
}

.app-card-body,
.auth-card {
    padding: 1.5rem;
}

.section-title {
    margin: 0;
    font-family: "Sora", sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
}

.status-text {
    margin-top: 1rem;
    font-weight: 700;
}

.status-text.is-success {
    color: var(--success);
}

.auth-shell {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.auth-card {
    width: min(100%, 560px);
}

.auth-title {
    font-size: clamp(2rem, 5vw, 3.4rem);
}

.auth-copy {
    max-width: 42ch;
}

.auth-form {
    margin-top: 1.5rem;
}

.form-label {
    color: #d9e6f8;
    font-weight: 600;
}

.form-control {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 0.9rem 1rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.form-control:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(92, 225, 230, 0.7);
    box-shadow: 0 0 0 0.2rem rgba(92, 225, 230, 0.16);
}

.btn {
    border-radius: 999px;
    padding: 0.8rem 1.2rem;
    font-weight: 700;
    border-width: 1px;
}

.btn-brand {
    color: #041019;
    background: linear-gradient(135deg, var(--brand), #8ef2ca);
    border-color: transparent;
}

.btn-brand:hover,
.btn-brand:focus {
    color: #041019;
    background: linear-gradient(135deg, #72ebef, #9bf5d4);
}

.btn-ghost {
    color: #eef4ff;
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}

.btn-ghost:hover,
.btn-ghost:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.18);
}

.btn-danger-soft {
    color: #fff;
    background: rgba(255, 139, 139, 0.12);
    border-color: rgba(255, 139, 139, 0.24);
}

.btn-danger-soft:hover,
.btn-danger-soft:focus {
    color: #fff;
    background: rgba(255, 139, 139, 0.2);
    border-color: rgba(255, 139, 139, 0.3);
}

.alert {
    border: 1px solid transparent;
    border-radius: 20px;
}

.alert-danger {
    color: #ffd9d9;
    background: rgba(255, 89, 89, 0.12);
    border-color: rgba(255, 89, 89, 0.24);
}

.alert-info {
    color: #d5f6ff;
    background: rgba(92, 225, 230, 0.11);
    border-color: rgba(92, 225, 230, 0.22);
}

.media-stack {
    display: grid;
    gap: 0.85rem;
    margin-top: 1rem;
}

.media-card {
    display: grid;
    gap: 0.2rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.media-card span {
    color: var(--muted);
    font-size: 0.95rem;
}

.spotify-wrapped-page {
    --spotify-green: #1ed760;
    --spotify-panel: rgba(18, 18, 18, 0.88);
    --spotify-panel-soft: rgba(29, 29, 29, 0.82);
    --spotify-line: rgba(255, 255, 255, 0.08);
    --spotify-text: #f5f5f5;
    --spotify-muted: #b3b3b3;
    color: var(--spotify-text);
    margin-top: -0.5rem;
    padding: 1rem 0 4rem;
}

.spotify-wrapped-page .wrapped-shell {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.spotify-wrapped-page .wrapped-hero {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(30, 215, 96, 0.95), rgba(18, 18, 18, 0.92) 68%);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.spotify-wrapped-page .wrapped-hero::after {
    content: "";
    position: absolute;
    inset: auto -8% -45% auto;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    filter: blur(4px);
}

.spotify-wrapped-page .wrapped-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.spotify-wrapped-page .wrapped-title {
    max-width: 12ch;
    margin: 0;
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    line-height: 0.95;
    font-weight: 900;
}

.spotify-wrapped-page .wrapped-subtitle {
    max-width: 52ch;
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
}

.spotify-wrapped-page .wrapped-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.spotify-wrapped-page .wrapped-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1.25rem;
}

.spotify-wrapped-page .wrapped-filter-label {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.spotify-wrapped-page .wrapped-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.spotify-wrapped-page .wrapped-filter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.spotify-wrapped-page .wrapped-filter-pill.is-active {
    background: #fff;
    border-color: #fff;
    color: #111;
}

.spotify-wrapped-page .wrapped-button {
    border: 0;
    border-radius: 999px;
    padding: 0.8rem 1.2rem;
    font-weight: 700;
    text-decoration: none;
}

.spotify-wrapped-page .wrapped-button-primary {
    background: #fff;
    color: #111;
}

.spotify-wrapped-page .wrapped-button-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.spotify-wrapped-page .stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.spotify-wrapped-page .stat-card,
.spotify-wrapped-page .section-card {
    border: 1px solid var(--spotify-line);
    border-radius: 24px;
    background: var(--spotify-panel);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}

.spotify-wrapped-page .stat-card {
    padding: 1.15rem 1.25rem;
}

.spotify-wrapped-page .stat-label {
    color: var(--spotify-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.spotify-wrapped-page .stat-value {
    margin-top: 0.35rem;
    font-size: 1.8rem;
    font-weight: 800;
}

.spotify-wrapped-page .content-grid {
    display: grid;
    grid-template-columns: 1.25fr 1.25fr 0.9fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.spotify-wrapped-page .section-card {
    padding: 1.35rem;
    background: linear-gradient(180deg, rgba(35, 35, 35, 0.88), rgba(18, 18, 18, 0.95));
}

.spotify-wrapped-page .section-copy {
    margin: 0.35rem 0 0;
    color: var(--spotify-muted);
    font-size: 0.95rem;
}

.spotify-wrapped-page .stack-list {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.25rem;
}

.spotify-wrapped-page .media-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 0.9rem;
    align-items: center;
    padding: 0.8rem;
    border-radius: 18px;
    background: var(--spotify-panel-soft);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.spotify-wrapped-page .media-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(30, 215, 96, 0.16);
    color: var(--spotify-green);
    font-weight: 800;
    font-size: 0.9rem;
}

.spotify-wrapped-page .media-thumb,
.spotify-wrapped-page .media-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: cover;
}

.spotify-wrapped-page .media-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--spotify-green), #0d7f35);
    color: #08120b;
    font-weight: 900;
    font-size: 1.3rem;
}

.spotify-wrapped-page .media-title {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--spotify-text);
}

.spotify-wrapped-page .media-content {
    min-width: 0;
}

.spotify-wrapped-page .media-meta {
    display: block;
    margin-top: 0.15rem;
    color: var(--spotify-muted);
    font-size: 0.92rem;
}

.spotify-wrapped-page .media-submeta {
    display: block;
    margin-top: 0.2rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.86rem;
}

.spotify-wrapped-page .media-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.55rem;
}

.spotify-wrapped-page .media-tag {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.8rem;
    font-weight: 700;
}

.spotify-wrapped-page .profile-panel {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.25rem;
}

.spotify-wrapped-page .profile-block,
.spotify-wrapped-page .device-item {
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: var(--spotify-panel-soft);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.spotify-wrapped-page .profile-label {
    display: block;
    color: var(--spotify-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.spotify-wrapped-page .profile-value,
.spotify-wrapped-page .device-title {
    display: block;
    margin-top: 0.3rem;
    font-weight: 700;
    color: var(--spotify-text);
}

.spotify-wrapped-page .device-meta {
    display: block;
    margin-top: 0.2rem;
    color: var(--spotify-muted);
    font-size: 0.92rem;
}

.spotify-wrapped-page .message-card {
    margin-top: 1rem;
    border-radius: 20px;
    padding: 1rem 1.1rem;
    background: rgba(255, 193, 7, 0.12);
    border: 1px solid rgba(255, 193, 7, 0.28);
    color: #ffe6a1;
}

.spotify-wrapped-page .empty-state {
    margin-top: 1.25rem;
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--spotify-muted);
}

.youtube-wrapped-page {
    --youtube-red: #ff3131;
    --youtube-red-deep: #c70f0f;
    --youtube-black: #0f0f10;
    --youtube-panel: rgba(18, 18, 20, 0.92);
    --youtube-panel-soft: rgba(29, 29, 33, 0.84);
    --youtube-line: rgba(255, 255, 255, 0.08);
    --youtube-text: #f7f7f7;
    --youtube-muted: #aaaaaf;
    color: var(--youtube-text);
    margin-top: -0.5rem;
    padding: 1rem 0 4rem;
    background:
        radial-gradient(circle at top left, rgba(255, 49, 49, 0.22), transparent 26%),
        radial-gradient(circle at 82% 12%, rgba(255, 255, 255, 0.06), transparent 18%),
        linear-gradient(180deg, #171719 0%, #101012 48%, #09090a 100%);
    border-radius: 32px;
}

.youtube-wrapped-page .youtube-shell {
    width: min(1120px, calc(100% - 1rem));
    margin: 0 auto;
}

.youtube-wrapped-page .youtube-hero {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    padding: 2rem;
    background:
        linear-gradient(135deg, rgba(255, 49, 49, 0.98), rgba(42, 10, 10, 0.95) 60%, rgba(12, 12, 13, 0.98) 100%);
    box-shadow: 0 26px 90px rgba(0, 0, 0, 0.38);
}

.youtube-wrapped-page .youtube-hero::before {
    content: "";
    position: absolute;
    right: -40px;
    top: 26px;
    width: 220px;
    height: 140px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.08);
    transform: rotate(-12deg);
}

.youtube-wrapped-page .youtube-kicker {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.youtube-wrapped-page .youtube-title {
    max-width: 11ch;
    margin: 0;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 0.93;
    font-weight: 900;
}

.youtube-wrapped-page .youtube-subtitle {
    max-width: 56ch;
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.05rem;
}

.youtube-wrapped-page .youtube-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.youtube-wrapped-page .youtube-button {
    border: 0;
    border-radius: 999px;
    padding: 0.85rem 1.25rem;
    text-decoration: none;
    font-weight: 800;
}

.youtube-wrapped-page .youtube-button-primary {
    background: #fff;
    color: #101010;
}

.youtube-wrapped-page .youtube-button-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.youtube-wrapped-page .youtube-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.youtube-wrapped-page .youtube-stat-card,
.youtube-wrapped-page .youtube-section-card {
    border: 1px solid var(--youtube-line);
    border-radius: 24px;
    background: var(--youtube-panel);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.youtube-wrapped-page .youtube-stat-card {
    padding: 1.15rem 1.25rem;
}

.youtube-wrapped-page .youtube-stat-label {
    color: var(--youtube-muted);
    font-size: 0.84rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.youtube-wrapped-page .youtube-stat-value {
    margin-top: 0.4rem;
    font-size: 1.7rem;
    font-weight: 800;
}

.youtube-wrapped-page .youtube-content-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr 1.05fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.youtube-wrapped-page .youtube-section-card {
    padding: 1.35rem;
    background: linear-gradient(180deg, rgba(30, 30, 32, 0.9), rgba(15, 15, 17, 0.96));
}

.youtube-wrapped-page .youtube-section-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
}

.youtube-wrapped-page .youtube-section-copy {
    margin: 0.35rem 0 0;
    color: var(--youtube-muted);
    font-size: 0.95rem;
}

.youtube-wrapped-page .youtube-channel-header {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
}

.youtube-wrapped-page .youtube-avatar {
    width: 88px;
    height: 88px;
    border-radius: 24px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.08);
}

.youtube-wrapped-page .youtube-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--youtube-red), var(--youtube-red-deep));
    color: white;
    font-weight: 900;
}

.youtube-wrapped-page .youtube-profile-panel {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.2rem;
}

.youtube-wrapped-page .youtube-profile-block {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: var(--youtube-panel-soft);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.youtube-wrapped-page .youtube-profile-label {
    display: block;
    color: var(--youtube-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.youtube-wrapped-page .youtube-profile-value {
    display: block;
    margin-top: 0.35rem;
    font-weight: 700;
    color: var(--youtube-text);
}

.youtube-wrapped-page .youtube-video-stack {
    display: grid;
    gap: 0.95rem;
    margin-top: 1.2rem;
}

.youtube-wrapped-page .youtube-video-card {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 0.85rem;
    padding: 0.8rem;
    border-radius: 20px;
    background: var(--youtube-panel-soft);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.youtube-wrapped-page .youtube-video-thumb {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
}

.youtube-wrapped-page .youtube-video-thumb-wide {
    aspect-ratio: 16 / 9;
}

.youtube-wrapped-page .youtube-thumb-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 49, 49, 0.9), rgba(85, 12, 12, 0.92));
    color: white;
    font-weight: 800;
}

.youtube-wrapped-page .youtube-video-copy {
    display: grid;
    align-content: center;
    gap: 0.3rem;
}

.youtube-wrapped-page .youtube-video-title {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    color: var(--youtube-text);
}

.youtube-wrapped-page .youtube-video-meta {
    display: block;
    color: var(--youtube-muted);
    font-size: 0.92rem;
}

.youtube-wrapped-page .youtube-message-card,
.youtube-wrapped-page .youtube-empty-state {
    margin-top: 1rem;
    border-radius: 20px;
    padding: 1rem 1.1rem;
}

.youtube-wrapped-page .youtube-message-card {
    background: rgba(255, 193, 7, 0.12);
    border: 1px solid rgba(255, 193, 7, 0.28);
    color: #ffe6a1;
}

.youtube-wrapped-page .youtube-empty-state {
    background: rgba(255, 255, 255, 0.04);
    color: var(--youtube-muted);
}

.youtube-wrapped-page .youtube-import-card {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1.35rem;
    border: 1px solid var(--youtube-line);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(30, 30, 32, 0.9), rgba(15, 15, 17, 0.96));
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.youtube-wrapped-page .youtube-import-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: end;
}

.youtube-wrapped-page .youtube-upload-field {
    display: grid;
    gap: 0.45rem;
    min-width: min(100%, 340px);
}

.youtube-wrapped-page .youtube-upload-label {
    color: var(--youtube-muted);
    font-size: 0.84rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.youtube-wrapped-page .youtube-upload-field input[type="file"] {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: var(--youtube-text);
}

.youtube-wrapped-page .youtube-import-feedback {
    border-radius: 18px;
    padding: 0.95rem 1rem;
    font-weight: 600;
}

.youtube-wrapped-page .youtube-import-feedback.is-success {
    background: rgba(30, 215, 96, 0.14);
    border: 1px solid rgba(30, 215, 96, 0.24);
    color: #b8ffd1;
}

.youtube-wrapped-page .youtube-import-feedback.is-error {
    background: rgba(255, 49, 49, 0.14);
    border: 1px solid rgba(255, 49, 49, 0.24);
    color: #ffd4d4;
}

.youtube-wrapped-page .youtube-stat-grid-history {
    margin-top: 1rem;
}

.youtube-wrapped-page .youtube-stat-value-small {
    font-size: 1.2rem;
    line-height: 1.2;
}

.youtube-wrapped-page .youtube-history-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.youtube-wrapped-page .youtube-history-list {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.2rem;
}

.youtube-wrapped-page .youtube-history-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
    padding: 0.85rem;
    border-radius: 18px;
    background: var(--youtube-panel-soft);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.youtube-wrapped-page .youtube-history-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 49, 49, 0.18);
    color: #fff;
    font-weight: 900;
}

.youtube-wrapped-page .youtube-history-copy {
    min-width: 0;
}

.youtube-wrapped-page .youtube-history-title {
    display: block;
    font-weight: 700;
    color: var(--youtube-text);
}

.youtube-wrapped-page .youtube-history-meta {
    display: block;
    margin-top: 0.2rem;
    color: var(--youtube-muted);
    font-size: 0.92rem;
}

.twitch-wrapped-page {
    --twitch-purple: #9146ff;
    --twitch-purple-deep: #5b21b6;
    --twitch-panel: rgba(20, 16, 34, 0.92);
    --twitch-panel-soft: rgba(36, 26, 56, 0.86);
    --twitch-line: rgba(255, 255, 255, 0.08);
    --twitch-text: #f4f0ff;
    --twitch-muted: #b5abd8;
    color: var(--twitch-text);
    margin-top: -0.5rem;
    padding: 1rem 0 4rem;
    background:
        radial-gradient(circle at top left, rgba(145, 70, 255, 0.28), transparent 24%),
        radial-gradient(circle at 85% 15%, rgba(145, 70, 255, 0.14), transparent 20%),
        linear-gradient(180deg, #171221 0%, #0f0b18 48%, #09070f 100%);
    border-radius: 32px;
}

.twitch-wrapped-page .twitch-shell {
    width: min(1120px, calc(100% - 1rem));
    margin: 0 auto;
}

.twitch-wrapped-page .twitch-hero {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(145, 70, 255, 0.98), rgba(69, 29, 129, 0.95) 58%, rgba(15, 11, 24, 0.98) 100%);
    box-shadow: 0 26px 90px rgba(0, 0, 0, 0.36);
}

.twitch-wrapped-page .twitch-hero::after {
    content: "";
    position: absolute;
    right: -34px;
    top: -20px;
    width: 180px;
    height: 180px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.08);
    transform: rotate(18deg);
}

.twitch-wrapped-page .twitch-kicker {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.twitch-wrapped-page .twitch-title {
    max-width: 11ch;
    margin: 0;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 0.93;
    font-weight: 900;
}

.twitch-wrapped-page .twitch-subtitle {
    max-width: 56ch;
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.05rem;
}

.twitch-wrapped-page .twitch-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.twitch-wrapped-page .twitch-button {
    border: 0;
    border-radius: 999px;
    padding: 0.85rem 1.25rem;
    text-decoration: none;
    font-weight: 800;
}

.twitch-wrapped-page .twitch-button-primary {
    background: #fff;
    color: #130f1d;
}

.twitch-wrapped-page .twitch-button-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.twitch-wrapped-page .twitch-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.twitch-wrapped-page .twitch-stat-card,
.twitch-wrapped-page .twitch-section-card {
    border: 1px solid var(--twitch-line);
    border-radius: 24px;
    background: var(--twitch-panel);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.twitch-wrapped-page .twitch-stat-card {
    padding: 1.15rem 1.25rem;
}

.twitch-wrapped-page .twitch-stat-label {
    color: var(--twitch-muted);
    font-size: 0.84rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.twitch-wrapped-page .twitch-stat-value {
    margin-top: 0.4rem;
    font-size: 1.7rem;
    font-weight: 800;
}

.twitch-wrapped-page .twitch-content-grid {
    display: grid;
    grid-template-columns: 0.95fr 0.95fr 1.1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.twitch-wrapped-page .twitch-section-card {
    padding: 1.35rem;
    background: linear-gradient(180deg, rgba(37, 28, 55, 0.9), rgba(16, 12, 26, 0.96));
}

.twitch-wrapped-page .twitch-section-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
}

.twitch-wrapped-page .twitch-section-copy {
    margin: 0.35rem 0 0;
    color: var(--twitch-muted);
    font-size: 0.95rem;
}

.twitch-wrapped-page .twitch-profile-head {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
}

.twitch-wrapped-page .twitch-avatar {
    width: 88px;
    height: 88px;
    border-radius: 24px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.08);
}

.twitch-wrapped-page .twitch-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--twitch-purple), var(--twitch-purple-deep));
    color: white;
    font-weight: 900;
}

.twitch-wrapped-page .twitch-profile-panel {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.2rem;
}

.twitch-wrapped-page .twitch-profile-block {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: var(--twitch-panel-soft);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.twitch-wrapped-page .twitch-profile-label {
    display: block;
    color: var(--twitch-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.twitch-wrapped-page .twitch-profile-value {
    display: block;
    margin-top: 0.35rem;
    font-weight: 700;
    color: var(--twitch-text);
}

.twitch-wrapped-page .twitch-video-stack {
    display: grid;
    gap: 0.95rem;
    margin-top: 1.2rem;
}

.twitch-wrapped-page .twitch-video-card {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 0.85rem;
    padding: 0.8rem;
    border-radius: 20px;
    background: var(--twitch-panel-soft);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.twitch-wrapped-page .twitch-video-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    object-fit: cover;
}

.twitch-wrapped-page .twitch-thumb-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(145, 70, 255, 0.92), rgba(62, 29, 120, 0.94));
    color: white;
    font-weight: 800;
}

.twitch-wrapped-page .twitch-video-copy {
    display: grid;
    align-content: center;
    gap: 0.25rem;
}

.twitch-wrapped-page .twitch-video-title {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    color: var(--twitch-text);
}

.twitch-wrapped-page .twitch-video-meta {
    display: block;
    color: var(--twitch-muted);
    font-size: 0.92rem;
}

.twitch-wrapped-page .twitch-message-card,
.twitch-wrapped-page .twitch-empty-state {
    margin-top: 1rem;
    border-radius: 20px;
    padding: 1rem 1.1rem;
}

.twitch-wrapped-page .twitch-message-card {
    background: rgba(255, 193, 7, 0.12);
    border: 1px solid rgba(255, 193, 7, 0.28);
    color: #ffe6a1;
}

.twitch-wrapped-page .twitch-empty-state {
    background: rgba(255, 255, 255, 0.04);
    color: var(--twitch-muted);
}

.steam-wrapped-page {
    --steam-blue: #66c0f4;
    --steam-blue-deep: #1b3c53;
    --steam-panel: rgba(15, 28, 42, 0.94);
    --steam-panel-soft: rgba(23, 41, 58, 0.86);
    --steam-line: rgba(255, 255, 255, 0.08);
    --steam-text: #edf8ff;
    --steam-muted: #9fbfd4;
    color: var(--steam-text);
    margin-top: -0.5rem;
    padding: 1rem 0 4rem;
    background:
        radial-gradient(circle at top left, rgba(102, 192, 244, 0.24), transparent 24%),
        radial-gradient(circle at 82% 12%, rgba(102, 192, 244, 0.12), transparent 20%),
        linear-gradient(180deg, #15202d 0%, #0f1824 48%, #0a1017 100%);
    border-radius: 32px;
}

.steam-wrapped-page .steam-shell {
    width: min(1120px, calc(100% - 1rem));
    margin: 0 auto;
}

.steam-wrapped-page .steam-hero {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(102, 192, 244, 0.96), rgba(27, 60, 83, 0.94) 54%, rgba(10, 16, 23, 0.98) 100%);
    box-shadow: 0 26px 90px rgba(0, 0, 0, 0.36);
}

.steam-wrapped-page .steam-hero::after {
    content: "";
    position: absolute;
    right: -28px;
    top: -18px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.steam-wrapped-page .steam-kicker {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.steam-wrapped-page .steam-title {
    max-width: 11ch;
    margin: 0;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 0.93;
    font-weight: 900;
}

.steam-wrapped-page .steam-subtitle {
    max-width: 56ch;
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.05rem;
}

.steam-wrapped-page .steam-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.steam-wrapped-page .steam-button {
    border: 0;
    border-radius: 999px;
    padding: 0.85rem 1.25rem;
    text-decoration: none;
    font-weight: 800;
}

.steam-wrapped-page .steam-button-primary {
    background: #fff;
    color: #101820;
}

.steam-wrapped-page .steam-button-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.steam-wrapped-page .steam-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.steam-wrapped-page .steam-stat-card,
.steam-wrapped-page .steam-section-card {
    border: 1px solid var(--steam-line);
    border-radius: 24px;
    background: var(--steam-panel);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.steam-wrapped-page .steam-stat-card {
    padding: 1.15rem 1.25rem;
}

.steam-wrapped-page .steam-stat-label {
    color: var(--steam-muted);
    font-size: 0.84rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.steam-wrapped-page .steam-stat-value {
    margin-top: 0.4rem;
    font-size: 1.7rem;
    font-weight: 800;
}

.steam-wrapped-page .steam-content-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.05fr 1.05fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.steam-wrapped-page .steam-section-card {
    padding: 1.35rem;
    background: linear-gradient(180deg, rgba(20, 35, 50, 0.9), rgba(10, 16, 23, 0.96));
}

.steam-wrapped-page .steam-section-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
}

.steam-wrapped-page .steam-section-copy {
    margin: 0.35rem 0 0;
    color: var(--steam-muted);
    font-size: 0.95rem;
}

.steam-wrapped-page .steam-profile-head {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
}

.steam-wrapped-page .steam-avatar {
    width: 88px;
    height: 88px;
    border-radius: 24px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.08);
}

.steam-wrapped-page .steam-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--steam-blue), var(--steam-blue-deep));
    color: white;
    font-weight: 900;
}

.steam-wrapped-page .steam-profile-panel {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.2rem;
}

.steam-wrapped-page .steam-profile-block {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: var(--steam-panel-soft);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.steam-wrapped-page .steam-profile-label {
    display: block;
    color: var(--steam-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.steam-wrapped-page .steam-profile-value {
    display: block;
    margin-top: 0.35rem;
    font-weight: 700;
    color: var(--steam-text);
    word-break: break-word;
}

.steam-wrapped-page .steam-game-stack {
    display: grid;
    gap: 0.95rem;
    margin-top: 1.2rem;
}

.steam-wrapped-page .steam-game-card {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 0.85rem;
    padding: 0.8rem;
    border-radius: 20px;
    background: var(--steam-panel-soft);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.steam-wrapped-page .steam-game-thumb {
    width: 100%;
    aspect-ratio: 16 / 7.5;
    border-radius: 16px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.06);
}

.steam-wrapped-page .steam-game-copy {
    display: grid;
    align-content: center;
    gap: 0.25rem;
}

.steam-wrapped-page .steam-game-rank {
    display: inline-flex;
    width: fit-content;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(102, 192, 244, 0.16);
    color: var(--steam-blue);
    font-size: 0.8rem;
    font-weight: 900;
}

.steam-wrapped-page .steam-game-title {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    color: var(--steam-text);
}

.steam-wrapped-page .steam-game-meta {
    display: block;
    color: var(--steam-muted);
    font-size: 0.92rem;
}

.steam-wrapped-page .steam-message-card,
.steam-wrapped-page .steam-empty-state {
    margin-top: 1rem;
    border-radius: 20px;
    padding: 1rem 1.1rem;
}

.steam-wrapped-page .steam-message-card {
    background: rgba(255, 193, 7, 0.12);
    border: 1px solid rgba(255, 193, 7, 0.28);
    color: #ffe6a1;
}

.steam-wrapped-page .steam-message-card-info {
    background: rgba(102, 192, 244, 0.12);
    border-color: rgba(102, 192, 244, 0.24);
    color: #d7f2ff;
}

.steam-wrapped-page .steam-empty-state {
    background: rgba(255, 255, 255, 0.04);
    color: var(--steam-muted);
}

.valorant-wrapped-page {
    --valorant-red: #ff4655;
    --valorant-panel: rgba(25, 18, 24, 0.94);
    --valorant-panel-soft: rgba(43, 26, 33, 0.88);
    --valorant-line: rgba(255, 255, 255, 0.08);
    --valorant-text: #fff5f6;
    --valorant-muted: #d2afb5;
    color: var(--valorant-text);
    margin-top: -0.5rem;
    padding: 1rem 0 4rem;
    background:
        radial-gradient(circle at top left, rgba(255, 70, 85, 0.26), transparent 24%),
        radial-gradient(circle at 82% 12%, rgba(255, 70, 85, 0.12), transparent 20%),
        linear-gradient(180deg, #1b1318 0%, #130d12 48%, #0c080b 100%);
    border-radius: 32px;
}

.valorant-wrapped-page .valorant-shell {
    width: min(1120px, calc(100% - 1rem));
    margin: 0 auto;
}

.valorant-wrapped-page .valorant-hero,
.valorant-wrapped-page .valorant-config-card,
.valorant-wrapped-page .valorant-stat-card,
.valorant-wrapped-page .valorant-section-card {
    border: 1px solid var(--valorant-line);
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.valorant-wrapped-page .valorant-hero {
    overflow: hidden;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 70, 85, 0.98), rgba(81, 20, 32, 0.95) 58%, rgba(12, 8, 11, 0.98) 100%);
}

.valorant-wrapped-page .valorant-kicker {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.valorant-wrapped-page .valorant-title {
    max-width: 11ch;
    margin: 0;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 0.93;
    font-weight: 900;
}

.valorant-wrapped-page .valorant-subtitle,
.valorant-wrapped-page .valorant-section-copy {
    max-width: 56ch;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1rem;
}

.valorant-wrapped-page .valorant-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.valorant-wrapped-page .valorant-button {
    border: 0;
    border-radius: 999px;
    padding: 0.85rem 1.25rem;
    text-decoration: none;
    font-weight: 800;
}

.valorant-wrapped-page .valorant-button-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.valorant-wrapped-page .valorant-config-card,
.valorant-wrapped-page .valorant-section-card,
.valorant-wrapped-page .valorant-stat-card {
    margin-top: 1.5rem;
    padding: 1.35rem;
    background: linear-gradient(180deg, rgba(35, 22, 28, 0.9), rgba(17, 11, 14, 0.96));
}

.valorant-wrapped-page .valorant-feedback,
.valorant-wrapped-page .valorant-message-card,
.valorant-wrapped-page .valorant-empty-state {
    margin-top: 1rem;
    border-radius: 18px;
    padding: 1rem;
}

.valorant-wrapped-page .valorant-feedback.is-success {
    background: rgba(30, 215, 96, 0.14);
    border: 1px solid rgba(30, 215, 96, 0.24);
    color: #b8ffd1;
}

.valorant-wrapped-page .valorant-feedback.is-error,
.valorant-wrapped-page .valorant-message-card {
    background: rgba(255, 70, 85, 0.14);
    border: 1px solid rgba(255, 70, 85, 0.24);
    color: #ffd4d8;
}

.valorant-wrapped-page .valorant-empty-state {
    background: rgba(255, 255, 255, 0.04);
    color: var(--valorant-muted);
}

.valorant-wrapped-page .valorant-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.valorant-wrapped-page .valorant-stat-label,
.valorant-wrapped-page .valorant-profile-label {
    color: var(--valorant-muted);
    font-size: 0.84rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.valorant-wrapped-page .valorant-stat-value {
    margin-top: 0.4rem;
    font-size: 1.7rem;
    font-weight: 800;
}

.valorant-wrapped-page .valorant-content-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.05fr 1.05fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.valorant-wrapped-page .valorant-section-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
}

.valorant-wrapped-page .valorant-profile-panel,
.valorant-wrapped-page .valorant-list {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.1rem;
}

.valorant-wrapped-page .valorant-profile-block,
.valorant-wrapped-page .valorant-list-item,
.valorant-wrapped-page .valorant-mini-card {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: var(--valorant-panel-soft);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.valorant-wrapped-page .valorant-profile-value,
.valorant-wrapped-page .valorant-list-title,
.valorant-wrapped-page .valorant-mini-line {
    display: block;
    margin-top: 0.3rem;
    font-weight: 700;
    color: var(--valorant-text);
}

.valorant-wrapped-page .valorant-list-meta {
    display: block;
    margin-top: 0.2rem;
    color: var(--valorant-muted);
    font-size: 0.92rem;
}

.valorant-wrapped-page .valorant-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.spotify-wrapped-page .spotify-ai-card {
    padding: 1.4rem;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(18, 18, 18, 0.85), rgba(7, 37, 27, 0.88)),
        var(--panel-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(29, 185, 84, 0.3);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.spotify-wrapped-page .spotify-ai-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 60px rgba(29, 185, 84, 0.15);
}

.spotify-wrapped-page .spotify-ai-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.spotify-wrapped-page .spotify-ai-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1rem;
    align-items: center;
}

.spotify-wrapped-page .spotify-volume-control {
    display: grid;
    gap: 0.3rem;
    min-width: 220px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
}

.spotify-wrapped-page .spotify-volume-control.is-disabled {
    opacity: 0.55;
}

.spotify-wrapped-page .spotify-volume-slider {
    width: 100%;
    accent-color: #1db954;
}

.spotify-wrapped-page .spotify-volume-note {
    max-width: 260px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.9rem;
    line-height: 1.5;
}

.spotify-wrapped-page .spotify-ai-feedback {
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    font-weight: 600;
}

.spotify-wrapped-page .spotify-ai-feedback.is-success {
    background: rgba(29, 185, 84, 0.14);
    border: 1px solid rgba(29, 185, 84, 0.28);
    color: #cbffd8;
}

.spotify-wrapped-page .spotify-ai-feedback.is-error {
    background: rgba(255, 95, 109, 0.14);
    border: 1px solid rgba(255, 95, 109, 0.3);
    color: #ffd6db;
}

.spotify-wrapped-page .spotify-ai-loading {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: rgba(29, 185, 84, 0.1);
    border: 1px solid rgba(29, 185, 84, 0.2);
    color: #d7ffe6;
    font-weight: 600;
}

.spotify-wrapped-page .spotify-ai-loading-dot {
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 50%;
    background: #1ed760;
    box-shadow: 0 0 0 rgba(30, 215, 96, 0.45);
    animation: spotifyPulse 1.2s infinite;
}

.spotify-wrapped-page .wrapped-button.is-loading {
    opacity: 0.72;
    pointer-events: none;
}

.spotify-wrapped-page .spotify-web-player {
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.spotify-wrapped-page .spotify-web-player-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.spotify-wrapped-page .spotify-web-player-kicker {
    display: block;
    margin-bottom: 0.2rem;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.spotify-wrapped-page .spotify-web-player-state {
    max-width: 320px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.92rem;
    text-align: right;
}

.spotify-wrapped-page .spotify-web-player-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.85rem;
}

.spotify-wrapped-page .spotify-web-player-progress {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.95rem;
}

.spotify-wrapped-page .spotify-web-player-time {
    min-width: 3rem;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.88rem;
    font-variant-numeric: tabular-nums;
}

.spotify-wrapped-page .spotify-web-player-progress-bar {
    width: 100%;
    accent-color: #1db954;
}

.spotify-wrapped-page .spotify-ai-grid {
    display: grid;
    gap: 1rem;
}

.spotify-wrapped-page .spotify-ai-item {
    display: grid;
    grid-template-columns: 108px 1fr;
    gap: 1rem;
    align-items: start;
    padding: 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.spotify-wrapped-page .spotify-ai-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(6px);
    border-color: rgba(29, 185, 84, 0.5);
}

.spotify-wrapped-page .spotify-ai-thumb {
    width: 108px;
    height: 108px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24);
}

.spotify-wrapped-page .spotify-ai-thumb-fallback {
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #d5ffe4;
    background: linear-gradient(135deg, rgba(29, 185, 84, 0.7), rgba(19, 78, 51, 0.9));
}

.spotify-wrapped-page .spotify-ai-copy {
    display: grid;
    gap: 0.45rem;
}

.spotify-wrapped-page .spotify-ai-title {
    font-size: 1.12rem;
    font-weight: 800;
    color: #fff;
}

.spotify-wrapped-page .spotify-ai-artist {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
}

.spotify-wrapped-page .spotify-ai-meta {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.94rem;
}

.spotify-wrapped-page .spotify-ai-chip {
    justify-self: start;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(29, 185, 84, 0.15);
    border: 1px solid rgba(29, 185, 84, 0.26);
    color: #ccffe2;
    font-size: 0.84rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.spotify-wrapped-page .spotify-ai-reason {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.6;
}

.spotify-wrapped-page .spotify-ai-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.35rem;
}

.spotify-wrapped-page .spotify-ai-actions form {
    margin: 0;
}

.spotify-wrapped-page .spotify-ai-audio {
    width: min(100%, 280px);
    height: 38px;
    border-radius: 999px;
    filter: saturate(1.05);
}

.spotify-wrapped-page .spotify-ai-debug {
    margin-bottom: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.spotify-wrapped-page .spotify-ai-debug summary {
    cursor: pointer;
    font-weight: 700;
}

.spotify-wrapped-page .spotify-ai-debug pre {
    margin: 0.85rem 0 0;
    white-space: pre-wrap;
    word-break: break-word;
    color: rgba(255, 255, 255, 0.78);
}

@keyframes spotifyPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(30, 215, 96, 0.45);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 12px rgba(30, 215, 96, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(30, 215, 96, 0);
    }
}

@media (max-width: 991px) {
    .valorant-wrapped-page .valorant-stat-grid,
    .valorant-wrapped-page .valorant-content-grid {
        grid-template-columns: 1fr 1fr;
    }

    .steam-wrapped-page .steam-stat-grid,
    .steam-wrapped-page .steam-content-grid,
    .twitch-wrapped-page .twitch-stat-grid,
    .twitch-wrapped-page .twitch-content-grid,
    .youtube-wrapped-page .youtube-stat-grid,
    .youtube-wrapped-page .youtube-content-grid {
        grid-template-columns: 1fr 1fr;
    }

    .spotify-wrapped-page .stat-grid,
    .spotify-wrapped-page .content-grid {
        grid-template-columns: 1fr 1fr;
    }

    .spotify-wrapped-page .spotify-ai-head {
        flex-direction: column;
    }

    .spotify-wrapped-page .spotify-ai-toolbar {
        width: 100%;
        justify-content: flex-start;
    }

    .spotify-wrapped-page .spotify-web-player-head {
        flex-direction: column;
    }

    .spotify-wrapped-page .spotify-web-player-state {
        max-width: none;
        text-align: left;
    }
}

@media (max-width: 767px) {
    .hero-panel {
        padding: 1.4rem;
        border-radius: 24px;
    }

    .hero-title {
        line-height: 1;
    }

    .spotify-wrapped-page .wrapped-hero {
        padding: 1.4rem;
        border-radius: 24px;
    }

    .youtube-wrapped-page {
        border-radius: 24px;
    }

    .youtube-wrapped-page .youtube-shell {
        width: min(100% - 0.5rem, 1120px);
    }

    .youtube-wrapped-page .youtube-hero {
        padding: 1.4rem;
        border-radius: 24px;
    }

    .youtube-wrapped-page .youtube-stat-grid,
    .youtube-wrapped-page .youtube-content-grid {
        grid-template-columns: 1fr;
    }

    .youtube-wrapped-page .youtube-title {
        max-width: none;
    }

    .youtube-wrapped-page .youtube-video-card,
    .youtube-wrapped-page .youtube-channel-header,
    .youtube-wrapped-page .youtube-history-grid {
        grid-template-columns: 1fr;
    }

    .youtube-wrapped-page .youtube-avatar {
        width: 72px;
        height: 72px;
    }

    .twitch-wrapped-page {
        border-radius: 24px;
    }

    .twitch-wrapped-page .twitch-shell {
        width: min(100% - 0.5rem, 1120px);
    }

    .twitch-wrapped-page .twitch-hero {
        padding: 1.4rem;
        border-radius: 24px;
    }

    .twitch-wrapped-page .twitch-stat-grid,
    .twitch-wrapped-page .twitch-content-grid {
        grid-template-columns: 1fr;
    }

    .twitch-wrapped-page .twitch-title {
        max-width: none;
    }

    .twitch-wrapped-page .twitch-video-card,
    .twitch-wrapped-page .twitch-profile-head {
        grid-template-columns: 1fr;
    }

    .twitch-wrapped-page .twitch-avatar {
        width: 72px;
        height: 72px;
    }

    .steam-wrapped-page {
        border-radius: 24px;
    }

    .steam-wrapped-page .steam-shell {
        width: min(100% - 0.5rem, 1120px);
    }

    .steam-wrapped-page .steam-hero {
        padding: 1.4rem;
        border-radius: 24px;
    }

    .steam-wrapped-page .steam-stat-grid,
    .steam-wrapped-page .steam-content-grid {
        grid-template-columns: 1fr;
    }

    .steam-wrapped-page .steam-title {
        max-width: none;
    }

    .steam-wrapped-page .steam-game-card,
    .steam-wrapped-page .steam-profile-head {
        grid-template-columns: 1fr;
    }

    .steam-wrapped-page .steam-avatar {
        width: 72px;
        height: 72px;
    }

    .valorant-wrapped-page {
        border-radius: 24px;
    }

    .valorant-wrapped-page .valorant-shell {
        width: min(100% - 0.5rem, 1120px);
    }

    .valorant-wrapped-page .valorant-hero {
        padding: 1.4rem;
        border-radius: 24px;
    }

    .valorant-wrapped-page .valorant-stat-grid,
    .valorant-wrapped-page .valorant-content-grid,
    .valorant-wrapped-page .valorant-mini-grid {
        grid-template-columns: 1fr;
    }

    .valorant-wrapped-page .valorant-title {
        max-width: none;
    }

    .spotify-wrapped-page .stat-grid,
    .spotify-wrapped-page .content-grid {
        grid-template-columns: 1fr;
    }

    .spotify-wrapped-page .wrapped-title {
        max-width: none;
    }

    .spotify-wrapped-page .spotify-ai-grid {
        grid-template-columns: 1fr;
    }

    .spotify-wrapped-page .spotify-ai-item {
        grid-template-columns: 1fr;
    }

    .spotify-wrapped-page .spotify-ai-thumb {
        width: 100%;
        max-width: 140px;
        height: auto;
        aspect-ratio: 1;
    }
}
