/*
 * AnimeKAI skin — watch pages. Owned by the watch re-skin; loaded on every page by
 * layouts/anikoto.blade.php after anikai-bridge.css, so scope every rule to the
 * pages it is for.
 *
 * styles.css already draws the AnimeKAI watch page (.watch-section,
 * .entity-section, #player-control, #player-server, .episode-section). The rules
 * below only cover what the Laravel hooks change: ul/li servers instead of spans,
 * the .episodes scroll box main.js scrolls, span stars for main.js Rating, the
 * Shorting synopsis, ExpandControl's .expand, LightControl's overlay, and the
 * Laravel-only blocks (downloads, seasons, related labels, report modal).
 */

/* ---- player ------------------------------------------------------------- */

#watch-main #player-wrapper { position: relative; }

#watch-main #player .play-btn { opacity: 1; pointer-events: all; cursor: pointer; }
#watch-main #player .play-btn i { margin-left: .3rem; transform: none; }
#watch-main #player .message { font-size: .95rem; }

/* LightControl (main.js) dims the page with a fixed overlay and raises
   #player-wrapper by inline z-index; the section's own stacking context has to
   climb above that overlay with it. */
#watch-main .watch-section-wrap > section.player-section:has(#player-wrapper[style*="z-index"]) {
    position: relative;
    z-index: 387420489 !important;
}

/* ExpandControl toggles .expand on the page root (AnimeKAI's .expanded). */
#watch-main.expand .entity-section,
#watch-main.expand .episode-section { display: none !important; }
#watch-main.expand .player-section { max-width: none; width: 100%; }

/* ---- controls ----------------------------------------------------------- */

#watch-main #player-control { flex-wrap: wrap; row-gap: .8rem; }
#watch-main #player-control .ctrl > a.btn {
    opacity: .5;
    align-items: center;
    padding: 0;
    transition: all .2s;
    display: flex;
    color: #fff;
    border: 0;
}
#watch-main #player-control .ctrl > a.btn:hover { opacity: 1; }
#watch-main #player-control .ctrl > a.btn i { margin-right: .2rem; font-size: 1.2rem; }
#watch-main #player-control .ctrl > a.btn span { white-space: nowrap; font-size: .9rem; font-weight: 400; }
#watch-main #player-control .ctrl > .btn:focus { box-shadow: none; }

#watch-main #player-control .favourite .dropdown-menu {
    min-width: 11rem;
    max-width: none;
    background: #181d22;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: .75rem;
    padding: .35rem;
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .35);
}
#watch-main #player-control .favourite .dropdown-item {
    cursor: pointer;
    color: rgba(255, 255, 255, .78);
    border-radius: .55rem;
    padding: .5rem .7rem;
    font-size: .9rem;
}
#watch-main #player-control .favourite .dropdown-item:hover,
#watch-main #player-control .favourite .dropdown-item.active { background: rgba(54, 203, 104, .12); color: #36cb68; }

@media (max-width: 767.98px) {
    #watch-main #player-control .ctrl > a.btn { padding: 0 1rem; }
    #watch-main #player-control .ctrl > a.btn span { display: none; }
}
@media (max-width: 470px) {
    #watch-main #player-control .ctrl > a.btn { padding: 0 .8rem; }
}

/* ---- servers (ul > li instead of AnimeKAI's spans) ---------------------- */

#watch-main #player-server .server-note p { margin-bottom: .3rem; }
#watch-main #player-server .server-wrap { min-width: 0; }
#watch-main #player-server .server-type { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem 1rem; }
#watch-main #player-server .server-wrap .server-type span + span { margin-left: 0; }
#watch-main #player-server .server-items ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
#watch-main #player-server .server-items li {
    cursor: pointer;
    color: #0c1116;
    background-color: rgba(255, 255, 255, .3);
    border-radius: .6rem;
    padding: .4rem .7rem;
    font-size: .9rem;
    font-weight: 500;
    transition: color .2s, background-color .2s;
    display: inline-flex;
}
#watch-main #player-server .server-items li.active,
#watch-main #player-server .server-items li:hover { background-color: #36cb68; }
#watch-main #player-server .server-empty { color: rgba(255, 255, 255, .5); font-size: .9rem; }

#watch-main .mapper-dl-row {
    justify-content: flex-end;
    gap: .5rem;
    margin-top: 1rem;
    padding: .8rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, .06);
    font-size: .85rem;
}
#watch-main .mapper-dl-row label { color: rgba(255, 255, 255, .5); min-width: 0; margin: 0; font-weight: 500; }
#watch-main .mapper-dl-links { flex: 0 1 auto; justify-content: flex-end; }
#watch-main .mapper-dl-chip { background: #20272e; color: rgba(255, 255, 255, .8); border-radius: .6rem; padding: .35rem .7rem; }
#watch-main .mapper-dl-chip:before,
#watch-main .mapper-dl-grp-toggle:after { font-family: "Font Awesome 6 Pro"; }
#watch-main .mapper-dl-chip:hover { background: #36cb68; color: #0c1116; }

@media (max-width: 800px) {
    #watch-main #player-server .server-type,
    #watch-main #player-server .server-items ul,
    #watch-main .mapper-dl-row,
    #watch-main .mapper-dl-links { justify-content: center; }
}

/* ---- next episode ------------------------------------------------------- */

#watch-main #announcement .count-down { color: #36cb68; font-weight: 500; white-space: nowrap; margin-left: 1rem; }
@media (max-width: 800px) {
    #watch-main #announcement .count-down { margin: .3rem 0 0; }
}

/* ---- episodes ----------------------------------------------------------- */

/* main.js scrolls .episodes to the playing episode, so it (not the ul) is the
   scroll box that fills the section. */
#watch-main .episode-section .eplist .episodes {
    position: absolute;
    inset: 0;
    margin: 0 -.25rem;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #36cb68 transparent;
}
#watch-main .episode-section .eplist .episodes::-webkit-scrollbar { width: 1px; }
#watch-main .episode-section .eplist .episodes::-webkit-scrollbar-thumb { background: #36cb68; }
#watch-main .episode-section .eplist ul { position: static; margin: 0; overflow: visible; max-height: none; }
#watch-main .episode-section .eplist ul > li a { overflow: hidden; }
#watch-main .episode-section .eplist ul > li a[enabled="0"] { opacity: .35; }
#watch-main .episode-section .eplist.titles ul > li a span { flex: 1 1 auto; min-width: 0; }
#watch-main .episode-section .eplist-empty { color: rgba(255, 255, 255, .5); padding: 1rem .25rem; }
#watch-main .episode-section .head-top .form-group { margin: 0; }
/* The range button keeps main.js's .dropdown-toggle hook; draw AnimeKAI's
   chevron in place of Bootstrap's caret. */
#watch-main .episode-section .head-bot .range-label.dropdown-toggle:after {
    content: "\f107";
    display: inline-block;
    border: 0;
    vertical-align: 0;
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
    margin-left: .4rem;
    font-size: .8rem;
}
#watch-main .episode-section .head-bot .dropdown { flex: 1 1 auto; text-align: center; }
/* AnimeKAI's range menu: a 10rem box under the label (not the full bar), a small
   gap below the bar, and the chevron flips while it is open. */
#watch-main .episode-section .head-bot .dropdown-menu { min-width: 10rem; max-height: 18rem; overflow-y: auto; top: 100%; left: 50%; right: auto; transform: translateX(-50%); margin-top: .45rem; }
#watch-main .episode-section .head-bot .dropdown.show .range-label.dropdown-toggle:after { transform: rotate(180deg); }
#watch-main .episode-section .list-sw { color: #fff; }

@media (max-width: 1299.9px) {
    #watch-main .episode-section .eplist .episodes { position: static; max-height: 19rem; }
}

/* ---- info + rating ------------------------------------------------------ */

#watch-main .entity-section .main-entity .info { flex-wrap: wrap; row-gap: .3rem; }
#watch-main .entity-section .main-entity .info .quality {
    background: #36cb68;
    color: #0c1116;
    border-radius: .3rem;
    padding: 0 .35rem;
    font-size: .8rem;
    font-weight: 600;
}
#watch-main .entity-section .main-entity .al-title { display: -webkit-box; }

/* main.js Shorting: [more]/[less] flips .expand. */
#watch-main .entity-section .main-entity .desc.shorting {
    display: block;
    max-height: none;
    overflow: visible;
    -webkit-line-clamp: unset;
    cursor: auto;
}
#watch-main .entity-section .main-entity .desc.shorting .content {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}
#watch-main .entity-section .main-entity .desc.shorting.expand .content { display: block; -webkit-line-clamp: unset; }
#watch-main .entity-section .main-entity .desc.shorting .toggle { color: #36cb68; cursor: pointer; font-size: .85rem; }

/* main.js Rating paints the five spans full/half. ".value by N reviews" stays on one line (anikai.to). */
#watch-main .rate-box .stars span {
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1.8rem;
    color: #343a40;
    transition: color .2s;
}
#watch-main .rate-box .stars span i { font-style: normal; color: inherit; width: auto; height: auto; font-size: inherit; }
#watch-main .rate-box .stars span i:before { content: "\f005"; font-family: "Font Awesome 6 Pro"; font-weight: 900; }
#watch-main .rate-box .stars span.full { color: #e45f3a; }
#watch-main .rate-box .stars span.half { color: #e45f3a; }
#watch-main .rate-box .stars span.half i:before { content: "\f5c0"; }
#watch-main .rate-box .message { min-height: 1.5em; }

/* ---- below the player --------------------------------------------------- */

#wrapper.watch #watch-second .dual-col { padding-top: 3rem; }

/* Seasons (anikai.to: section#seasons at the foot of the player box; styles.css
   draws the cards, Swiper sizes the slides from their CSS width). */
#watch-main #seasons .swiper-seasons { overflow: hidden; margin: 0 -.5rem; }
#watch-main #seasons .aitem-wrapper.season { flex-wrap: nowrap; margin: 0; }
#watch-main #seasons .aitem-wrapper.season .aitem .inner .poster > div { height: 100%; }
#watch-main #seasons .aitem-wrapper.season .aitem .inner .poster img { width: 100%; height: 100%; object-fit: cover; }
#watch-main #seasons .seasons-nav .btn { color: #fff; border: 0; }
#watch-main #seasons .seasons-nav .btn:focus { box-shadow: none; }
#watch-main #seasons .seasons-nav.d-none { display: none !important; }

#watch-second #comments .shead { margin-bottom: 1rem; }
#watch-second #comments .shead .onoff-toggle { color: #fff; }
#watch-second #comments .shead .onoff-toggle:focus { outline: 0; box-shadow: none; }
#watch-second #comments.cm-off #content-comments,
#watch-second #comments.cm-off #cm-reactions,
#watch-second #comments.cm-off .cm-unavailable { display: none !important; }
#watch-second #comments .cm-unavailable {
    padding: 1rem;
    border-radius: .6rem;
    background: #11161b;
    color: rgba(255, 255, 255, .5);
    text-align: center;
    font-size: .9rem;
}

#watch-second .sidebar .sidebar-section + .sidebar-section,
#watch-second .sidebar #watch-order + .sidebar-section { margin-top: 2rem; }
/* Relations (anikai.to #related-anime): orange filter dropdown, scrolling list,
   the relation as the last muted chip (wraps rather than clipping). */
#watch-second #w-related .tab-body { max-height: 450px; overflow: auto; scrollbar-width: thin; scrollbar-color: #36cb68 transparent; }
#watch-second #w-related .rel-filter .dropdown-arrow { color: #fff; }
#watch-second #w-related .rel-filter .rel-filter-label:empty { display: none; }
#watch-second #w-related .rel-filter .dropdown-arrow:has(.rel-filter-label:empty):after { margin-left: 0; }
#watch-second #w-related .rel-filter.show .dropdown-arrow:after { transform: rotate(180deg); }
#watch-second #w-related .rel-filter { position: relative; }
#watch-second #w-related .rel-filter .dropdown-menu { right: 0; left: auto !important; }
#watch-second #w-related .rel-filter .dropdown-item { cursor: pointer; }
#watch-second #w-related .rel-filter .dropdown-item.active { color: #36cb68; background: transparent; }
#watch-second .aitem-col .aitem .detail .info:has(.relation) { flex-wrap: wrap; row-gap: .2rem; }

/* One line like AnimeKAI's cards: the chips never wrap under the title. */
#watch-second .aitem-col .aitem .detail .info { flex-wrap: nowrap; overflow: hidden; }
#watch-second .aitem-col .aitem .detail .info span { white-space: nowrap; flex-shrink: 0; }
#watch-second .aitem-col .aitem .detail .info span + span { margin-left: .8rem; }
#watch-second .aitem .info .score { color: #ffc107; }
#watch-second .aitem .info .score i { font-size: .75rem; margin-right: .15rem; }
#watch-second .rel-collapse-hidden { display: none; }
#watch-second .rel-collapse-toggle {
    width: 100%;
    margin-top: .6rem;
    background: #181d22;
    color: rgba(255, 255, 255, .7);
    border-radius: .6rem;
    font-size: .9rem;
}
#watch-second .rel-collapse-toggle:hover { color: #36cb68; }

/* ---- report modal ------------------------------------------------------- */

.modal#w-report .modal-dialog { max-width: 26rem; }
.modal#w-report .modal-title { font-size: 1.2rem; font-weight: 500; margin-bottom: 1.2rem; text-align: center; }
.modal#w-report .modal-title i { color: #e45f3a; margin-right: .3rem; }
.modal#w-report .w-report-anime {
    display: flex;
    align-items: center;
    gap: .9rem;
    background: #181d22;
    border-radius: .8rem;
    padding: .7rem;
    margin-bottom: 1rem;
    text-align: left;
}
.modal#w-report .w-report-anime img { width: 3rem; height: 4.2rem; object-fit: cover; border-radius: .5rem; }
.modal#w-report .w-report-anime .title { font-weight: 500; line-height: 1.3; }
.modal#w-report .w-report-anime .episode { color: rgba(255, 255, 255, .5); font-size: .9rem; }
.modal#w-report .w-report-issues {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem 1rem;
    margin-bottom: 1rem;
    text-align: left;
}
.modal#w-report .w-report-issues .form-check { margin: 0; }
.modal#w-report .w-report-issues .form-check-label { font-size: .9rem; color: rgba(255, 255, 255, .8); cursor: pointer; }
.modal#w-report .w-report-issues .form-check-label span { color: rgba(255, 255, 255, .5); }
.modal#w-report .form-group { margin-bottom: 0; }
.modal#w-report textarea.form-control { background: #181d22; color: #fff; border-color: rgba(255, 255, 255, .08); resize: vertical; }
.modal#w-report form .alert { position: relative; text-align: left; font-size: .9rem; padding: .7rem 2.2rem .7rem 1rem; border-radius: .6rem; }
.modal#w-report form .alert .close {
    position: absolute;
    top: .4rem;
    right: .6rem;
    background: none;
    border: 0;
    color: inherit;
    font-size: 1.2rem;
    line-height: 1;
    opacity: .7;
}
@media (max-width: 420px) {
    #w-report .w-report-issues { grid-template-columns: 1fr; }
}

/* The sidebar wraps its sections under 1300px; #watch-order is one more box around them. */
#watch-second .sidebar #watch-order { width: 100%; min-width: 0; flex: 1 1 100%; }
#watch-second .sidebar > .sidebar-section { min-width: 0; }
#watch-second .aitem-col .rel-item + .rel-item { margin-top: .5rem; }

/* AnimeKAI's modal draws a green arc + mascot over the top of .modal-content. */
.modal#w-report .modal-body { padding-top: 7rem; }
.modal#w-report form .alert-danger { background: rgba(220, 53, 69, .12); color: #ff8a95; border: 0; }
.modal#w-report form .alert-success { background: rgba(54, 203, 104, .12); color: #36cb68; border: 0; }
.modal#w-report form .alert-info { background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .8); border: 0; }
/* comments.css (loaded later on this page) still carries the old Anikoto report look. */
.modal#w-report .modal-content { background: var(--bs-modal-bg); color: #fff; border: 0; border-radius: var(--bs-modal-border-radius); }

/* Pre-play preview (owner): the artwork shows through the player with the play
   button in its centre, as on anikai.to — AnimeKAI's #player override is solid
   black and block-level, which hid the art and parked the button top-left.
   Once main.js puts the server's iframe in, the black background returns. */
#watch-main .player-main #player { z-index: 2; display: flex; align-items: center; justify-content: center; }
#watch-main .player-main #player:not(:has(iframe, video)) { background: transparent; }
#watch-main .player-main #player .play-btn { display: flex; position: relative; }
#watch-main .player-main .player-bg { overflow: hidden; }

/* AniList banner strips as the preview (anikai.js adds .wide-art). */
/* No blur here (owner): the strip, sharp, across the middle of a black frame. */
#watch-main .player-main .player-bg.wide-art { background-image: none !important; background-color: #000; }
#watch-main .player-main .player-bg.wide-art::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; aspect-ratio: 19 / 4; transform: translateY(-50%); background: var(--hero-art) center / cover no-repeat; }

/* Owner's call: the player has square corners at every width (the preview,
   the frame and the server's iframe). */
#watch-main .player-main .player-bg,
#watch-main .player-main #player,
#watch-main .player-main #player iframe { border-radius: 0 !important; }

/* Player bar Download menu (.ctrl.download, filled by anikai-watch.js). */
#player-control .ctrl.download .dl-menu { min-width: 13rem; max-height: 18rem; overflow-y: auto; }
/* .dropdown-menu-right: the site's toggler has no Popper, so pin the menu to the
   control's right edge — left-aligned it ran off phones' right edge. */
#player-control .ctrl.download .dl-menu { left: auto !important; right: 0 !important; }
#player-control .ctrl.download .dl-menu .dropdown-header { padding: .5rem 1rem .25rem; font-size: .75rem; color: #8f969c; text-transform: uppercase; letter-spacing: .02em; }
#player-control .ctrl.download .dl-menu .dropdown-item { display: flex; align-items: center; gap: .5rem; }
#player-control .ctrl.download .dl-menu .dropdown-item i { color: #36cb68; font-size: .85em; }
#player-control .ctrl.download .dl-menu .dl-empty { display: block; padding: .5rem 1rem; color: #8f969c; font-size: .85rem; white-space: nowrap; }
/* Owner's call: downloads live only in the player bar's Download menu. The
   servers' .mapper-dl-row stays in the DOM as that menu's data source. */
#w-servers .mapper-dl-row { display: none !important; }

/* ---- No episodes yet: the "coming soon" card (partials/watch/coming-soon) ---- */
#watch-main.no-episodes .soon-section { background: #11161b; border-radius: 1.2rem; overflow: hidden; }
#watch-main.no-episodes .soon-section .breadcrumb { margin: 0; padding: 1rem 1.5rem; }
#watch-main .soon-card { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 0; border-top: 1px solid rgba(255, 255, 255, .05); }
#watch-main .soon-media { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
#watch-main .soon-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
#watch-main .soon-art { position: absolute; inset: 0; background: center / cover no-repeat; }
#watch-main .soon-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, #11161b); }
#watch-main .soon-trailer { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; cursor: pointer; background: #000 center / cover no-repeat; color: #fff; }
#watch-main .soon-trailer::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .35); transition: background .2s; }
#watch-main .soon-trailer:hover::before { background: rgba(0, 0, 0, .2); }
#watch-main .soon-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 4.5rem; height: 4.5rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; padding-left: .3rem; background: #e45f3a; box-shadow: 0 0 0 .6rem rgba(228, 95, 58, .25); transition: transform .2s; }
#watch-main .soon-trailer:hover .soon-play { transform: translate(-50%, -50%) scale(1.08); }
#watch-main .soon-trailer-label { position: absolute; left: 1.2rem; bottom: 1rem; font-size: .85rem; font-weight: 500; padding: .35rem .7rem; border-radius: .5rem; background: rgba(0, 0, 0, .6); }
#watch-main .soon-body { display: flex; flex-direction: column; justify-content: center; gap: 1rem; padding: 2rem 2.2rem; }
#watch-main .soon-status { align-self: flex-start; display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 500; padding: .35rem .75rem; border-radius: 2rem; color: #36cb68; background: rgba(54, 203, 104, .12); }
#watch-main .soon-title { margin: 0; font-size: 1.7rem; font-weight: 600; color: #fff; }
#watch-main .soon-text { margin: 0; font-size: .95rem; line-height: 1.6; color: rgba(255, 255, 255, .65); }
#watch-main .soon-text b { color: #fff; font-weight: 500; }
#watch-main .soon-facts { display: flex; flex-wrap: wrap; gap: .6rem; }
#watch-main .soon-fact { display: flex; flex-direction: column; gap: .15rem; min-width: 7rem; padding: .65rem .9rem; border-radius: .7rem; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); }
#watch-main .soon-fact span { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: rgba(255, 255, 255, .45); }
#watch-main .soon-fact b { font-size: .95rem; font-weight: 500; color: #fff; }
#watch-main .soon-bookmark .dropdown-menu { min-width: 12rem; }

@media (max-width: 991.98px) {
    #watch-main .soon-card { grid-template-columns: 1fr; }
    #watch-main .soon-art::after { background: linear-gradient(180deg, transparent 55%, #11161b); }
    #watch-main .soon-body { padding: 1.4rem 1.3rem 1.6rem; }
    #watch-main .soon-title { font-size: 1.35rem; }
}
@media (max-width: 639.98px) {
    #watch-main.no-episodes .soon-section { border-radius: .8rem; }
    #watch-main .soon-play { width: 3.6rem; height: 3.6rem; font-size: 1.3rem; }
    #watch-main .soon-fact { flex: 1 1 40%; min-width: 0; }
}
#watch-main .soon-bookmark .dropdown-menu { background: #181d22; border: 1px solid rgba(255, 255, 255, .08); border-radius: .75rem; padding: .35rem; box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .35); }
#watch-main .soon-bookmark .dropdown-item { cursor: pointer; color: rgba(255, 255, 255, .78); border-radius: .55rem; padding: .5rem .7rem; font-size: .9rem; }
#watch-main .soon-bookmark .dropdown-item:hover,
#watch-main .soon-bookmark .dropdown-item.active { background: rgba(54, 203, 104, .12); color: #36cb68; }

/* ---- Anime info page (/anime/{slug}, frontend/anime.blade.php) ------------- */
#watch-main.anime-page .detail-section { background: #11161b; border-radius: 1.2rem; overflow: hidden; }
#watch-main.anime-page .detail-section .breadcrumb { margin: 0; padding: 1rem 1.5rem; }
#watch-main .detail-card { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: stretch; }
#watch-main .detail-left { display: flex; flex-direction: column; min-width: 0; }
#watch-main a.soon-art { display: block; color: #fff; }
#watch-main a.soon-art .soon-play { z-index: 1; }

/* The episode box sits in the card's right column instead of the page column. */
#watch-main .detail-card .episode-section.detail-eps { width: auto; min-width: 0; max-width: none; margin: 0; padding: 1.1rem 1.25rem 1.25rem; border-radius: 0; background: #0d1216; border-left: 1px solid rgba(255, 255, 255, .05); display: flex; flex-direction: column; }
#watch-main .detail-card .episode-section.detail-eps .eplist { position: relative; flex: 1 1 auto; min-height: 14rem; }

@media (max-width: 991.98px) {
    #watch-main .detail-card { grid-template-columns: 1fr; }
    #watch-main .detail-card .episode-section.detail-eps { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .05); }
    #watch-main .detail-card .episode-section.detail-eps .eplist { flex: 0 0 auto; min-height: 0; }
    #watch-main .detail-card .episode-section.detail-eps .eplist .episodes { position: static; max-height: 22rem; }
}
@media (max-width: 639.98px) {
    #watch-main.anime-page .detail-section { border-radius: .8rem; }
}
#watch-main .episode-section .eplist ul > li a.found { box-shadow: 0 0 0 2px #36cb68 inset; color: #36cb68; }
/* Info page: the bookmark is an icon over the media's top-right corner (the
   folder menu may drop past the media, so the media does not clip here). */
#watch-main .soon-card .soon-media { overflow: visible; }
#watch-main .detail-card .soon-media > .soon-trailer,
#watch-main .detail-card .soon-media > .soon-art,
#watch-main .detail-card .soon-media > iframe { border-radius: 0; }
#watch-main .detail-bookmark { position: absolute; top: .8rem; right: .8rem; z-index: 3; }
#watch-main .detail-bookmark > .btn { width: 2.6rem; height: 2.6rem; padding: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 0; color: #fff; font-size: 1.05rem; background: rgba(0, 0, 0, .55); backdrop-filter: blur(4px); transition: background .2s, color .2s; }
#watch-main .detail-bookmark > .btn:hover,
#watch-main .detail-bookmark.show > .btn { background: #36cb68; color: #0c1116; }
#watch-main .detail-bookmark .dropdown-menu { min-width: 11rem; }

/* Coming-soon card: the release block (date + live countdown, or TBA). */
#watch-main .soon-body { gap: .9rem; }
#watch-main .soon-release { display: flex; align-items: center; gap: .9rem; padding: .9rem 1.1rem; border-radius: .9rem; background: linear-gradient(135deg, rgba(228, 95, 58, .14), rgba(228, 95, 58, .04)); border: 1px solid rgba(228, 95, 58, .25); }
#watch-main .soon-release-icon { flex-shrink: 0; width: 2.8rem; height: 2.8rem; border-radius: .75rem; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: #fff; background: #e45f3a; }
#watch-main .soon-release-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
#watch-main .soon-release-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: rgba(255, 255, 255, .5); }
#watch-main .soon-release-date { font-size: 1.15rem; font-weight: 600; color: #fff; }
#watch-main .soon-release-count { margin-top: .15rem; font-size: .85rem; font-weight: 500; color: #36cb68; }
#watch-main .soon-release-count:empty { display: none; }
#watch-main .soon-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: .6rem; }
#watch-main .soon-fact { min-width: 0; }
#watch-main .soon-fact b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Watch page: the title (h1) and its breadcrumb link to the info page; they
   keep the title's look and only turn green on hover. */
#watch-main .entity-section .main-entity .title a { color: inherit; }
#watch-main .entity-section .main-entity .title a:hover { color: #36cb68; }
#watch-main .breadcrumb .breadcrumb-item.active a { color: inherit; }
#watch-main .breadcrumb .breadcrumb-item.active a:hover { color: #36cb68; }
