/* Infinity TV: shared visual system for browsing and playback. */
#aurora-player {
  --ink: #080b14;
  --panel: #101522;
  --panel-raised: #171d2d;
  --line: #ffffff10;
  --muted: #929db6;
  --accent: #ac99ff;
  --blue: #79cfe1;
  --purple: #8972ee;
  background: radial-gradient(ellipse at 75% 0, #24203d66, transparent 55%), var(--ink);
  color: #f3f4fa;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
body.inifinity-player-page > #aurora-player { box-sizing: border-box; background: radial-gradient(ellipse at 75% 0, #24203d66, transparent 55%), #080b14 !important; }
#aurora-player * { scrollbar-width: thin; scrollbar-color: #343b50 transparent; }
#aurora-player button { background: #171d2d; border: 1px solid #ffffff14; color: #e6eaf5; border-radius: 12px; font-weight: 500; transition: background .18s, border-color .18s, color .18s, transform .18s; }
#aurora-player button:hover { background: #222a40; border-color: #ffffff26; }
#aurora-player button.active, #aurora-player .primary { background: #b4a1ff; border-color: #b4a1ff; color: #151024; font-weight: 700; }
#aurora-player .primary:hover { background: #c6b7ff; border-color: #c6b7ff; }
#aurora-player button:focus-visible, #aurora-player input:focus-visible { outline: 2px solid #b8a8ff; outline-offset: 3px; box-shadow: none; }
#aurora-player input { min-height: 44px; border: 1px solid #ffffff12; border-radius: 12px; background: #0c111d; color: #f3f4fa; padding: 12px 14px; }
#aurora-player input::placeholder { color: #8691aa; }
#aurora-player input:focus { border-color: #a792ff80; }
#aurora-player .notice { color: #e9c0c9; font-size: 13px; line-height: 1.6; }
#aurora-player svg.app-icon { display: inline-block; width: 24px; height: 24px; flex: 0 0 24px; vertical-align: middle; overflow: visible; }
#aurora-player button.with-app-icon { display: inline-flex; align-items: center; justify-content: center; gap: 9px; }

/* A compact navigation rail opens without moving the viewing area. */
body.inifinity-player-page > #aurora-player.has-rail { padding-left: 76px !important; }
#aurora-player header.app-rail { position: absolute; inset: 0 auto 0 0; z-index: 20; width: 76px; min-height: 0; padding: 18px 10px; display: flex; flex-direction: column; align-items: stretch; gap: 12px; border: 0; border-right: 1px solid #ffffff0b; background: #0c101bfa; overflow: hidden; transition: width .2s ease, box-shadow .2s ease; }
#aurora-player header.app-rail.expanded, #aurora-player header.app-rail:hover { width: 224px; box-shadow: 20px 0 60px #0008; }
#aurora-player header.app-rail .brand.brand-logo { position: relative; width: 54px; height: 52px; flex: 0 0 52px; min-width: 0; max-width: 100%; margin: 0 0 16px; overflow: hidden; cursor: pointer; }
#aurora-player header.app-rail .brand.brand-logo img { position: absolute; left: -14%; top: 50%; width: 128%; height: auto; max-width: none; transform: translateY(-50%); object-fit: contain; }
#aurora-player header.app-rail.expanded .brand.brand-logo, #aurora-player header.app-rail:hover .brand.brand-logo { width: 132px; margin-left: auto; margin-right: auto; }
#aurora-player header.app-rail.expanded .brand.brand-logo img, #aurora-player header.app-rail:hover .brand.brand-logo img { left: -5%; width: 110%; }
#aurora-player header.app-rail nav { order: 0; display: flex; flex-direction: column; flex-wrap: nowrap; flex: 0 0 auto; gap: 8px; width: 100%; }
#aurora-player header.app-rail nav button { position: relative; min-width: 0; min-height: 50px; padding: 12px 14px; display: flex; justify-content: flex-start; align-items: center; gap: 17px; border: 1px solid transparent; border-radius: 13px; text-align: left; white-space: nowrap; background: transparent; color: #8b98b2; }
#aurora-player header.app-rail nav button:hover { color: #eeeaff; background: #ffffff06; }
#aurora-player header.app-rail nav button.active { color: #c2afff; background: #a78aff18; border-color: #bca0ff15; box-shadow: none; }
#aurora-player header.app-rail nav button.active::before { content: ''; position: absolute; left: -11px; top: 15px; bottom: 15px; width: 3px; border-radius: 5px; background: #b6a0ff; }
#aurora-player header.app-rail svg.app-icon { width: 25px; height: 25px; flex: 0 0 25px; stroke-width: 1.5; }
#aurora-player .rail-label { display: none; font-size: 13px; font-weight: 500; letter-spacing: .01em; }
#aurora-player .app-rail.expanded .rail-label, #aurora-player .app-rail:hover .rail-label { display: inline; }
#aurora-player header.app-rail .profile-switch { order: 2; display: flex; align-items: center; justify-content: flex-start; gap: 14px; width: 100%; max-width: none; min-height: 49px; margin: auto 0 0; padding: 10px; flex-shrink: 0; border: 1px solid #ffffff0b; background: #ffffff04; white-space: nowrap; }
#aurora-player .avatar-image { display: block; width: 31px; height: 31px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
#aurora-player header.app-rail .rail-settings { order: 3; display: flex; justify-content: flex-start; align-items: center; min-height: 46px; padding: 10px 14px; flex-shrink: 0; background: transparent; border-color: transparent; color: #8b98b2; }
#aurora-player header.app-rail .rail-search { display: none; }

/* Editorial home, with artwork leading the visual hierarchy. */
#aurora-player .home-screen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; min-width: 0; gap: 30px; align-content: start; padding: 28px 32px 48px; background: transparent; }
#aurora-player .home-screen > * { grid-column: 1 / -1; min-width: 0; }
#aurora-player .home-hero { min-height: 420px; margin: 0; border: 1px solid #ffffff12; border-radius: 24px; background: linear-gradient(120deg, #221c3e, #131c2a); }
#aurora-player .home-hero-art { object-fit: cover; object-position: 70% 35%; opacity: .85; }
#aurora-player .home-hero::after { background: linear-gradient(90deg, #10111f 0%, #10111fe6 28%, #10111f40 75%), linear-gradient(0deg, #10111fbf, transparent 65%); }
#aurora-player .home-hero-content { padding: 44px; max-width: min(680px, 80%); }
#aurora-player .home-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid #ffffff1c; border-radius: 999px; background: #ffffff06; color: #d5c8ff; font-size: 10px; letter-spacing: .16em; }
#aurora-player .home-badge::before { content: ''; width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: #bda9ff; box-shadow: 0 0 14px #a992ff66; }
#aurora-player .home-hero h1 { margin: 22px 0 18px; font-size: clamp(30px, 3.4vw, 52px); line-height: 1.08; letter-spacing: -.045em; font-weight: 750; text-wrap: balance; }
#aurora-player .home-hero p { max-width: 490px; margin-bottom: 24px; color: #b6bfd1; font-size: 13px; line-height: 1.8; -webkit-line-clamp: 3; }
#aurora-player .home-hero .primary { min-height: 46px; padding: 12px 22px; border-radius: 12px; }
#aurora-player .hero-dots { position: absolute; right: 28px; bottom: 25px; z-index: 3; display: flex; gap: 7px; }
#aurora-player .hero-dots button { width: 6px; height: 6px; min-height: 0; padding: 0; border: 0; border-radius: 5px; background: #ffffff45; }
#aurora-player .hero-dots button.active { width: 24px; background: #c3b2ff; }
#aurora-player .home-shelf { margin: 0; }
#aurora-player .home-shelf-heading { gap: 12px; margin-bottom: 16px; }
#aurora-player .home-shelf h2 { font-size: 18px; line-height: 1.3; letter-spacing: -.025em; font-weight: 650; }
#aurora-player .home-see-all { margin-left: auto; padding: 6px 0 6px 12px; border: 0; background: transparent; color: #b5a7ed; font-size: 12px; }
#aurora-player .home-see-all:hover { background: transparent; color: #e3d9ff; }
#aurora-player .home-arrows { display: flex; gap: 6px; margin-left: auto; }
#aurora-player .home-see-all + .home-arrows { margin-left: 0; }
#aurora-player .home-arrows button { width: 30px; height: 30px; min-height: 0; padding: 0; border-radius: 50%; background: #ffffff05; border-color: #ffffff12; font-size: 20px; line-height: 1; }
#aurora-player .home-row { gap: 16px; padding: 3px 0 12px; }
#aurora-player .home-card { flex: 0 0 174px; border: 0; border-radius: 14px; background: transparent; }
#aurora-player .home-card:hover { transform: translateY(-4px); background: transparent; }
#aurora-player .home-card-art { height: auto; aspect-ratio: 2 / 3; border: 1px solid #ffffff0b; border-radius: 14px; background: #171c2c; }
#aurora-player .home-card-art img { background: #111622; object-fit: cover; }
#aurora-player .home-card strong { font-size: 12px; font-weight: 550; padding: 12px 2px 4px; }
#aurora-player .home-program { color: #8995af; font-size: 11px; }
#aurora-player .home-channel { flex-basis: 188px; padding: 14px; background: #101622; border: 1px solid #ffffff0c; border-radius: 15px; }
#aurora-player .home-channel:hover { background: #171e2d; border-color: #ab94ed42; }
#aurora-player .home-channel .home-card-art { height: 88px; aspect-ratio: auto; padding: 10px; border: 0; background: transparent; }
#aurora-player .home-channel .home-card-art img { background: transparent; object-fit: contain; }
#aurora-player .home-shelf:has(.home-empty) { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 20px; border: 1px solid #ffffff0b; border-radius: 18px; background: #ffffff02; }
#aurora-player .home-shelf:has(.home-empty) .home-shelf-heading { flex-shrink: 0; margin: 0; }
#aurora-player .home-shelf:has(.home-empty) .home-arrows { display: none; }
#aurora-player .home-shelf:has(.home-empty) .home-row { padding: 0; }
#aurora-player .home-shelf:has(.home-empty) h2 { font-size: 15px; }
#aurora-player .home-empty { margin: 0; color: #8f9bb2; font-size: 12px; line-height: 1.7; }
#aurora-player .home-resume-progress { width: 100%; height: 3px; border: 0; accent-color: var(--accent); }
#aurora-player .infinity-game { flex: 0 0 248px; padding: 18px; border: 1px solid #ffffff0d; border-radius: 16px; background: linear-gradient(135deg, #131b2a, #131724); text-align: center; }
#aurora-player .infinity-game-match { min-height: 64px; gap: 10px; }
#aurora-player .infinity-game-badge { width: 34px; height: 38px; flex: 0 0 34px; }
#aurora-player .infinity-game-names { font-size: 12px; line-height: 1.5; }
#aurora-player .infinity-game-names strong { font-weight: 550; }
#aurora-player .infinity-game-names span { color: #606e87; font-size: 10px; }
#aurora-player .infinity-game-time { display: inline-block; margin-top: 12px; padding: 4px 12px; border-radius: 7px; background: #ac99ff10; color: #c7b8ff; font-size: 13px; font-variant-numeric: tabular-nums; }
#aurora-player .infinity-game-channel { color: #8f9cb6; font-size: 11px; margin-top: 10px; }

/* Browsing panels share consistent spacing and typography. */
#aurora-player .tv-workspace { width: 100%; min-width: 0; padding: 22px; gap: 14px; background: transparent; grid-template-columns: 168px 248px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
#aurora-player .tv-categories, #aurora-player .tv-list-panel { gap: 12px; padding: 16px 12px; border: 1px solid #ffffff0b; border-radius: 18px; background: #101521; }
#aurora-player .tv-categories::before, #aurora-player .tv-list-panel::before { padding: 4px 4px 8px; color: #77849f; font-size: 10px; font-weight: 650; letter-spacing: .14em; }
#aurora-player .tv-categories::before { content: 'CATEGORIAS'; }
#aurora-player .tv-list-panel::before { content: 'ESCOLHA SEU CANAL'; }
#aurora-player .tv-category-list, #aurora-player .tv-content-list { flex: 1; min-height: 0; scrollbar-color: #30394b transparent; padding-right: 3px; }
#aurora-player .tv-categories > input { min-height: 40px; padding: 10px; font-size: 11px; border-radius: 10px; }
#aurora-player .tv-category { min-height: 42px; margin-bottom: 4px; padding: 10px; gap: 8px; background: transparent; border: 1px solid transparent; border-radius: 10px; color: #a1adc3; font-size: 11px; line-height: 1.4; }
#aurora-player .tv-category:hover { background: #ffffff05; color: #ece9ff; }
#aurora-player .tv-category.active { background: #a58aff12; border-color: #b8a4ff13; color: #d3c5ff; box-shadow: inset 2px 0 #ab92f2; }
#aurora-player .tv-category small { color: #6f7b94; font-size: 10px; font-variant-numeric: tabular-nums; }
#aurora-player .catalog-tools { display: flex; gap: 8px; flex-wrap: wrap; }
#aurora-player .catalog-tools input { flex: 1 1 130px; min-height: 40px; padding: 10px 12px; font-size: 12px; }
#aurora-player .catalog-tools button { min-height: 32px; padding: 7px 9px; font-size: 10px; white-space: nowrap; color: #a2aec6; background: #ffffff04; border-color: #ffffff0a; }
#aurora-player .tv-count { padding: 0 3px 2px; color: #74829c; font-size: 10px; letter-spacing: .025em; }
#aurora-player .tv-content-row { position: relative; gap: 2px; margin: 0 0 7px; border-radius: 12px; background: #151c2a; }
#aurora-player .tv-content-row:hover { background: #1b2334; }
#aurora-player .tv-open { min-height: 66px; padding: 10px 8px; gap: 10px; background: transparent; border: 1px solid transparent; border-radius: 12px; box-shadow: none; }
#aurora-player .tv-open:hover { background: transparent; border-color: transparent; }
#aurora-player .tv-open.active { background: #9b82ef10; border-color: #a48aef65; color: #eee7ff; }
#aurora-player .tv-number { min-width: 12px; color: #64718a; font-size: 10px; }
#aurora-player .tv-icon { width: 34px; height: 34px; padding: 2px; flex-shrink: 0; }
#aurora-player .tv-name { font-size: 12px; font-weight: 550; line-height: 1.45; }
#aurora-player .tv-star { width: 29px; min-width: 29px; padding: 5px; border: 0; border-radius: 10px; background: transparent; color: #8d7bb9; opacity: .65; }
#aurora-player .tv-star svg { width: 19px; height: 19px; }
#aurora-player .tv-content-row:hover .tv-star, #aurora-player .tv-star:focus-visible, #aurora-player .tv-star[aria-pressed='true'] { opacity: 1; color: #c6b4ff; }
#aurora-player .tv-more { align-self: stretch; min-height: 38px; flex-shrink: 0; padding: 8px; background: #ffffff04; border-color: #ffffff0c; font-size: 11px; color: #a0adc5; }
#aurora-player .catalog-workspace { grid-template-columns: 188px minmax(0, 1fr); }
#aurora-player .catalog-workspace > .tv-categories { grid-row: 1; grid-column: 1; }
#aurora-player .catalog-workspace > .tv-list-panel { grid-row: 1; grid-column: 2; padding: 20px; background: #10152188; }
#aurora-player .catalog-workspace > .tv-player-panel { display: none; }
#aurora-player .catalog-workspace .tv-list-panel::before { content: 'SEU CATÁLOGO'; }
#aurora-player .catalog-workspace .catalog-tools { display: flex; flex-wrap: nowrap; }
#aurora-player .catalog-workspace .catalog-tools input { min-height: 44px; }
#aurora-player .catalog-workspace .catalog-tools button { min-height: 44px; padding: 10px 14px; font-size: 11px; }
#aurora-player .catalog-workspace .tv-content-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); align-content: start; gap: 22px 16px; padding: 3px; }
#aurora-player .catalog-workspace .tv-content-row { display: block; min-width: 0; margin: 0; background: transparent; }
#aurora-player .catalog-workspace .tv-open { width: 100%; padding: 0; display: flex; flex-direction: column; align-items: stretch; gap: 11px; border: 0; background: transparent; }
#aurora-player .catalog-workspace .tv-open:hover { transform: translateY(-3px); }
#aurora-player .catalog-workspace .tv-number { display: none; }
#aurora-player .catalog-workspace .tv-icon { width: 100%; height: auto; padding: 0; aspect-ratio: 2 / 3; overflow: hidden; border: 1px solid #ffffff12; border-radius: 13px; background: #1b2233; font-size: 30px; }
#aurora-player .catalog-workspace .tv-icon img { width: 100%; height: 100%; object-fit: cover; }
#aurora-player .catalog-workspace .tv-name { padding: 0 2px 4px; font-size: 11px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#aurora-player .catalog-workspace .tv-star { position: absolute; top: 7px; right: 7px; width: 30px; height: 32px; border: 1px solid #ffffff25; border-radius: 9px; background: #101521d9; color: #ddd3ff; opacity: 1; backdrop-filter: blur(8px); }

/* A quiet viewing area, with controls governed by the existing timer. */
#aurora-player .tv-player-panel { min-width: 0; background: transparent; border: 0; border-radius: 18px; }
#aurora-player .tv-player-host { min-height: 100%; height: 100%; background: transparent; }
#aurora-player .tv-player-empty { min-height: 100%; border: 1px dashed #ffffff15; border-radius: 18px; background: radial-gradient(ellipse at center, #24203a55, transparent 70%); }
#aurora-player .tv-player-empty > span { width: 68px; height: 68px; padding: 0; display: grid; place-items: center; border: 1px solid #b8a0ff30; border-radius: 22px; background: #a88aff10; color: #bca6f3; font-size: 25px; }
#aurora-player .tv-player-empty h2 { font-size: 20px; letter-spacing: -.03em; font-weight: 600; margin-top: 24px; }
#aurora-player .tv-player-empty p { max-width: 250px; color: #7f8da8; font-size: 12px; line-height: 1.7; }
#aurora-player .tv-playing { min-height: 0; padding: 0; gap: 16px; align-items: stretch; }
#aurora-player .tv-playing-title { margin: 2px 2px 0; font-size: 18px; font-weight: 600; line-height: 1.45; letter-spacing: -.025em; }
#aurora-player .tv-playing > .tv-video-frame:not(:fullscreen) { width: 100% !important; max-width: 100% !important; max-height: none !important; margin: 0 !important; align-self: stretch !important; aspect-ratio: 16 / 9 !important; border: 1px solid #ffffff12; border-radius: 18px; }
#aurora-player .tv-video-frame .tv-video-controls { display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-height: 0; height: auto; padding: 28px 14px 10px; border: 0; background: linear-gradient(transparent, #050812ed); }
#aurora-player .tv-video-controls .tv-timeline { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; min-width: 0; min-height: 28px; width: 100%; padding: 0 3px; }
#aurora-player .tv-playback-time { white-space: nowrap; color: #e2e6f1; font-size: 11px; font-variant-numeric: tabular-nums; letter-spacing: .015em; }
#aurora-player .tv-video-frame .tv-video-controls input.tv-seek { flex: 1 1 auto; width: 100%; max-width: none; min-width: 24px; accent-color: #bcabff; }
#aurora-player .tv-playback-actions { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; min-height: 36px; width: 100%; }
#aurora-player .tv-video-controls button.with-app-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; min-width: 34px; min-height: 34px; height: 34px; padding: 6px; border-radius: 50%; }
#aurora-player .tv-video-controls .app-icon { width: 23px; height: 23px; flex-basis: 23px; }
#aurora-player .tv-video-controls .tv-toggle-play { background: #ffffff12; }
#aurora-player .tv-video-frame .tv-video-controls .tv-seek-back, #aurora-player .tv-video-frame .tv-video-controls .tv-seek-forward { width: auto; min-width: 32px; font-size: 11px; white-space: nowrap; }
#aurora-player .tv-video-frame .tv-video-controls input[aria-label='Volume'] { flex: 0 1 62px; width: 62px; max-width: 62px; min-width: 36px; }
#aurora-player .tv-video-frame .tv-video-controls .tv-pip { width: auto; min-width: 80px; padding: 5px 7px; font-size: 10px; white-space: nowrap; }
#aurora-player .tv-video-controls .tv-volume-value { display: none; }
#aurora-player .tv-video-controls button:disabled, #aurora-player .tv-video-controls input:disabled { opacity: .3; cursor: default; }
#aurora-player .tv-video-frame:fullscreen { border: 0; border-radius: 0; }
#aurora-player .tv-playing > .tv-video-frame:fullscreen { width: 100vw !important; max-width: none !important; height: 100dvh !important; max-height: none !important; }
#aurora-player .tv-epg { margin: 4px 0 0; padding: 20px; background: #101622; border: 1px solid #ffffff0c; border-radius: 16px; }
#aurora-player .tv-epg h3 { margin: 0 0 12px; color: #d5dbea; font-size: 13px; font-weight: 600; }
#aurora-player .tv-epg-row { gap: 12px; padding: 10px 0; }
#aurora-player .tv-epg-label { width: 48px; color: #ac97da; font-size: 10px; }
#aurora-player .tv-epg-time { color: #7f9cba; font-size: 11px; }
#aurora-player .tv-epg-row strong { color: #d0d8e7; font-size: 12px; font-weight: 500; }
#aurora-player .tv-epg-unavailable, #aurora-player .tv-epg-description { color: #77859f; font-size: 11px; }
#aurora-player .tv-playing.floating-player { position: fixed; inset: auto; z-index: 30; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(92vw, calc((88dvh - 100px) * 1.7778), 1280px); height: auto; max-height: 92dvh; min-height: 0; overflow: auto; gap: 15px; padding: 18px; border: 1px solid #ffffff20; border-radius: 22px; background: #0d121e; box-shadow: 0 25px 120px #000d, 0 0 0 100vmax #0008; }
#aurora-player .tv-playing.floating-player .tv-playing-title { padding-right: 44px; font-size: 17px; }
#aurora-player .floating-close { position: absolute; right: 26px; top: 26px; z-index: 8; width: 36px; min-height: 36px; padding: 0; border: 1px solid #ffffff30; border-radius: 50%; background: #0b101bd9; backdrop-filter: blur(8px); color: white; }

/* Account selection, sign-in, and dialogs use the same visual language. */
#aurora-player .login { width: min(440px, calc(100% - 36px)); padding: 36px; background: #111724e8; border: 1px solid #ffffff12; border-radius: 24px; box-shadow: 0 24px 100px #0005; }
#aurora-player .login > .brand.brand-logo { width: min(100%, 280px); height: 76px; margin: 0 auto 28px; }
#aurora-player .login h1 { font-size: 31px; line-height: 1.12; letter-spacing: -.045em; font-weight: 650; }
#aurora-player .login p { margin-bottom: 28px; color: #8e9ab2; font-size: 13px; line-height: 1.7; }
#aurora-player .login label { color: #c3ccdf; font-size: 12px; }
#aurora-player .login form { gap: 20px; }
#aurora-player .login input { min-height: 48px; }
#aurora-player .login .primary { min-height: 48px; }
#aurora-player .profiles-page { min-height: 100%; width: 100%; gap: 18px; padding: 48px 24px; background: radial-gradient(ellipse at 50% 15%, #54447b44, transparent 52%), radial-gradient(ellipse at 20% 80%, #24435b22, transparent 45%), #080c15; }
#aurora-player .profiles-page .brand.brand-logo { width: 230px; height: 66px; flex: none; transform: none; }
#aurora-player .profiles-page h1 { margin: 18px 0 0; font-size: clamp(28px, 4vw, 42px); font-weight: 550; letter-spacing: -.045em; }
#aurora-player .profiles-subtitle, #aurora-player .profiles-note { color: #8794ad; font-size: 12px; }
#aurora-player .profiles-grid { gap: 28px; margin: 24px 0 12px; }
#aurora-player .profile-card { width: 140px; }
#aurora-player .profile-choose { width: 100%; gap: 14px; padding: 0; border: 0; background: transparent; }
#aurora-player .profile-choose:hover { background: transparent; transform: translateY(-5px); }
#aurora-player .profile-avatar { width: 128px; height: 128px; display: grid; place-items: center; border: 2px solid #ffffff12; border-radius: 25px; background: linear-gradient(135deg, #3c2a5e, #193b4e); overflow: hidden; font-size: 66px; }
#aurora-player .profile-avatar .avatar-image { width: 100%; height: 100%; object-fit: cover; border-radius: 21px; }
#aurora-player .profile-choose:hover .profile-avatar { border-color: #b6a0ef; box-shadow: 0 10px 40px #a387e422; }
#aurora-player .profile-choose strong { font-size: 14px; font-weight: 500; color: #d4daeb; }
#aurora-player .profile-edit { padding: 7px 13px; border-color: transparent; color: #8190ac; font-size: 10px; background: transparent; }
#aurora-player .profile-add, #aurora-player .profile-signout { padding: 10px 16px; border-color: #ffffff10; background: #ffffff04; font-size: 12px; }
#aurora-player .profile-form { width: min(100%, 430px); gap: 18px; padding-top: 8px; }
#aurora-player .profile-form label { gap: 9px; color: #a6b2c9; font-size: 12px; }
#aurora-player .profile-preview { width: 110px; height: 110px; margin: 10px auto; }
#aurora-player .profile-preview .avatar-image { width: 100%; height: 100%; }
#aurora-player .profile-avatars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
#aurora-player .profile-avatars button { aspect-ratio: 1; padding: 5px; border-radius: 15px; overflow: hidden; }
#aurora-player .profile-avatars .avatar-image { width: 100%; height: 100%; border-radius: 10px; }
#aurora-player dialog.infinity-dialog { width: min(720px, 92vw); max-height: 85dvh; padding: 30px; overflow: auto; border: 1px solid #ffffff1a; border-radius: 22px; background: #111725; color: #edf0fa; box-shadow: 0 30px 120px #000a; color-scheme: dark; }
#aurora-player dialog.compact-dialog { width: min(420px, 92vw); }
#aurora-player dialog.infinity-dialog::backdrop { background: #02040bd9; backdrop-filter: blur(8px); }
#aurora-player .infinity-dialog h2 { margin: 0 0 24px; color: #eeeaff; font-size: 23px; font-weight: 600; letter-spacing: -.03em; }
#aurora-player .infinity-dialog > button { margin: 5px 8px 5px 0; }
#aurora-player .infinity-dialog > input { margin: 8px 0; }
#aurora-player .synopsis-body { display: flex; gap: 26px; line-height: 1.8; margin-bottom: 24px; font-size: 13px; color: #9daac1; }
#aurora-player .synopsis-cover { width: 160px; max-height: 250px; object-fit: cover; align-self: flex-start; border-radius: 14px; }
#aurora-player .synopsis-facts { color: #b7a5ef; font-size: 12px; }
#aurora-player .season-tabs { display: flex; gap: 8px; overflow: auto; margin-bottom: 18px; padding: 3px; }
#aurora-player .season-tabs button { white-space: nowrap; font-size: 12px; }
#aurora-player .episode-list { display: flex; flex-direction: column; gap: 8px; max-height: 48dvh; padding: 3px; overflow: auto; }
#aurora-player .episode-list button { min-height: 46px; text-align: left; font-size: 12px; }

@media (min-width: 1500px) {
  #aurora-player .home-screen { padding: 36px 48px 60px; gap: 36px; }
  #aurora-player .home-hero { min-height: 490px; }
  #aurora-player .home-hero-content { padding: 60px; }
  #aurora-player .tv-workspace { grid-template-columns: 208px 292px minmax(0, 1fr); padding: 28px; gap: 18px; }
  #aurora-player .catalog-workspace { grid-template-columns: 220px minmax(0, 1fr); }
  #aurora-player .catalog-workspace .tv-content-list { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
}
@media (max-width: 1100px) {
  #aurora-player .home-screen { padding: 22px 24px 40px; gap: 26px; }
  #aurora-player .home-hero { min-height: 380px; }
  #aurora-player .home-hero-content { padding: 34px; max-width: 80%; }
  #aurora-player .tv-workspace { grid-template-columns: 145px 224px minmax(0, 1fr); gap: 10px; padding: 14px; }
  #aurora-player .catalog-workspace { grid-template-columns: 170px minmax(0, 1fr); }
  #aurora-player .tv-categories, #aurora-player .tv-list-panel { padding: 14px 10px; }
  #aurora-player .tv-open { gap: 7px; padding: 9px 6px; }
  #aurora-player .tv-number { display: none; }
  #aurora-player .tv-video-frame .tv-video-controls .tv-pip { font-size: 9px; min-width: 76px; }
}
@media (max-width: 850px) {
  #aurora-player .tv-workspace:not(.catalog-workspace) { grid-template-columns: 160px minmax(0, 1fr); grid-template-rows: minmax(220px, 48%) minmax(0, 1fr); }
  #aurora-player .tv-workspace:not(.catalog-workspace) > .tv-player-panel { grid-column: 1 / -1; grid-row: 1; }
  #aurora-player .tv-workspace:not(.catalog-workspace) > .tv-categories { grid-column: 1; grid-row: 2; }
  #aurora-player .tv-workspace:not(.catalog-workspace) > .tv-list-panel { grid-column: 2; grid-row: 2; }
  #aurora-player .tv-player-host { min-height: 0; }
  #aurora-player .catalog-workspace { grid-template-columns: 148px minmax(0, 1fr); }
  #aurora-player .catalog-workspace .tv-content-list { grid-template-columns: repeat(auto-fill, minmax(115px, 1fr)); gap: 18px 12px; }
  #aurora-player .home-hero-content { max-width: 90%; padding: 30px; }
  #aurora-player .home-hero h1 { font-size: 34px; }
}
@media (max-width: 600px) {
  body.inifinity-player-page > #aurora-player.has-rail { padding-left: 56px !important; }
  #aurora-player header.app-rail { width: 56px; padding: 12px 5px; gap: 8px; }
  #aurora-player header.app-rail.expanded, #aurora-player header.app-rail:hover { width: 208px; }
  #aurora-player header.app-rail .brand.brand-logo { width: 44px; height: 45px; flex-basis: 45px; margin-bottom: 13px; }
  #aurora-player header.app-rail nav button { min-height: 44px; padding: 10px; gap: 16px; }
  #aurora-player header.app-rail svg.app-icon { width: 23px; height: 23px; flex-basis: 23px; }
  #aurora-player header.app-rail .profile-switch { padding: 6px; min-height: 43px; }
  #aurora-player header.app-rail .rail-settings { padding: 10px; }
  #aurora-player .home-screen { gap: 22px; padding: 12px 14px 30px; }
  #aurora-player .home-hero { min-height: 360px; border-radius: 18px; align-items: flex-end; }
  #aurora-player .home-hero-content { padding: 25px 20px 38px; max-width: 100%; }
  #aurora-player .home-hero h1 { font-size: 29px; }
  #aurora-player .home-hero p { font-size: 11px; -webkit-line-clamp: 2; }
  #aurora-player .home-hero::after { background: linear-gradient(0deg, #10111ff5 0%, #10111fc9 45%, #10111f35 100%); }
  #aurora-player .home-hero-art { object-position: 65% center; }
  #aurora-player .home-badge { font-size: 8px; padding: 7px 9px; }
  #aurora-player .hero-dots { bottom: 15px; right: 20px; }
  #aurora-player .home-shelf h2 { font-size: 15px; }
  #aurora-player .home-shelf:has(.home-empty) { grid-column: 1 / -1; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; }
  #aurora-player .home-card { flex-basis: 135px; }
  #aurora-player .home-channel { flex-basis: 155px; padding: 12px; }
  #aurora-player .home-row { gap: 12px; }
  #aurora-player .home-see-all { font-size: 10px; }
  #aurora-player .home-arrows { display: none; }
  #aurora-player .infinity-game { flex-basis: 210px; padding: 15px; }
  #aurora-player .tv-workspace { gap: 8px; padding: 8px; }
  #aurora-player .tv-workspace:not(.catalog-workspace) { grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: minmax(180px, 43%) minmax(0, 1fr); }
  #aurora-player .tv-categories, #aurora-player .tv-list-panel { padding: 10px 7px; border-radius: 13px; gap: 9px; }
  #aurora-player .tv-categories::before, #aurora-player .tv-list-panel::before { font-size: 8px; letter-spacing: .09em; padding: 3px 2px; }
  #aurora-player .tv-categories > input { font-size: 10px; min-height: 38px; padding: 8px; }
  #aurora-player .tv-category { padding: 9px 7px; font-size: 10px; min-height: 42px; }
  #aurora-player .tv-category small { font-size: 9px; }
  #aurora-player .tv-open { min-height: 62px; gap: 7px; padding: 8px 6px; }
  #aurora-player .tv-icon { width: 26px; height: 26px; }
  #aurora-player .tv-name { font-size: 11px; }
  #aurora-player .tv-star { min-width: 25px; width: 25px; }
  #aurora-player .tv-star svg { width: 17px; height: 17px; }
  #aurora-player .catalog-tools input { min-height: 38px; padding: 9px; font-size: 11px; }
  #aurora-player .catalog-tools button { font-size: 9px; }
  #aurora-player .catalog-workspace { grid-template-columns: minmax(0, 1fr); grid-template-rows: 116px minmax(0, 1fr); }
  #aurora-player .catalog-workspace > .tv-categories { grid-column: 1; grid-row: 1; }
  #aurora-player .catalog-workspace > .tv-categories::before { display: none; }
  #aurora-player .catalog-workspace .tv-category-list { display: flex; gap: 6px; padding: 0 0 3px; overflow-x: auto; overflow-y: hidden; }
  #aurora-player .catalog-workspace .tv-category { flex: 0 0 auto; width: auto; min-height: 36px; margin: 0; padding: 8px 10px; white-space: nowrap; }
  #aurora-player .catalog-workspace .tv-category svg { width: 16px; height: 16px; flex-basis: 16px; }
  #aurora-player .catalog-workspace > .tv-list-panel { grid-column: 1; grid-row: 2; padding: 10px 8px; }
  #aurora-player .catalog-workspace .catalog-tools { flex-wrap: wrap; }
  #aurora-player .catalog-workspace .catalog-tools input { flex-basis: 100%; }
  #aurora-player .catalog-workspace .catalog-tools button { min-height: 32px; font-size: 9px; padding: 7px; }
  #aurora-player .catalog-workspace .tv-content-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 8px; }
  #aurora-player .catalog-workspace .tv-icon { border-radius: 9px; }
  #aurora-player .catalog-workspace .tv-name { font-size: 10px; }
  #aurora-player .catalog-workspace .tv-star { min-width: 25px; width: 25px; height: 28px; top: 4px; right: 4px; }
  #aurora-player .tv-playing { gap: 12px; }
  #aurora-player .tv-playing-title { font-size: 15px; }
  #aurora-player .tv-playing > .tv-video-frame:not(:fullscreen) { border-radius: 13px; }
  #aurora-player .tv-video-frame .tv-video-controls { padding: 24px 6px 6px; gap: 1px; }
  #aurora-player .tv-playback-actions { gap: 1px; }
  #aurora-player .tv-video-controls button.with-app-icon { min-width: 30px; width: 30px; min-height: 32px; height: 32px; padding: 4px; }
  #aurora-player .tv-video-controls .app-icon { width: 21px; height: 21px; flex-basis: 21px; }
  #aurora-player .tv-playback-time { font-size: 10px; }
  #aurora-player .tv-video-frame .tv-video-controls .tv-pip { min-width: 74px; font-size: 9px; }
  #aurora-player .tv-epg { padding: 16px; border-radius: 13px; }
  #aurora-player .tv-playing.floating-player { width: 95vw; max-height: 94dvh; padding: 10px; border-radius: 16px; }
  #aurora-player .tv-playing.floating-player .tv-playing-title { font-size: 14px; }
  #aurora-player .floating-close { top: 18px; right: 18px; width: 32px; min-height: 32px; }
  #aurora-player .login { padding: 28px 24px; }
  #aurora-player .login h1 { font-size: 28px; }
  #aurora-player .profiles-grid { gap: 18px; }
  #aurora-player .profile-card { width: 108px; }
  #aurora-player .profile-avatar { width: 102px; height: 102px; border-radius: 21px; }
  #aurora-player .profile-choose strong { font-size: 12px; }
  #aurora-player dialog.infinity-dialog { padding: 22px; border-radius: 18px; }
  #aurora-player .infinity-dialog h2 { font-size: 19px; }
  #aurora-player .synopsis-body { gap: 15px; font-size: 11px; }
  #aurora-player .synopsis-cover { width: 95px; }
}
@media (max-height: 560px) {
  #aurora-player header.app-rail { padding-top: 6px; padding-bottom: 6px; gap: 5px; overflow-y: auto; }
  #aurora-player header.app-rail .brand.brand-logo { height: 38px; flex-basis: 38px; margin-bottom: 5px; }
  #aurora-player header.app-rail nav { gap: 3px; }
  #aurora-player header.app-rail nav button { min-height: 40px; padding-top: 8px; padding-bottom: 8px; }
  #aurora-player header.app-rail .profile-switch { min-height: 40px; }
  #aurora-player .profiles-page { padding-top: 20px; padding-bottom: 20px; }
}
@media (max-width: 850px) and (orientation: landscape) {
  #aurora-player .tv-workspace:not(.catalog-workspace) { grid-template-columns: 120px 190px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
  #aurora-player .tv-workspace:not(.catalog-workspace) > .tv-categories { grid-column: 1; grid-row: 1; }
  #aurora-player .tv-workspace:not(.catalog-workspace) > .tv-list-panel { grid-column: 2; grid-row: 1; }
  #aurora-player .tv-workspace:not(.catalog-workspace) > .tv-player-panel { grid-column: 3; grid-row: 1; }
}
@media (prefers-reduced-motion: reduce) {
  #aurora-player *, #aurora-player *::before, #aurora-player *::after { transition: none !important; scroll-behavior: auto !important; }
}
