.anime-view { min-height: 0; flex: 1; display: flex; flex-direction: column; gap: 13px; overflow: hidden; }
.anime-heading { flex: none; display: flex; align-items: center; justify-content: space-between; min-height: 38px; }
.anime-heading h2 { display: flex; align-items: center; gap: 9px; margin: 0; color: #f0f7fc; font-size: 20px; }
.anime-heading h2 small { padding: 3px 7px; border: 1px solid #305064; border-radius: 6px; color: #96d6ee; font-size: 9px; font-weight: 500; }
.anime-categories { flex: none; display: flex; gap: 5px; padding: 4px; border: 1px solid #263f50; border-radius: 12px; background: #0c1821; }
.anime-categories button { flex: 1; min-width: 0; min-height: 36px; padding: 7px 5px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #8daebf; font: inherit; font-size: 12px; cursor: pointer; }
.anime-categories button[aria-pressed="true"] { border-color: #62cce77a; background: #204657; color: #d9f7ff; font-weight: 600; }
.anime-categories button:focus-visible { outline: 2px solid #8cdef8; outline-offset: 1px; }
.film-sort { flex: none; display: flex; justify-content: space-between; gap: 12px; margin: -2px 1px 0; color: #84aabc; font-size: 10px; line-height: 1.5; }
.film-sort b { color: #d0d8ab; font-weight: 500; }
.film-rating { position: absolute; z-index: 2; top: 7px; left: 7px; padding: 4px 6px; border: 1px solid #e8c65a50; border-radius: 6px; background: #10140eeb; color: #ffe284; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.anime-search { flex: none; display: flex; align-items: center; gap: 8px; padding: 0 12px; min-height: 43px; border: 1px solid #2b4253; border-radius: 12px; background: #111e28; }
.anime-search input { min-width: 0; flex: 1; width: 100%; height: 41px; border: 0; background: transparent; color: #e0f4fc; font: inherit; font-size: 12px; outline: none; }
.anime-search:focus-within { border-color: #75cdec; box-shadow: 0 0 0 2px #75cdec22; }
.anime-search input::placeholder { color: #7692a6; }
.anime-scroll { min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #2a4c60 transparent; }
.anime-status { margin: 0 0 11px; color: #9db6c8; font-size: 10px; line-height: 1.6; }
.anime-status:empty { display: none; }
.anime-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px 11px; }
.anime-card { display: block; width: 100%; min-width: 0; padding: 0; border: 0; background: transparent; color: #ebf5fc; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.anime-poster { position: relative; display: block; overflow: hidden; aspect-ratio: 2 / 3; border: 1px solid #263f50; border-radius: 11px; background: radial-gradient(ellipse at 20% 0, #3b667e, transparent 80%), #132532; }
.anime-poster::before { position: absolute; inset: 0; display: grid; place-items: center; content: '磨丁'; color: #7da2b7; font-size: 15px; letter-spacing: 4px; }
.anime-poster img { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; }
.anime-poster > small { position: absolute; z-index: 1; bottom: 0; right: 0; left: 0; padding: 17px 6px 6px; overflow: hidden; background: linear-gradient(transparent, #030912e8); color: #f0f7fb; font-size: 9px; line-height: 1.4; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.anime-card > b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 7px; font-size: 11px; font-weight: 550; line-height: 1.6; }
.anime-card:focus-visible { border-radius: 11px; outline: 2px solid #8cdef8; outline-offset: 4px; }
.anime-card:hover .anime-poster { border-color: #73cce9; }
.anime-empty { padding: 30px 16px; border: 1px dashed #2c485d; border-radius: 12px; color: #9ab2c4; font-size: 12px; line-height: 1.8; text-align: center; }
.anime-pagination { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 22px; }
.anime-pagination button { min-width: 78px; min-height: 37px; padding: 7px 11px; border: 1px solid #2d4e62; border-radius: 10px; background: #142a39; color: #b9e5f6; font-size: 11px; cursor: pointer; }
.anime-pagination button:disabled { opacity: .35; cursor: default; }
.anime-pagination span { color: #8baabe; font-size: 11px; font-variant-numeric: tabular-nums; }
.anime-source { display: grid; gap: 6px; margin: 20px 0 10px; padding-top: 12px; border-top: 1px solid #233846; color: #6f8da1; font-size: 9px; line-height: 1.5; }
.anime-source a { color: #8ccfe8; text-decoration: none; }
@media (max-width: 340px) { .anime-grid { gap: 14px 8px; } .anime-poster > small { font-size: 8px; } }
.anime-theatre { box-sizing: border-box; width: min(820px, calc(100% - 24px)); margin: auto; padding: 0; overflow: hidden; border: 1px solid #325568; border-radius: 20px; background: #0d1a25; color: #e8f5fc; color-scheme: dark; }
.anime-theatre[open] { display: flex; flex-direction: column; }
.anime-theatre::backdrop { background: #02070be8; backdrop-filter: blur(6px); }
.anime-watch-heading { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; border-bottom: 1px solid #294451; background: #102431; }
.anime-watch-heading small { color: #83cfe7; font-size: 10px; letter-spacing: 1px; }
.anime-watch-heading h2 { margin: 5px 0 0; font-size: 18px; line-height: 1.5; }
.anime-watch-close { flex: none; width: 34px; height: 34px; border: 1px solid #37586b; border-radius: 50%; background: #193443; color: #c3eafb; font-size: 24px; cursor: pointer; }
.anime-watch-body { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 15px 18px 18px; scrollbar-width: thin; }
.anime-watch-lines { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 3px; scrollbar-width: thin; }
.anime-watch-lines button { flex: none; min-height: 36px; padding: 8px 12px; border: 1px solid #2b4c60; border-radius: 9px; background: #142b39; color: #a6c8db; font-size: 11px; cursor: pointer; }
.anime-watch-lines button[aria-pressed=true] { border-color: #7ad7f0; background: #20536a; color: #e3faff; }
.anime-watch-screen { overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid #284453; border-radius: 13px; background: #03090e; }
.anime-watch-screen.source-page { aspect-ratio: auto; height: calc(var(--viewport-height) * .45); min-height: 260px; }
.anime-watch-screen iframe { display: block; width: 100%; height: 100%; border: 0; background: #03090e; }
.anime-watch-placeholder { display: flex; height: 100%; box-sizing: border-box; align-items: center; justify-content: center; flex-direction: column; gap: 7px; padding: 12px; text-align: center; background: radial-gradient(ellipse at 50% 30%, #173f53, transparent 80%); }
.anime-watch-placeholder > span { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border: 1px solid #67cce468; border-radius: 50%; color: #8fdef3; font-size: 14px; }
.anime-watch-placeholder strong { font-size: 15px; font-weight: 550; }
.anime-watch-placeholder p { margin: 0; color: #779aaf; font-size: 11px; }
.anime-watch-placeholder button { min-height: 37px; margin-top: 6px; padding: 8px 22px; border: 0; border-radius: 9px; background: #7ed8ef; color: #09202e; font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; }
.anime-watch-placeholder button:disabled { opacity: .35; cursor: wait; }
.anime-watch-now { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 10px 0; }
.anime-watch-now p { margin: 0; color: #96b8ca; font-size: 11px; line-height: 1.7; }
.anime-watch-now a { flex: none; color: #89d4ee; font-size: 10px; text-decoration: none; }
.anime-watch-now a[hidden] { display: none; }
.anime-watch-controls { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 9px; margin-bottom: 18px; }
.anime-watch-controls button { min-height: 36px; border: 1px solid #2b4b5e; border-radius: 9px; background: #132c3b; color: #bbdce9; font-size: 11px; cursor: pointer; }
.anime-watch-controls button:disabled { opacity: .35; cursor: default; }
.anime-episode-heading { display: flex; align-items: center; justify-content: space-between; margin: 15px 0 10px; }
.anime-episode-heading h3 { margin: 0; font-size: 14px; font-weight: 550; }
.anime-episode-heading span { color: #779eb4; font-size: 10px; }
.anime-watch-episodes { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 7px; max-height: 240px; overflow-y: auto; scrollbar-width: thin; }
.anime-watch-episodes button { min-height: 36px; padding: 6px 4px; border: 1px solid #274656; border-radius: 8px; background: #132a38; color: #b6cfdd; font-size: 11px; cursor: pointer; }
.anime-watch-episodes button[aria-pressed=true] { border-color: #72cee7; background: #20576d; color: #dffaff; }
.anime-version-panel { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 12px; align-items: center; margin: 0 0 14px; padding: 12px; border: 1px solid #294b5c; border-radius: 12px; background: #102735; }
.anime-version-panel label { color: #9bbdcc; font-size: 11px; }
.anime-version-panel select { min-width: 0; width: 100%; height: 38px; padding: 0 10px; border: 1px solid #3b6276; border-radius: 8px; background: #0a1b25; color: #def3fb; font: inherit; font-size: 12px; }
.anime-version-panel small { grid-column: 2; color: #78a5bb; font-size: 10px; }
.anime-theatre button:focus-visible, .anime-theatre select:focus-visible, .anime-theatre a:focus-visible { outline: 2px solid #97e1f9; outline-offset: 2px; }
@media (max-width: 480px) { .anime-theatre { width: calc(100% - 14px); border-radius: 16px; } .anime-watch-heading { padding: 13px; } .anime-watch-heading h2 { font-size: 16px; } .anime-watch-body { padding: 12px; } .anime-watch-placeholder strong { font-size: 13px; } .anime-watch-placeholder p { font-size: 10px; } .anime-watch-placeholder button { min-height: 31px; padding: 6px 18px; margin-top: 0; } }
.film-details { box-sizing: border-box; width: min(530px, calc(100% - 28px)); margin: auto; padding: 0; overflow: hidden; border: 1px solid #365366; border-radius: 18px; background: #0d1b25; color: #e6f4fa; color-scheme: dark; }
.film-details[open] { display: flex; flex-direction: column; }
.film-details::backdrop { background: #02080cdd; backdrop-filter: blur(5px); }
.film-details > header { display: flex; flex: none; align-items: center; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid #284151; color: #9dcfe0; font-size: 11px; }
.film-details > header button { width: 32px; height: 32px; border: 1px solid #345366; border-radius: 50%; background: #18313f; color: #c3e7f7; font-size: 22px; cursor: pointer; }
.film-details-body { min-height: 0; overflow: auto; padding: 18px; }
.film-details-overview { display: grid; grid-template-columns: 105px minmax(0, 1fr); align-items: start; gap: 16px; }
.film-details-overview img { width: 105px; aspect-ratio: 2 / 3; border-radius: 9px; object-fit: cover; }
.film-details-overview h2 { margin: 7px 0; font-size: 20px; line-height: 1.5; overflow-wrap: anywhere; }
#film-details-kind, #film-details-original { margin: 0; color: #8aaebf; font-size: 11px; line-height: 1.7; }
.film-details-score { display: flex; align-items: baseline; gap: 9px; margin-top: 13px; }
.film-details-score strong { color: #f4d776; font-size: 22px; font-variant-numeric: tabular-nums; }
.film-details-score span { color: #839fac; font-size: 10px; }
#film-details-synopsis { margin: 20px 0 12px; font-size: 13px; line-height: 1.9; }
.film-details-date, .film-details-credit { color: #809eaf; font-size: 10px; line-height: 1.8; }
.film-details-availability { padding: 12px; border-radius: 9px; background: #142b39; color: #a9c6d7; font-size: 11px; line-height: 1.7; }
.film-details-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.film-details-links a { padding: 9px 12px; border: 1px solid #3e6474; border-radius: 8px; background: #173545; color: #b9e9f7; text-decoration: none; font-size: 11px; }
.film-details-credit a { color: #9dc9dc; text-underline-offset: 3px; }
.film-details button:focus-visible, .film-details a:focus-visible { outline: 2px solid #9edff5; outline-offset: 3px; }
@media (max-width: 360px) { .film-details-overview { grid-template-columns: 85px minmax(0, 1fr); gap: 12px; } .film-details-overview img { width: 85px; } .film-details-overview h2 { font-size: 17px; } }
