/* Player composition: black cinema canvas, real title art, quiet controls. */
.watch-route {
    --watch-panel: #101010;
    --watch-panel-soft: #0c0c0c;
    --watch-accent: #f3f3f3;
    background: #050505;
}

.watch-route .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.watch-route .watch-heading {
    display: flex;
    align-items: center;
    gap: 2rem;
    min-height: 3.5rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--watch-line);
    padding-bottom: 1rem;
}

.watch-route .watch-back-link,
.watch-route .watch-manga-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 2.75rem;
    color: #aaa;
    font-size: .875rem;
    white-space: nowrap;
}

.watch-route .watch-back-link:hover,
.watch-route .watch-manga-link:hover { color: #fff; }

.watch-route .watch-heading-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.watch-route .watch-heading h1 {
    margin: 0;
    line-height: 1;
    min-width: 0;
    max-width: 22rem;
}

.watch-route .watch-heading .title-artwork { width: 16rem; }
.watch-route .watch-heading .title-artwork__image { max-height: 2.75rem; }
.watch-route .watch-heading .title-artwork__fallback { font-size: 1.25rem; }

.watch-route .watch-episode-label {
    flex-shrink: 0;
    font-size: .75rem;
    font-weight: 600;
    padding: .375rem .75rem;
    border: 1px solid var(--watch-line);
    border-radius: .375rem;
    color: #e6e6e6;
}

.watch-route .video-wrapper,
.watch-route #player-area { border-radius: .5rem; }
.watch-route .video-wrapper { box-shadow: none; border: 1px solid rgba(255, 255, 255, .08); }
.watch-route .watch-quick-bar,
.watch-route .watch-nav-bar,
.watch-route .episode-sidebar { border-radius: .5rem; }
.watch-route .server-pill.active { color: #111; box-shadow: none; }
.watch-route .episode-sidebar-header { padding: 1rem; }
.watch-route .episode-sidebar-header h3 { font-size: .9375rem; letter-spacing: -.02em; }
.watch-route .quick-toggle { min-height: 2.75rem; }
.watch-route .quick-btn { min-height: 2.75rem; }
.watch-route :is(.watch-back-link, .watch-manga-link):focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
    border-radius: 2px;
}

@media (min-width: 1025px) {
    .watch-route .watch-main {
        grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem);
        gap: 1.25rem;
    }
    .watch-route .watch-main.sidebar-right {
        grid-template-columns: minmax(18rem, 22rem) minmax(0, 1fr) !important;
    }
    .watch-route .watch-main.sidebar-right .watch-player-column { grid-column: 2 !important; }
    .watch-route .watch-main.sidebar-right .watch-sidebar-column { grid-column: 1 !important; }
    .watch-route .watch-main.hide-sidebar,
    .watch-route .watch-main.hide-sidebar.sidebar-right { grid-template-columns: minmax(0, 1fr) !important; }
    .watch-route .watch-main.hide-sidebar .watch-player-column {
        grid-column: 1 !important;
        max-width: none;
        margin: 0;
        width: 100%;
    }
}

@media (max-width: 760px) {
    .watch-route .watch-heading { gap: .75rem 1rem; flex-wrap: wrap; }
    .watch-route .watch-back-link { font-size: .75rem; }
    .watch-route .watch-heading-title { justify-content: flex-end; gap: .75rem; }
    .watch-route .watch-heading .title-artwork { width: 10rem; }
    .watch-route .watch-heading .title-artwork__image { max-height: 2rem; }
    .watch-route .watch-manga-link { margin-left: auto; font-size: .75rem; min-height: 2rem; }
    .watch-route .anime-artwork-loading { gap: .75rem; }
    .watch-route .anime-artwork-loading__caption { font-size: .5625rem; letter-spacing: .1em; }
}

@media (max-width: 430px) {
    .watch-route .watch-heading-title { flex-basis: 100%; justify-content: space-between; order: 3; }
    .watch-route .watch-heading .title-artwork { width: 12rem; }
    .watch-route .watch-manga-link { margin-left: auto; }
}
