/* Interactive Free Player window mock. Scoped to .app-window. */

.app-stage {
    position: relative;
    margin-top: 34px;
}

.app-stage-hero {
    margin-top: 38px;
}

.app-footnote {
    margin: 14px 0 0;
    text-align: right;
    color: var(--screen-muted);
    font-size: 11.5px;
}

.app-noscript {
    margin: 14px 0 0;
    color: var(--screen-muted);
    font-size: 12px;
}

.app-window {
    --app-bg: #0D0F12;
    --app-surface: #15181D;
    --app-surface2: #1C2027;
    --app-surface3: #242932;
    --app-border: #282E37;
    --app-text: #ECEEF2;
    --app-text2: #A2AAB8;
    --app-text3: #8B95A3;
    --app-accent: #E8453C;
    --app-accent-action: #C3342C;
    --app-accent-weak: rgba(232, 69, 60, 0.16);
    --app-danger: #F05252;
    --app-success: #3DBE7A;

    position: relative;
    display: flex;
    flex-direction: column;
    height: 760px;
    overflow: hidden;
    background: var(--app-bg);
    color: var(--app-text);
    border: 1px solid var(--app-border);
    border-radius: 2px;
    box-shadow: 0 34px 100px rgba(0, 0, 0, 0.5);
    font-family: var(--font-body);
    font-size: 13.5px;
    line-height: 1.6;
    transition: height 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.22s ease, transform 0.22s ease;
}

.app-window.is-light {
    --app-bg: #F5F6F8;
    --app-surface: #FFFFFF;
    --app-surface2: #F0F2F5;
    --app-surface3: #E6E9EE;
    --app-border: #DDE1E7;
    --app-text: #14181D;
    --app-text2: #5B6472;
    --app-text3: #68717E;
    --app-accent: #C9362F;
    --app-accent-action: #C3342C;
    --app-accent-weak: rgba(201, 54, 47, 0.1);
    --app-danger: #D92D20;
    --app-success: #12A150;
}

.app-window.is-closed {
    display: none;
}

.app-window.is-minimized {
    height: 44px;
}

.app-window.is-minimized .app-body,
.app-window.is-minimized .app-player,
.app-window.is-minimized .app-update,
.app-window.is-minimized .app-toast {
    visibility: hidden;
    pointer-events: none;
}

.app-window.is-maximized {
    position: fixed;
    inset: 20px;
    z-index: 81;
    width: auto;
    max-width: none;
    height: auto;
    border-radius: 0;
}

.app-max-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(10, 12, 15, 0.72);
    backdrop-filter: blur(4px);
}

.app-max-backdrop[hidden] {
    display: none;
}

.app-window button {
    font-family: inherit;
}

.app-window button:focus-visible,
.app-window input:focus-visible {
    outline: 2px solid var(--app-accent);
    outline-offset: 2px;
}

.app-window h4 {
    font-family: var(--font-body);
}

/* titlebar */

.app-titlebar {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 44px;
    padding: 0 8px 0 14px;
    background: var(--app-surface);
    border-bottom: 1px solid var(--app-border);
    user-select: none;
}

.app-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    color: var(--app-text2);
    font-size: 12.5px;
}

.app-logo {
    position: relative;
    width: 16px;
    height: 16px;
    flex: none;
    background: var(--app-accent);
}

.app-logo::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 4px;
    border-left: 6px solid var(--app-bg);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

.app-brand-name {
    color: var(--app-text);
    font-weight: 600;
    white-space: nowrap;
}

.app-badge {
    padding: 0 5px;
    border: 1px solid var(--app-border);
    color: var(--app-text3);
    font-size: 9.5px;
    line-height: 1.6;
    white-space: nowrap;
}

.app-window-actions {
    display: flex;
    align-items: center;
    gap: 1px;
    margin-left: auto;
}

.app-win-btn {
    position: relative;
    display: grid;
    place-items: center;
    width: 34px;
    height: 30px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--app-text2);
    cursor: pointer;
}

.app-win-btn:hover {
    background: var(--app-surface2);
    color: var(--app-text);
}

.app-win-close:hover {
    background: #C42B24;
    color: #fff;
}

.app-win-btn svg {
    width: 14px;
    height: 14px;
}

.app-window.is-dark [data-icon-moon] {
    display: none;
}

.app-window:not(.is-dark) [data-icon-sun] {
    display: none;
}

.win-line {
    width: 10px;
    height: 1px;
    background: currentColor;
}

.win-square {
    width: 9px;
    height: 9px;
    border: 1px solid currentColor;
}

.win-x,
.app-player-close .win-x {
    position: relative;
    width: 10px;
    height: 10px;
}

.win-x::before,
.win-x::after {
    content: "";
    position: absolute;
    left: 4.5px;
    top: -1px;
    width: 1px;
    height: 12px;
    background: currentColor;
}

.win-x::before {
    transform: rotate(45deg);
}

.win-x::after {
    transform: rotate(-45deg);
}

/* body */

.app-body {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
}

.app-nav-backdrop {
    position: absolute;
    inset: 0;
    z-index: 14;
    border: 0;
    background: rgba(10, 12, 15, 0.48);
}

.app-nav-backdrop[hidden] {
    display: none;
}

.app-sidebar {
    flex: none;
    width: 196px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 11px 9px 9px;
    overflow-y: auto;
    background: var(--app-surface);
    border-right: 1px solid var(--app-border);
}

.app-source-wrap {
    position: relative;
    margin-bottom: 5px;
}

.app-source {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 7px 9px;
    border: 1px solid var(--app-border);
    background: var(--app-surface2);
    color: var(--app-text);
    font-size: 12.5px;
    text-align: left;
    cursor: pointer;
}

.app-source:hover {
    border-color: var(--app-text3);
}

.app-source-dot {
    width: 6px;
    height: 6px;
    flex: none;
    border-radius: 50%;
    background: var(--app-accent);
}

.app-caret {
    width: 0;
    height: 0;
    margin-left: auto;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--app-text3);
}

.app-source-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 6;
    padding: 4px;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.app-source-menu[hidden] {
    display: none;
}

.app-source-menu button {
    display: block;
    width: 100%;
    padding: 7px 8px;
    border: 0;
    background: none;
    color: var(--app-text2);
    font-size: 12px;
    text-align: left;
    cursor: pointer;
}

.app-source-menu button:hover {
    background: var(--app-surface2);
    color: var(--app-text);
}

.app-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.app-group {
    margin: 13px 8px 4px;
    color: var(--app-text3);
    font-size: 10.5px;
}

.app-nav-item {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 7px 9px;
    border: 0;
    border-radius: 6px;
    background: none;
    color: var(--app-text2);
    font-size: 12.5px;
    text-align: left;
    cursor: pointer;
}

.app-nav-item svg {
    width: 15px;
    height: 15px;
    flex: none;
}

.app-nav-item:hover {
    background: var(--app-surface2);
    color: var(--app-text);
}

.app-nav-item.is-active {
    background: var(--app-accent-weak);
    color: var(--app-accent);
}

.app-settings-link {
    margin-top: auto;
}

/* main */

.app-main {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--app-bg);
}

.app-content-head {
    flex: none;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 52px;
    padding: 0 18px;
    border-bottom: 1px solid var(--app-border);
}

.app-content-head h3 {
    margin: 0;
    color: var(--app-text);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.3;
}

.app-menu-btn {
    display: none;
    width: 28px;
    height: 28px;
    padding: 6px;
    border: 0;
    background: none;
    cursor: pointer;
}

.app-menu-btn span {
    display: block;
    height: 1px;
    margin: 3px 0;
    background: var(--app-text2);
}

.app-view {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 18px;
}

.app-view[hidden] {
    display: none;
}

/* feature */

.app-feature {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    min-height: 250px;
    overflow: hidden;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
}

.app-feature-art,
.app-detail-art,
.app-player-art {
    position: relative;
    overflow: hidden;
}

.app-feature-art {
    min-height: 250px;
}

.app-feature-grain {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

.app-feature-word,
.app-detail-word,
.app-player-word,
.app-poster-word {
    position: absolute;
    left: 20px;
    bottom: 14px;
    z-index: 1;
    color: rgba(255, 255, 255, 0.94);
    font-family: var(--font-display);
    font-size: clamp(42px, 5.2vw, 76px);
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: -0.05em;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.app-feature-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
}

.app-chip {
    display: inline-flex;
    align-self: flex-start;
    padding: 1px 7px;
    border: 1px solid var(--app-border);
    color: var(--app-text3);
    font-size: 10.5px;
    line-height: 1.7;
}

.app-feature-copy h4,
.app-detail-copy h4 {
    margin: 10px 0 8px;
    color: var(--app-text);
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.app-feature-copy p,
.app-detail-copy p {
    margin: 0;
    max-width: 42ch;
    color: var(--app-text2);
    font-size: 12.5px;
    line-height: 1.7;
}

.app-feature-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.app-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid var(--app-border);
    border-radius: 6px;
    background: var(--app-surface2);
    color: var(--app-text);
    font-size: 12.5px;
    cursor: pointer;
}

.app-btn:hover {
    border-color: var(--app-text3);
}

.app-btn svg {
    width: 11px;
    height: 11px;
}

.app-btn-primary {
    border-color: var(--app-accent-action);
    background: var(--app-accent-action);
    color: #fff;
}

.app-btn-primary:hover {
    filter: brightness(1.07);
}

.app-btn-small {
    min-height: 29px;
    padding: 0 10px;
    font-size: 11.5px;
}

/* section and posters */

.app-section {
    margin-top: 20px;
}

.app-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 9px;
}

.app-section-head h4 {
    margin: 0;
    color: var(--app-text);
    font-size: 13.5px;
    font-weight: 600;
}

.app-section-head span {
    color: var(--app-text3);
    font-size: 10.5px;
}

.app-poster-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.app-poster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 16px 12px;
}

.app-poster-card {
    min-width: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--app-text);
    text-align: left;
    cursor: pointer;
}

.app-poster {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border: 1px solid var(--app-border);
    transition: border-color 0.18s ease, transform 0.2s ease;
}

.app-poster-card:hover .app-poster {
    border-color: var(--app-text3);
    transform: translateY(-2px);
}

.app-poster .app-poster-word {
    left: 12px;
    bottom: 10px;
    font-size: clamp(26px, 2.6vw, 36px);
}

.app-poster-card strong {
    display: block;
    margin-top: 6px;
    overflow: hidden;
    color: var(--app-text);
    font-size: 11.5px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-poster-card > span {
    display: block;
    color: var(--app-text3);
    font-size: 10px;
}

/* poster art */

.poster-a {
    background:
        radial-gradient(80% 75% at 82% 16%, rgba(232, 69, 60, 0.62), transparent 62%),
        linear-gradient(145deg, #2A0E0C 0%, #762019 58%, #150B0B 100%);
}

.poster-b {
    background:
        radial-gradient(75% 70% at 72% 20%, rgba(64, 132, 157, 0.58), transparent 64%),
        linear-gradient(145deg, #0C161D 0%, #224855 60%, #0A1014 100%);
}

.poster-c {
    background:
        radial-gradient(80% 75% at 25% 20%, rgba(196, 142, 62, 0.55), transparent 62%),
        linear-gradient(145deg, #1E1710 0%, #5C421E 58%, #120E09 100%);
}

.poster-d {
    background:
        radial-gradient(80% 80% at 78% 24%, rgba(83, 105, 138, 0.62), transparent 62%),
        linear-gradient(145deg, #12161C 0%, #303C4E 60%, #0B0E12 100%);
}

.poster-e {
    background:
        radial-gradient(80% 75% at 30% 18%, rgba(120, 132, 83, 0.58), transparent 64%),
        linear-gradient(145deg, #141710 0%, #414A2E 58%, #0B0D09 100%);
}

.poster-f {
    background:
        radial-gradient(80% 75% at 74% 22%, rgba(132, 76, 138, 0.58), transparent 64%),
        linear-gradient(145deg, #1B0F1B 0%, #4A2A4A 58%, #100A10 100%);
}

/* search and library */

.app-search {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 38px;
    margin-bottom: 16px;
    padding: 0 11px;
    border: 1px solid var(--app-border);
    background: var(--app-surface);
}

.app-search svg {
    width: 14px;
    height: 14px;
    flex: none;
    color: var(--app-text3);
}

.app-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: none;
    color: var(--app-text);
    font-size: 12.5px;
    outline: none;
}

.app-search input::placeholder {
    color: var(--app-text3);
}

.app-search > span {
    flex: none;
    color: var(--app-text3);
    font-size: 10.5px;
}

.app-view-lede {
    margin: 0 0 14px;
    color: var(--app-text3);
    font-size: 11.5px;
}

.app-empty {
    margin: 0;
    padding: 34px 0;
    color: var(--app-text3);
    font-size: 12.5px;
}

/* history and favorites */

.app-history {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.app-history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
}

.app-history-poster {
    position: relative;
    width: 44px;
    aspect-ratio: 2 / 3;
    flex: none;
    overflow: hidden;
}

.app-history-poster .app-poster-word {
    left: 6px;
    bottom: 4px;
    font-size: 18px;
}

.app-history-copy {
    flex: 1;
    min-width: 0;
}

.app-history-copy strong {
    display: block;
    color: var(--app-text);
    font-size: 12.5px;
    font-weight: 600;
}

.app-history-copy span {
    display: block;
    color: var(--app-text3);
    font-size: 10.5px;
}

.app-history-bar {
    width: 100%;
    height: 2px;
    margin-top: 7px;
    background: var(--app-surface3);
}

.app-history-bar span {
    display: block;
    height: 2px;
    background: var(--app-accent);
}

/* detail */

.app-back {
    margin-bottom: 14px;
    padding: 3px 0;
    border: 0;
    background: none;
    color: var(--app-text3);
    font-size: 11.5px;
    cursor: pointer;
}

.app-back:hover {
    color: var(--app-text);
}

.app-detail {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 24px;
}

.app-detail-art {
    aspect-ratio: 2 / 3;
    border: 1px solid var(--app-border);
}

.app-detail-art .app-detail-word {
    left: 16px;
    bottom: 12px;
    font-size: clamp(34px, 4vw, 52px);
}

.app-detail-copy {
    min-width: 0;
    padding-top: 4px;
}

.app-episodes {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 16px 0;
    max-height: 96px;
    overflow-y: auto;
}

.app-episode {
    min-width: 31px;
    height: 27px;
    padding: 0 7px;
    border: 1px solid var(--app-border);
    background: var(--app-surface2);
    color: var(--app-text2);
    font-size: 11px;
    cursor: pointer;
}

.app-episode:hover {
    color: var(--app-text);
    border-color: var(--app-text3);
}

.app-episode.is-active {
    border-color: var(--app-accent);
    color: var(--app-accent);
    background: var(--app-accent-weak);
}

/* settings */

.app-settings {
    max-width: 650px;
    border-top: 1px solid var(--app-border);
}

.app-setting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 0;
    border-bottom: 1px solid var(--app-border);
}

.app-setting strong {
    display: block;
    color: var(--app-text);
    font-size: 12.5px;
    font-weight: 600;
}

.app-setting span {
    display: block;
    margin-top: 2px;
    color: var(--app-text3);
    font-size: 10.5px;
}

.app-muted {
    color: var(--app-text3);
    font-family: var(--font-mono);
    font-size: 11px;
}

.app-switch {
    position: relative;
    width: 38px;
    height: 22px;
    flex: none;
    padding: 0;
    border: 1px solid var(--app-border);
    border-radius: 999px;
    background: var(--app-surface3);
    cursor: pointer;
}

.app-switch span {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--app-text3);
    transition: left 0.2s ease, background-color 0.2s ease;
}

.app-switch[aria-checked="true"] {
    border-color: var(--app-accent);
    background: var(--app-accent-weak);
}

.app-switch[aria-checked="true"] span {
    left: 18px;
    background: var(--app-accent);
}

/* player */

.app-player {
    position: absolute;
    left: 0;
    right: 0;
    top: 44px;
    bottom: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    background: #050607;
}

.app-player[hidden] {
    display: none;
}

.app-player-screen {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    background: #000;
}

.app-player-art {
    position: absolute;
    inset: 0;
    transform: scale(1.02);
}

.app-player.is-playing .app-player-art {
    animation: app-kenburns 28s ease-in-out infinite alternate;
}

@keyframes app-kenburns {
    from {
        transform: scale(1.02) translate3d(-1%, -1%, 0);
    }
    to {
        transform: scale(1.09) translate3d(1.5%, 1.5%, 0);
    }
}

.app-player-screen::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.32) 0%, transparent 32%, rgba(0, 0, 0, 0.7) 100%);
    pointer-events: none;
}

.app-player-word {
    left: 22px;
    bottom: 64px;
    font-size: clamp(46px, 7vw, 100px);
}

.app-player-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
}

.app-demo-label {
    padding: 2px 7px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: rgba(255, 255, 255, 0.72);
    font-size: 10px;
}

.app-player-close {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 0;
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    cursor: pointer;
}

.app-player-caption {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 18px;
    z-index: 2;
    color: #fff;
}

.app-player-caption h4 {
    margin: 0 0 3px;
    font-size: clamp(20px, 2.4vw, 28px);
    font-weight: 600;
}

.app-player-caption p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 10.5px;
}

.app-big-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 50%;
    background: rgba(8, 10, 12, 0.5);
    color: #fff;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.app-big-play:hover {
    background: rgba(8, 10, 12, 0.72);
}

.app-big-play svg {
    width: 20px;
    height: 20px;
}

.app-player-controls {
    flex: none;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 52px;
    padding: 0 16px;
    border-top: 1px solid #1D232B;
    background: #0A0C0F;
    color: #ECEEF2;
}

.app-control-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    border: 0;
    background: none;
    color: #A2AAB8;
    font-size: 11.5px;
    cursor: pointer;
}

.app-control-btn:hover {
    color: #fff;
}

.app-control-btn svg {
    width: 15px;
    height: 15px;
}

.app-time {
    color: #8B95A3;
    font-family: var(--font-mono);
    font-size: 10px;
    white-space: nowrap;
}

.app-progress {
    position: relative;
    flex: 1;
    min-width: 40px;
    height: 3px;
    background: #242B34;
    cursor: pointer;
}

.app-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: #E8453C;
}

.app-player-episode {
    color: #8B95A3;
    font-size: 10.5px;
    white-space: nowrap;
}

.app-player:not(.is-playing) [data-icon-pause] {
    display: none;
}

.app-player.is-playing [data-icon-play] {
    display: none;
}

/* update dialog */

.app-update {
    position: absolute;
    inset: 44px 0 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(5, 7, 9, 0.72);
    backdrop-filter: blur(2px);
}

.app-update[hidden] {
    display: none;
}

.app-update-card {
    width: min(390px, 100%);
    padding: 24px;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.app-update-kicker {
    display: block;
    margin-bottom: 4px;
    color: var(--app-accent);
    font-size: 10.5px;
}

.app-update-card h4 {
    margin: 0;
    color: var(--app-text);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.app-update-sub {
    margin: 5px 0 14px;
    color: var(--app-text2);
    font-size: 12.5px;
}

.app-update-notes {
    margin: 0;
    padding: 0 0 0 15px;
    color: var(--app-text2);
    font-size: 11.5px;
    line-height: 1.7;
}

.app-update-notes li {
    margin: 2px 0;
}

.app-update-hint {
    margin: 14px 0 16px;
    padding-top: 12px;
    border-top: 1px solid var(--app-border);
    color: var(--app-text3);
    font-size: 10.5px;
    line-height: 1.6;
}

.app-update-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.app-update-progress {
    margin: 14px 0 0;
    color: var(--app-text2);
    font-size: 11px;
}

/* toast */

.app-toast {
    position: absolute;
    left: 50%;
    bottom: 18px;
    z-index: 50;
    max-width: calc(100% - 32px);
    padding: 7px 12px;
    background: var(--app-text);
    color: var(--app-bg);
    font-size: 11.5px;
    line-height: 1.5;
    transform: translateX(-50%);
}

.app-toast[hidden] {
    display: none;
}

/* closed window */

.app-closed {
    padding: 56px 20px;
    text-align: center;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
}

.app-closed p {
    margin: 0 0 14px;
    color: var(--paper-muted);
    font-size: 13.5px;
}

/* release banner and version tabs */

.app-release {
    transition: opacity 0.16s ease;
}

.app-release .app-feature-art,
.app-release .app-feature-copy {
    transition: opacity 0.16s ease;
}

.app-release.is-switching .app-feature-art,
.app-release.is-switching .app-feature-copy {
    opacity: 0.4;
}

.app-release .app-feature-copy {
    justify-content: flex-start;
    padding-top: 22px;
    padding-bottom: 20px;
}

.app-release-notes {
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 44ch;
    color: var(--app-text2);
    font-size: 11.5px;
    line-height: 1.65;
}

.app-release-notes li {
    position: relative;
    padding-left: 11px;
    margin: 3px 0;
}

.app-release-notes li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.68em;
    width: 4px;
    height: 4px;
    background: var(--app-accent);
}

.app-release-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 10px;
    color: var(--app-text3);
    font-family: var(--font-mono);
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}

.app-release-tabs {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    padding-bottom: 2px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.app-release-tab {
    flex: 1 1 0;
    min-width: 0;
    padding: 7px 10px;
    border: 1px solid var(--app-border);
    background: var(--app-surface);
    color: var(--app-text2);
    text-align: left;
    cursor: pointer;
}

.app-release-tab:hover {
    border-color: var(--app-text3);
    color: var(--app-text);
}

.app-release-tab strong {
    display: block;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.app-release-tab span {
    display: block;
    margin-top: 1px;
    color: var(--app-text3);
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}

.app-release-tab.is-active {
    border-color: var(--app-accent);
    background: var(--app-accent-weak);
    color: var(--app-accent);
}

.app-release-tab.is-active span {
    color: var(--app-accent);
    opacity: 0.75;
}

.app-release-empty {
    display: block;
    min-height: 170px;
}

.app-release-empty .app-feature-copy {
    padding: 28px;
}

/* responsive */

@media (max-width: 900px) {
    .app-window {
        height: 850px;
    }

    .app-window.is-maximized {
        inset: 10px;
    }

    .app-sidebar {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 15;
        width: 220px;
        transform: translateX(-101%);
        transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
        box-shadow: 16px 0 40px rgba(0, 0, 0, 0.3);
    }

    .app-window.is-nav-open .app-sidebar {
        transform: none;
    }

    .app-menu-btn {
        display: block;
    }

    .app-feature {
        grid-template-columns: minmax(0, 1fr);
    }

    .app-feature-art {
        min-height: 170px;
    }

    .app-feature-copy {
        padding: 16px;
    }

    .app-poster-row {
        grid-template-columns: repeat(6, 110px);
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: thin;
    }

    .app-detail {
        grid-template-columns: 160px minmax(0, 1fr);
        gap: 16px;
    }

    .app-detail-art {
        aspect-ratio: 2 / 3;
    }

    .app-detail-word {
        font-size: 28px;
    }
}

@media (max-width: 600px) {
    .app-window {
        height: 860px;
    }

    .app-titlebar {
        padding-left: 11px;
    }

    .app-brand-name {
        font-size: 12px;
    }

    .app-badge {
        display: none;
    }

    .app-win-btn {
        width: 30px;
    }

    .app-content-head {
        height: 48px;
        padding: 0 12px;
    }

    .app-view {
        padding: 12px;
    }

    .app-feature-art {
        min-height: 160px;
    }

    .app-feature-copy h4 {
        font-size: 22px;
    }

    .app-poster-row {
        gap: 7px;
    }

    .app-poster-row .app-poster-card strong {
        font-size: 10.5px;
    }

    .app-poster-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-detail {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .app-detail-art {
        aspect-ratio: 16 / 9;
    }

    .app-episodes {
        max-height: 72px;
    }

    .app-setting {
        gap: 12px;
    }

    .app-player-controls {
        gap: 8px;
        padding: 0 10px;
    }

    .app-player-episode,
    .app-time {
        display: none;
    }

    .app-update-card {
        padding: 18px;
    }

    .app-update-card h4 {
        font-size: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-player.is-playing .app-player-art {
        animation: none;
    }
}
