:root {
  color-scheme: dark;
  --page: #101113;
  --surface: #191919;
  --surface-raised: #252527;
  --text: #f7f7f7;
  --muted: #ababaf;
  --accent: #ffdf00;
  --line: #303033;
  --content: 1412px;
  --gutter: clamp(20px, 3vw, 48px);
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--page); color: var(--text); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:disabled { opacity: .65; cursor: wait; }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
img { display: block; max-width: 100%; }
svg { flex-shrink: 0; }
h1, h2, h3, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 20px; top: -80px; z-index: 100; padding: 12px 20px; color: #151515; background: var(--accent); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.container { max-width: var(--content); padding-inline: var(--gutter); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 20; height: 76px; background: #191919; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 44px; }
.brand { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; direction: ltr; unicode-bidi: isolate; }
.brand img { width: 35px; height: 35px; }
.brand span { font-size: 23px; font-weight: 750; letter-spacing: -.7px; }
.main-nav { align-self: stretch; display: flex; align-items: stretch; gap: 38px; }
.nav-link { position: relative; display: grid; place-items: center; min-width: 42px; padding: 0 3px; font-size: 15px; font-weight: 600; }
.nav-link:hover, .nav-link[aria-current] { color: var(--accent); }
.nav-link[aria-current]::after { content: ""; position: absolute; bottom: 14px; left: 3px; right: 3px; height: 2px; background: var(--accent); }
.header-download { margin-inline-start: auto; }
.language-selector { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; min-height: 44px; color: #e6e6e8; }
.language-selector > svg { width: 19px; height: 19px; }
.language-selector select { min-height: 44px; max-width: 115px; padding: 7px 4px; font: inherit; font-size: 14px; color: inherit; background: #191919; border: 0; border-radius: 4px; cursor: pointer; }
.download-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 12px 30px; border: 0; border-radius: 999px; background: linear-gradient(100deg, #f2a100 0%, #ffdf00 100%); color: #191919; font-size: 16px; line-height: 24px; font-weight: 700; transition: filter .2s, transform .2s; }
.download-button:hover { filter: brightness(1.1); }
.download-button:active { transform: translateY(1px); }
.download-button svg { width: 18px; height: 18px; }
.header-download .download-button { min-height: 40px; padding: 8px 22px; font-size: 14px; }
.hero { padding-top: 32px; }
.hero-viewport { overflow: hidden; width: 100%; }
.hero-track { position: relative; display: flex; align-items: stretch; gap: 44px; transition: transform .65s cubic-bezier(.16, 1, .3, 1); }
.hero-slide { display: flex; flex: 0 0 min(920px, 76vw); height: 404px; overflow: hidden; background: var(--surface); border-radius: 12px; opacity: .45; transition: opacity .4s; }
.hero-slide.is-active { opacity: 1; }
.hero-poster { width: 34%; height: 100%; flex-shrink: 0; object-fit: cover; }
.hero-copy { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 32px; }
.hero-copy h2 { font-size: clamp(28px, 2.5vw, 38px); line-height: 1.2; font-weight: 700; letter-spacing: -.7px; text-wrap: balance; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.episode-count { margin-top: 15px; font-size: 13px; line-height: 1.5; color: #dedede; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.tag { padding: 3px 7px; border-radius: 3px; font-size: 12px; line-height: 17px; color: #c3c3c6; background: #303032; }
.hero-description { color: var(--muted); font-size: 14px; line-height: 1.6; margin-top: 19px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.carousel-controls { display: flex; justify-content: center; align-items: center; gap: 10px; width: fit-content; max-width: calc(100% - 32px); margin: 12px auto 2px; }
.carousel-dots { display: flex; align-items: center; min-width: 0; flex: 0 1 auto; }
.carousel-dot { border: 0; background: transparent; padding: 16px 3px; width: 24px; min-width: 14px; flex: 1 1 24px; height: 40px; display: grid; place-items: center; }
.carousel-dot::before { content: ""; width: 21px; height: 6px; border-radius: 999px; background: #66666b; transform: scaleX(.286); transition: transform .2s, background .2s; }
.carousel-dot.is-active::before { transform: scaleX(1); background: var(--accent); }
.carousel-arrow, .carousel-toggle { display: inline-grid; place-items: center; flex-shrink: 0; border: 0; background: transparent; color: #b6b6ba; width: 40px; height: 40px; border-radius: 50%; }
.carousel-arrow:hover, .carousel-toggle:hover { color: var(--accent); background: var(--surface-raised); }
.carousel-arrow svg, .carousel-toggle svg { width: 17px; height: 17px; }
.carousel-counter { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; margin: 0 4px; }
.carousel-toggle .play-icon, .carousel-toggle.is-paused .pause-icon { display: none; }
.carousel-toggle.is-paused .play-icon { display: block; }
.catalog-section { margin-top: 36px; }
.catalog-section h2 { font-size: 27px; line-height: 1.3; font-weight: 700; letter-spacing: -.5px; margin-bottom: 22px; }
.poster-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 18px; row-gap: 26px; }
.poster-card { min-width: 0; cursor: default; }
.poster-card img { width: 100%; height: auto; aspect-ratio: 110 / 143; object-fit: cover; border-radius: 8px; background: var(--surface); }
.poster-card h3 { font-size: 16px; line-height: 1.4; font-weight: 600; margin-top: 10px; color: #e8e8e9; overflow-wrap: anywhere; }
.star-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.star-card { display: flex; gap: 16px; background: var(--surface); border-radius: 12px; padding: 16px; min-width: 0; }
.star-card > img { width: 38%; height: auto; aspect-ratio: 110 / 143; object-fit: cover; align-self: flex-start; border-radius: 7px; }
.star-copy { min-width: 0; }
.star-copy h3 { font-size: 17px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.star-copy .episode-count { font-size: 12px; margin-top: 10px; color: var(--muted); }
.star-copy .tags { gap: 4px; margin-top: 8px; }
.star-copy .tag { font-size: 10px; padding: 2px 5px; line-height: 15px; }
.star-description { margin-top: 10px; font-size: 12px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.download-strip { margin-top: 64px; padding: 30px 32px; border-radius: 12px; background: #202022; display: flex; align-items: center; gap: 20px; }
.download-strip > img { width: 58px; height: 58px; }
.download-strip h2 { font-size: 23px; line-height: 1.3; }
.download-strip p { font-size: 14px; line-height: 1.6; color: var(--muted); margin-top: 6px; }
.download-strip .download-button { margin-inline-start: auto; flex-shrink: 0; }
.site-footer { margin-top: 60px; padding-top: 42px; background: #191919; }
.footer-main { display: grid; grid-template-columns: 1.2fr 1.3fr .5fr; gap: 72px; padding-bottom: 38px; }
.footer-tagline { margin-top: 14px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.footer-about h2, .footer-nav h2 { font-size: 15px; margin-bottom: 15px; }
.footer-about p { color: var(--muted); font-size: 13px; line-height: 1.9; max-width: 48ch; }
.footer-nav { display: flex; flex-direction: column; align-items: flex-start; }
.footer-nav a { color: var(--muted); font-size: 13px; padding: 7px 0; }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 21px; display: flex; justify-content: space-between; color: #a4a4a8; font-size: 12px; line-height: 1.6; }
.mobile-app-bar { display: none; }
.download-status { position: fixed; z-index: 50; bottom: 28px; left: 50%; transform: translate(-50%, 16px); width: max-content; max-width: min(480px, calc(100vw - 32px)); border: 1px solid #4a4a48; padding: 15px 22px; border-radius: 10px; background: #282829; color: #fff; font-size: 14px; line-height: 1.5; text-align: center; opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
.download-status.is-visible { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
html.download-modal-open, .download-modal-open body { overflow: hidden; overscroll-behavior: none; }
.download-dialog { width: min(408px, calc(100% - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); margin: auto; padding: 24px 18px 36px; border: 0; border-radius: 16px; background: #19191c; color: #f7f7f7; overflow-y: auto; overscroll-behavior: contain; text-align: start; }
.download-dialog::backdrop { background: rgb(0 0 0 / 76%); }
.download-dialog-close { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 44px; height: 44px; padding: 12px; border: 0; border-radius: 50%; background: transparent; color: #aaa; }
.download-dialog-close svg { width: 20px; height: 20px; }
.download-dialog-close:hover { background: #303033; color: #fff; }
.download-dialog-logo { width: 66px; height: 66px; margin-inline: auto; }
.download-dialog h2 { margin: 20px 0 10px; font-size: 24px; font-weight: 700; line-height: 1.3; text-align: center; overflow-wrap: anywhere; }
.download-dialog h2:focus { outline: none; }
.download-dialog-intro { font-size: 14px; line-height: 1.6; color: #c3c3c7; }
.download-dialog-help { margin-top: 14px; padding: 12px 13px; border: 1px solid #3c3c3f; border-radius: 12px; background: #222224; font-size: 12px; line-height: 1.5; color: #aaaab1; }
.download-dialog-actions { display: grid; gap: 10px; margin-top: 22px; }
.download-dialog-action { width: 100%; min-height: 48px; padding: 12px; border: 1px solid transparent; border-radius: 13px; font-size: 14px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.download-dialog-primary { background: #fff; color: #151515; }
.download-dialog-primary:hover { background: #e9e9eb; }
.download-dialog-secondary { border-color: #49494d; background: #272729; color: #fff; }
.download-dialog-secondary:hover { background: #353538; }
.download-dialog-status { margin-top: 16px; color: #ffdf00; font-size: 13px; line-height: 1.6; text-align: center; }
.download-dialog-status:empty { display: none; }
[lang="ja"] .download-dialog h2 { font-size: 21px; }
[lang="ar"] .download-dialog-intro { line-height: 1.8; }
[lang="ar"] .download-dialog-help { font-size: 13px; line-height: 1.7; }
.app-main { max-width: 1280px; margin: 0 auto; padding: 48px var(--gutter) 0; }
.app-intro { text-align: center; max-width: 870px; margin: 0 auto; }
.app-intro h1 { font-size: 32px; letter-spacing: -.7px; line-height: 1.3; text-wrap: balance; }
.app-intro > p { color: var(--muted); font-size: 16px; line-height: 1.9; margin: 17px auto 0; max-width: 75ch; }
.app-intro .app-invitation { color: #d8d8da; margin-top: 12px; }
.app-showcase { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: 44px; align-items: center; max-width: 1140px; margin: 34px auto 0; }
.app-artwork { width: 100%; height: auto; }
.app-download-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 410px; padding: 40px 30px; border-radius: 12px; background: var(--surface-raised); }
.app-download-panel > img { width: 88px; height: 88px; }
.app-download-panel h2 { font-size: 28px; margin-top: 18px; letter-spacing: -.6px; }
.app-download-panel p { color: #b5b5b9; font-size: 14px; line-height: 1.8; margin-top: 12px; max-width: 27ch; }
.app-download-panel .download-button { margin-top: 27px; width: 100%; max-width: 260px; }
.app-download-panel .download-caption { font-size: 12px; margin-top: 15px; }
.app-closing { font-size: 15px; line-height: 1.8; text-align: center; color: var(--muted); margin-top: 30px; }
.app-closing strong { color: #e6e6e8; font-weight: 600; }

/* The Arabic preview uses the same localized titles and real poster files as Home. */
.localized-phones { position: relative; aspect-ratio: 680 / 570; background: radial-gradient(ellipse at 60% 46%, #733314 0%, #443611 25%, transparent 64%); }
.phone-front, .phone-back { position: absolute; overflow: hidden; background: #141416; border: 5px solid #333337; outline: 1px solid #8c8c91; border-radius: 30px; }
.phone-front { z-index: 2; width: 47%; height: 87%; top: 5%; left: 8%; padding: 12px 9px; }
.phone-back { width: 40%; height: 75%; top: 18%; right: 9%; }
.phone-back > img { width: 100%; height: 100%; object-fit: cover; }
.phone-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 26px 10px 18px; background: linear-gradient(transparent, #101113); font-size: clamp(12px, 1.3vw, 18px); font-weight: 700; line-height: 1.5; text-align: center; }
.phone-notch { width: 42%; height: 12px; background: #000; border-radius: 99px; margin: 0 auto 14px; }
.phone-brand { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: clamp(12px, 1.5vw, 19px); font-weight: 700; direction: ltr; }
.phone-brand img { width: 22px; height: 22px; }
.phone-section { font-size: clamp(10px, 1.1vw, 14px); margin: 16px 0 9px; }
.phone-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 5px; }
.phone-tiles img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 3px; }
.phone-tiles span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: clamp(8px, .8vw, 11px); line-height: 1.5; margin-top: 4px; }
.phone-home-indicator { position: absolute; bottom: 9px; left: 35%; width: 30%; height: 3px; border-radius: 9px; background: #fff; }
html[lang="ar"] { font-family: Tahoma, Arial, sans-serif; }
html[lang="ja"] { font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Arial, sans-serif; }
[dir="rtl"] .carousel-arrow svg { transform: scaleX(-1); }
[dir="rtl"] .hero-copy h2 { line-height: 1.5; letter-spacing: 0; }
[dir="rtl"] .hero-description, [dir="rtl"] .star-description { line-height: 1.8; }
[dir="rtl"] .poster-card h3, [dir="rtl"] .star-copy h3 { line-height: 1.6; letter-spacing: 0; overflow-wrap: break-word; }
[dir="rtl"] .catalog-section h2, [dir="rtl"] .app-intro h1 { letter-spacing: 0; }

@media (min-width: 1600px) {
  .hero-slide { flex-basis: 980px; height: 425px; }
  .hero-track { gap: 64px; }
}
@media (max-width: 1100px) {
  .header-inner { gap: 26px; }
  .main-nav { gap: 24px; }
  .hero-slide { flex-basis: 84vw; height: 370px; }
  .hero-track { gap: 28px; }
  .hero-copy { padding: 25px; }
  .hero-copy h2 { font-size: 30px; }
  .hero-description { -webkit-line-clamp: 2; margin-top: 15px; }
  .poster-grid { gap: 24px 14px; }
  .poster-card h3 { font-size: 14px; }
  .star-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-showcase { gap: 20px; grid-template-columns: minmax(0, 1.3fr) minmax(300px, 1fr); }
  .app-download-panel { min-height: 360px; padding: 28px 22px; }
}
@media (max-width: 760px) {
  :root { --gutter: 20px; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .site-header { height: 100px; }
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 56px 44px; gap: 0; }
  .brand img { width: 31px; height: 31px; }
  .brand span { font-size: 21px; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; gap: 30px; }
  .language-selector { grid-column: 2; grid-row: 1; gap: 5px; }
  .language-selector select { max-width: 105px; }
  [dir="rtl"] .header-inner > .brand { justify-self: end; }
  .nav-link { font-size: 14px; }
  .nav-link[aria-current]::after { bottom: 10px; }
  .header-download { display: none; }
  .hero { padding-top: 22px; }
  .hero-slide { flex-basis: calc(100vw - 40px); height: auto; min-height: 250px; }
  .hero-track { gap: 14px; }
  .hero-poster { width: 43%; height: auto; object-fit: cover; align-self: stretch; }
  .hero-copy { padding: 19px 16px; }
  .hero-copy h2 { font-size: 22px; line-height: 1.25; letter-spacing: -.4px; }
  .hero-copy .episode-count { font-size: 11px; margin-top: 10px; }
  .hero-copy .tags { gap: 4px; margin-top: 7px; }
  .hero-copy .tag { font-size: 10px; line-height: 1.3; padding: 3px 5px; }
  .hero-description { font-size: 12px; line-height: 1.5; margin-top: 11px; }
  .carousel-controls { margin-top: 5px; gap: 5px; }
  .carousel-counter { display: none; }
  .catalog-section { margin-top: 28px; }
  .catalog-section h2 { font-size: 23px; margin-bottom: 17px; }
  .poster-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 12px; }
  .poster-card h3 { font-size: 12px; line-height: 1.4; margin-top: 7px; }
  .poster-card img { border-radius: 6px; }
  .star-grid { gap: 12px; }
  .star-card { padding: 12px; gap: 12px; }
  .star-copy h3 { font-size: 14px; }
  .star-description { display: none; }
  .star-copy .tags { margin-top: 6px; }
  .star-copy .tag { font-size: 9px; }
  .star-copy .episode-count { margin-top: 7px; font-size: 11px; }
  .download-strip { margin-top: 40px; padding: 22px; gap: 14px; flex-wrap: wrap; }
  .download-strip > img { width: 46px; height: 46px; }
  .download-strip h2 { font-size: 20px; }
  .download-strip p { font-size: 12px; }
  .download-strip .download-button { margin: 5px 0 0; width: 100%; }
  .site-footer { margin-top: 40px; padding-top: 30px; }
  .footer-main { grid-template-columns: 1fr auto; gap: 27px 30px; padding-bottom: 28px; }
  .footer-about { grid-column: 1 / -1; grid-row: 2; }
  .footer-about h2 { margin-bottom: 8px; }
  .footer-about p { max-width: 100%; }
  .footer-tagline { font-size: 12px; margin-top: 10px; }
  .footer-nav h2 { display: none; }
  .footer-bottom { display: block; font-size: 11px; padding-block: 17px; }
  .footer-bottom span:last-child { display: none; }
  .mobile-app-bar { position: fixed; z-index: 30; bottom: 0; left: 0; right: 0; display: flex; align-items: center; gap: 10px; padding: 11px 16px calc(11px + env(safe-area-inset-bottom)); min-height: 70px; background: #201a17; border-top: 1px solid #43351f; }
  .mobile-app-bar > img { width: 40px; height: 40px; flex-shrink: 0; }
  .mobile-app-bar p { font-size: 12px; line-height: 1.5; font-weight: 600; }
  .mobile-app-bar .download-button { margin-inline-start: auto; min-height: 34px; padding: 5px 21px; font-size: 14px; flex-shrink: 0; }
  .mobile-app-bar p { min-width: 0; max-width: 28ch; }
  [dir="rtl"] .poster-card h3 { font-size: 14px; }
  [dir="rtl"] .hero-copy h2 { font-size: 20px; }
  .phone-front, .phone-back { border-radius: 22px; border-width: 4px; }
  .phone-front { padding: 8px 5px; }
  .phone-notch { height: 8px; margin-bottom: 9px; }
  .phone-brand img { width: 18px; height: 18px; }
  .phone-section { margin: 9px 0 6px; }
  .phone-tiles { gap: 6px 4px; }
  .download-status { bottom: calc(88px + env(safe-area-inset-bottom)); font-size: 13px; padding: 13px 18px; }
  .app-main { padding-top: 29px; }
  .app-intro h1 { font-size: 26px; }
  .app-intro > p { font-size: 14px; line-height: 1.8; margin-top: 15px; }
  .app-intro .app-invitation { margin-top: 10px; }
  .app-showcase { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
  .app-artwork { max-width: 480px; }
  .app-download-panel { min-height: unset; padding: 0; background: transparent; width: 100%; }
  .app-download-panel > img, .app-download-panel h2, .app-download-panel p { display: none; }
  .app-download-panel .download-button { margin-top: 0; width: 238px; }
  .app-download-panel .download-caption { display: block; margin-top: 12px; }
  .app-closing { font-size: 13px; max-width: 38ch; margin: 24px auto 0; }
}
@media (max-width: 480px) {
  :root { --gutter: 16px; }
  .hero-slide { flex-basis: calc(100vw - 32px); min-height: 242px; }
  .hero-copy { padding: 17px 12px; }
  .hero-copy h2 { font-size: 20px; }
  .hero-description { -webkit-line-clamp: 2; }
  .poster-grid { gap: 18px 10px; }
  .catalog-section h2 { font-size: 21px; }
  .star-grid { grid-template-columns: 1fr; }
  .star-card > img { width: 104px; }
  .star-copy h3 { font-size: 16px; -webkit-line-clamp: 2; }
  .star-copy .tags { margin-top: 8px; }
  .star-copy .tag { font-size: 10px; }
  .star-description { display: -webkit-box; -webkit-line-clamp: 2; margin-top: 9px; font-size: 11px; }
  .download-strip { padding: 19px; }
  .download-strip h2 { font-size: 18px; }
  .app-intro h1 { font-size: 23px; }
}
@media (max-width: 350px) {
  .brand span { font-size: 19px; }
  .main-nav { gap: 15px; }
  .hero-poster { width: 40%; }
  .hero-copy h2 { font-size: 18px; }
  .hero-copy { padding: 14px 10px; }
  .mobile-app-bar { gap: 8px; padding-inline: 12px; }
  .mobile-app-bar p { font-size: 11px; }
  .mobile-app-bar .download-button { padding-inline: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
