:root {
  --bg: #08090c;
  --surface: #111319;
  --surface-2: #181b23;
  --text: #f7f7f4;
  --muted: #a7a8ad;
  --coral: #ff6b55;
  --coral-light: #ff8975;
  --green: #8bdeb0;
  --line: rgba(255, 255, 255, 0.12);
  --display: "Manrope", sans-serif;
  --body: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); min-width: 320px; overflow-x: hidden; }
body.locked { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }

/* Watch Together */
.watch-nav-link { border: 0; background: none; font-family: inherit; cursor: pointer; }
.watch-shell { position: fixed; inset: 0; z-index: 120; overflow: hidden; background: #08090c; opacity: 0; visibility: hidden; transition: opacity .22s ease,visibility .22s ease; }
.watch-shell.open { opacity: 1; visibility: visible; }
.modal-shell.watch-episode-selection { z-index: 138; }
.watch-episode-selection .detail-modal { border-color: rgba(255,101,79,.32); box-shadow: 0 35px 120px rgba(0,0,0,.82),0 0 0 1px rgba(255,101,79,.08); }
.watch-episode-selection #modalEyebrow { color: #ff8a76; }
.watch-lobby { height: 100%; padding: 52px clamp(28px,5vw,76px); overflow-y: auto; background: radial-gradient(circle at 82% 0,rgba(255,101,79,.12),transparent 27%),radial-gradient(circle at 5% 100%,rgba(113,61,103,.16),transparent 30%),#0b0c10; }
.watch-lobby-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.09); }
.watch-kicker { display: inline-flex; align-items: center; gap: 7px; color: #ff8876; font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.watch-kicker i { width: 6px; height: 6px; border-radius: 50%; background: #ff654f; box-shadow: 0 0 12px rgba(255,101,79,.8); }
.watch-lobby h1 { margin: 9px 0 8px; font-family: var(--display); font-size: clamp(38px,5vw,64px); letter-spacing: -.055em; }
.watch-lobby-header p { margin: 0; color: #858891; font-size: 12px; }
.watch-lobby-actions { display: flex; align-items: center; gap: 9px; }
.watch-online { min-height: 38px; padding: 0 13px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,.09); border-radius: 9px; background: #13151b; color: #8e919a; font-size: 10px; }
.watch-participant-icon { width: 19px; height: 19px; flex: 0 0 auto; fill: rgba(255,125,105,.16); stroke: #ff7d69; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.watch-online b { color: #dfe0e2; }
.watch-icon-button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.1); border-radius: 9px; background: #14161c; color: #a8abb3; font-size: 22px; cursor: pointer; }
.watch-icon-button:hover { border-color: rgba(255,101,79,.4); color: #fff; }
.watch-icon-button svg { width: 22px; height: 22px; }
.watch-lobby-heading { margin: 30px 0 16px; display: flex; justify-content: space-between; gap: 20px; color: #6f727b; font-size: 9px; }
.watch-lobby-heading div strong,.watch-lobby-heading div span { display: block; }
.watch-lobby-heading strong { color: #e8e8e9; font-family: var(--display); font-size: 19px; }
.watch-lobby-heading div span { margin-top: 4px; }
.watch-room-grid { display: grid; grid-template-columns: repeat(3,minmax(240px,1fr)); gap: 14px; }
.watch-room-card-wrap { position: relative; min-width: 0; min-height: 222px; }
.watch-room-card { width: 100%; height: 100%; min-height: 222px; padding: 20px; overflow: hidden; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; background: linear-gradient(145deg,#181a21,#111319); color: #fff; text-align: left; cursor: pointer; transition: transform .2s ease,border-color .2s ease,background .2s ease; }
.watch-room-card:hover { transform: translateY(-3px); border-color: rgba(255,101,79,.45); background: linear-gradient(145deg,#1e2028,#14161c); }
.watch-room-card-wrap.parental-blocked .watch-room-card { opacity: .58; cursor: not-allowed; filter: saturate(.55); }
.watch-room-card-wrap.parental-blocked .watch-room-card:hover { transform: none; border-color: rgba(255,255,255,.09); background: linear-gradient(145deg,#181a21,#111319); }
.watch-room-card-wrap.parental-blocked .watch-room-card-icon { background: rgba(255,101,79,.12); color: #ff806c; }
.watch-room-card-wrap.parental-blocked .watch-room-card-lock { color: #ff927f; }
.watch-room-moderate { position: absolute; z-index: 2; right: 14px; top: 56px; padding: 6px 9px; border: 1px solid rgba(255,101,79,.28); border-radius: 7px; background: rgba(47,15,17,.9); color: #ff8b79; font-size: 8px; font-weight: 800; cursor: pointer; }
.watch-room-moderate:hover { border-color: #ff6b55; background: #7e2b2d; color: #fff; }
.watch-room-moderate:disabled { opacity: .5; cursor: wait; }
.watch-room-card-top,.watch-room-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.watch-room-card-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,101,79,.11); color: #ff7d69; }
.watch-room-card-icon svg { width: 22px; height: 22px; }
.watch-room-card-lock { color: #777a84; font-size: 8px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 4px; }
.watch-room-card-lock svg { width: 14px; height: 14px; }
.watch-room-card h2 { margin: 22px 0 5px; overflow: hidden; font-family: var(--display); font-size: 23px; letter-spacing: -.035em; text-overflow: ellipsis; white-space: nowrap; }
.watch-room-card > small { color: #777a83; font-size: 9px; display: flex; align-items: center; gap: 5px; }
.watch-room-card-members { min-height: 34px; margin: 18px 0; display: flex; align-items: center; }
.watch-room-avatar { position: relative; width: 32px; height: 32px; margin-left: -7px; display: grid; place-items: center; border: 2px solid #171920; border-radius: 50%; background: #292c35; color: #ff8e7a; font-size: 9px; font-weight: 800; }
.watch-room-avatar:first-child { margin-left: 0; }
.watch-room-avatar img:not(.watch-avatar-decoration) { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.watch-room-more { margin-left: 7px; color: #747781; font-size: 9px; }
.watch-room-card-footer { margin-top: auto; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.07); color: #9699a2; font-size: 9px; }
.watch-room-card-footer > span { display: flex; align-items: center; gap: 6px; }
.watch-participant-count { color: #a8abb3; }
.watch-participant-count b { color: #ff8a76; font-weight: 800; }
.watch-room-card-footer .watch-participant-icon { width: 18px; height: 18px; }
.watch-room-card-footer .full { color: #ff8c78; }
.watch-loading,.watch-empty { min-height: 220px; grid-column: 1/-1; display: grid; place-items: center; border: 1px dashed rgba(255,255,255,.1); border-radius: 14px; color: #737680; font-size: 11px; }
.watch-empty div { text-align: center; }
.watch-empty strong { display: block; margin-bottom: 6px; color: #d8d9dc; font-size: 15px; }

.watch-room-view { height: 100%; min-height: 0; display: grid; grid-template-columns: minmax(0,1fr) 370px; overflow: hidden; background: #050608; }
.watch-call-pane { min-width: 0; min-height: 0; height: 100%; display: grid; grid-template-rows: 70px minmax(0,1fr) 78px; overflow: hidden; }
.watch-call-header { padding: 0 22px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.07); background: #090a0d; }
.watch-speaker { color: #90939d; }
.watch-speaker svg { width: 24px; height: 24px; }
.watch-call-header > div { min-width: 0; }
.watch-call-header strong,.watch-call-header small { display: block; }
.watch-call-header strong { overflow: hidden; color: #e8e8ea; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.watch-call-header small { margin-top: 3px; color: #676a73; font-size: 8px; }
.watch-live { margin-left: auto; padding: 5px 8px; border-radius: 999px; background: #db3344; color: #fff; font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.watch-mobile-members { display: none; }
.watch-call-stage { position: relative; min-height: 0; padding: 22px; overflow: auto; }
.watch-stage-copy { margin-bottom: 15px; }
.watch-stage-copy strong,.watch-stage-copy span { display: block; }
.watch-stage-copy strong { color: #d5d6d9; font-size: 13px; }
.watch-stage-copy span { margin-top: 3px; color: #63666f; font-size: 9px; }
.watch-video-wrap { position: relative; min-height: 330px; height: min(53vh,560px); overflow: hidden; border: 1px solid rgba(255,255,255,.08); border-radius: 13px; background: radial-gradient(circle at 50% 40%,#20242d,#111319 55%,#090a0d); }
.watch-video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; object-fit: contain; }
.watch-video-wrap:fullscreen,.watch-video-wrap:-webkit-full-screen { width: 100vw; height: 100vh; min-height: 100vh; max-height: none; border: 0; border-radius: 0; background: #000; }
.watch-video-wrap:fullscreen .watch-media-player,.watch-video-wrap:-webkit-full-screen .watch-media-player { width: 100%; height: 100%; }
.watch-video-wrap:not(.remote-active) #watchRemoteVideo { display: none; }
.watch-media-player { position: absolute; z-index: 3; inset: 0; display: flex; flex-direction: column; background: #030406; }
.watch-media-player.hidden { display: none; }
.watch-media-player .embedded-source-player { min-height: 0; flex: 1; }
.watch-native-stage { position: relative; min-height: 0; flex: 1; background: #000; overflow: hidden; }
.watch-native-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.watch-playback-status, .watch-playback-unlock { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%,-50%); }
.watch-playback-status { color: #eef0f5; padding: 10px 14px; border-radius: 9px; background: rgba(7,8,11,.78); font-size: 13px; text-align: center; }
.watch-playback-unlock { border: 1px solid rgba(255,255,255,.2); border-radius: 10px; padding: 11px 16px; color: #fff; background: rgba(22,24,31,.94); font: inherit; font-weight: 700; cursor: pointer; }
.watch-playback-unlock:hover { background: rgba(38,41,52,.98); }
.watch-playback-unlock.hidden, .watch-playback-status.hidden { display: none; }
.watch-player-toolbar { min-height: 58px; padding: 8px 12px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid rgba(255,255,255,.09); background: #101217; }
.watch-player-toolbar > div { min-width: 0; margin-right: auto; }
.watch-player-toolbar > div span,.watch-player-toolbar > div strong { display: block; }
.watch-player-toolbar > div span { color: #ff806c; font-size: 7px; font-weight: 900; letter-spacing: .12em; }
.watch-player-toolbar > div strong { max-width: 380px; margin-top: 3px; overflow: hidden; color: #e9e9eb; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.watch-player-toolbar label { display: grid; gap: 3px; color: #777b85; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.watch-player-toolbar select { min-width: 120px; height: 30px; padding: 0 8px; border: 1px solid rgba(255,255,255,.1); border-radius: 6px; outline: 0; background: #191c23; color: #e5e5e7; font-size: 9px; text-transform: none; }
.watch-player-toolbar select:disabled { opacity: .65; }
.watch-player-toolbar > small { padding: 5px 8px; border-radius: 999px; background: rgba(255,101,79,.1); color: #ff8b78; font-size: 7px; white-space: nowrap; }
.watch-video-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; padding: 30px; text-align: center; }
.watch-video-empty strong { color: #e6e6e8; font-family: var(--display); font-size: 20px; }
.watch-video-empty p { max-width: 360px; margin: 7px 0 0; color: #777a83; font-size: 10px; line-height: 1.55; }
.watch-screen-glyph { width: 64px; height: 64px; margin-bottom: 17px; display: grid; place-items: center; border: 1px solid rgba(255,101,79,.18); border-radius: 50%; background: rgba(255,101,79,.08); color: #ff7d69; }
.watch-screen-glyph svg { width: 36px; height: 36px; }
.watch-members-panel { margin-top: 12px; padding: 14px; border: 1px solid rgba(255,255,255,.07); border-radius: 12px; background: #0c0e12; }
.watch-members-title { display: flex; justify-content: space-between; color: #696c75; font-size: 8px; }
.watch-members-title strong { color: #afb1b7; font-size: 9px; }
.watch-members { margin-top: 12px; display: grid; grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); gap: 8px; }
.watch-member { min-width: 0; padding: 9px; display: grid; grid-template-columns: 34px minmax(0,1fr); align-items: center; gap: 9px; border: 1px solid rgba(255,255,255,.06); border-radius: 9px; background: #13151a; }
.watch-member-avatar,.watch-chat-avatar { position: relative; display: grid; place-items: center; border-radius: 50%; background: #292c35; color: #ff8b78; font-size: 10px; font-weight: 800; }
.watch-member-avatar { width: 34px; height: 34px; grid-row: 1/3; }
.watch-member-avatar img:not(.watch-avatar-decoration),.watch-chat-avatar img:not(.watch-avatar-decoration) { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.watch-avatar-decoration { position: absolute; z-index: 2; left: 50%; top: 50%; width: 138% !important; height: 138% !important; max-width: none; object-fit: contain; transform: translate(-50%,-50%); pointer-events: none; }
.watch-member strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.watch-username-effect { display: inline-block; max-width: 100%; overflow: hidden; vertical-align: bottom; text-overflow: ellipsis; white-space: nowrap; }
.watch-member-role { min-height: 17px; display: flex; align-items: center; color: #6f727b; font-size: 7px; }
.watch-member.is-host { border-color: rgba(245,184,75,.25); background: linear-gradient(135deg,rgba(245,184,75,.09),#13151a 62%); }
.watch-host-badge { width: fit-content; min-height: 17px; padding: 2px 6px; display: inline-flex; align-items: center; gap: 4px; border: 1px solid rgba(245,184,75,.3); border-radius: 999px; background: rgba(245,184,75,.11); color: #f5c66f; font-size: 7px; font-weight: 900; letter-spacing: .06em; line-height: 1; text-transform: uppercase; white-space: nowrap; }
.watch-host-badge svg { width: 13px; height: 13px; }
.watch-host-badge.compact { min-height: 15px; padding: 2px 5px; font-size: 6px; }
.watch-host-badge.compact svg { width: 12px; height: 12px; }
.watch-call-controls { position: relative; z-index: 5; min-width: 0; padding: 12px 20px; display: flex; align-items: center; justify-content: center; gap: 8px; overflow-x: auto; border-top: 1px solid rgba(255,255,255,.07); background: linear-gradient(180deg,#090a0d,#07080b); scrollbar-width: none; }
.watch-call-controls::-webkit-scrollbar { display: none; }
.watch-control { min-height: 42px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.09); border-radius: 10px; background: #15171d; color: #bbbcc2; font-size: 9px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.watch-control svg { width: 22px; height: 22px; }
.watch-control.primary { border-color: rgba(255,101,79,.25); background: rgba(255,101,79,.13); color: #ff8d79; }
.watch-control.active { background: #db3344; color: white; }
.watch-control.danger { color: #ff8170; }
.watch-hangup { width: 52px; height: 42px; flex: 0 0 52px; display: grid; place-items: center; border: 0; border-radius: 11px; background: #d83243; color: #fff; cursor: pointer; }
.watch-hangup svg { width: 26px; height: 26px; }

.watch-chat-pane { min-width: 0; min-height: 0; height: 100%; display: grid; grid-template-rows: 70px minmax(0,1fr) 74px; overflow: hidden; border-left: 1px solid rgba(255,255,255,.08); background: #12162d; }
.watch-chat-pane > header { padding: 0 18px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid rgba(255,255,255,.075); }
.watch-chat-pane > header strong { overflow: hidden; flex: 1; color: #f0f0f2; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.watch-chat-pane > header > span:last-child { color: #71758b; font-size: 8px; }
.watch-chat-symbol { color: #9fa3b4; }
.watch-chat-symbol svg { width: 23px; height: 23px; }
.watch-chat-feed { min-height: 0; padding: 18px 16px; overflow-y: auto; }
.watch-chat-empty { height: 100%; display: grid; place-content: center; color: #73778c; font-size: 10px; line-height: 1.6; text-align: center; }
.watch-chat-message { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 10px; margin: -6px -6px 12px; padding: 6px; border-radius: 9px; outline: 0; cursor: pointer; transition: background .16s ease,box-shadow .16s ease; }
.watch-chat-message:hover { background: rgba(255,255,255,.045); }
.watch-chat-message:focus-visible { background: rgba(255,101,79,.075); box-shadow: inset 0 0 0 1px rgba(255,125,105,.38); }
.watch-chat-message:hover .watch-chat-meta > strong { color: #ff9b88; }
.watch-chat-avatar { width: 38px; height: 38px; }
.watch-chat-body { min-width: 0; }
.watch-chat-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.watch-chat-meta strong { color: #f0f0f2; font-size: 10px; }
.watch-chat-meta strong .watch-username-effect { overflow: visible; }
.watch-chat-time { margin-left: 2px; color: #6e7285; font-size: 7px; }
.watch-message-delete { width: 26px; height: 26px; margin-left: auto; display: grid; place-items: center; border: 0; border-radius: 5px; background: transparent; color: #686d80; opacity: 0; cursor: pointer; transition: opacity .16s ease,background .16s ease,color .16s ease; }
.watch-chat-message:hover .watch-message-delete,.watch-message-delete:focus-visible { opacity: 1; }
.watch-message-delete:hover { background: rgba(255,101,79,.12); color: #ff806c; }
.watch-message-delete:disabled { opacity: .4; cursor: wait; }
.watch-message-delete svg { width: 17px; height: 17px; }
.watch-chat-badges { display: inline-flex; align-items: center; gap: 2px; }
.watch-chat-badge { width: 19px; height: 19px; display: inline-grid; place-items: center; color: #f0c25f; }
.watch-chat-badge[data-tone="blue"] { color: #78b2fa; }.watch-chat-badge[data-tone="pink"] { color: #f087b2; }.watch-chat-badge[data-tone="violet"] { color: #bd9cff; }
.watch-chat-badge[data-tone="green"] { color: #63d9a0; }
.watch-chat-badge .badge-symbol { width: 16px; height: 16px; }
.watch-chat-body p { margin: 4px 0 0; color: #d3d5df; font-size: 10px; line-height: 1.5; word-break: break-word; }
.watch-chat-form { position: relative; min-width: 0; height: 52px; margin: 10px 12px 12px; padding: 6px 6px 6px 13px; display: grid; grid-template-columns: minmax(0,1fr) 38px; align-items: center; gap: 7px; border: 1px solid rgba(255,255,255,.09); border-radius: 11px; background: #1a2241; }
.watch-chat-form textarea { width: 100%; height: 36px; max-height: 36px; padding: 7px 0 9px; resize: none; border: 0; outline: 0; overflow-y: auto; background: transparent; color: #f0f1f5; font: inherit; font-size: 10px; line-height: 20px; }
.watch-chat-form textarea::placeholder { color: #69708a; }
.watch-chat-form small { position: absolute; right: 52px; bottom: 3px; color: #5d6377; font-size: 6px; }
.watch-chat-form button { position: static; width: 36px; height: 36px; display: grid; place-items: center; align-self: center; border: 0; border-radius: 9px; background: #ff654f; color: #fff; cursor: pointer; box-shadow: 0 5px 14px rgba(255,101,79,.2); }
.watch-chat-form button svg { width: 19px; height: 19px; }

.watch-dialog { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: .2s; }
.watch-dialog.open { opacity: 1; visibility: visible; }
.watch-dialog-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.76); backdrop-filter: blur(8px); }
.watch-dialog-card { position: relative; z-index: 1; width: min(480px,calc(100vw - 28px)); padding: 30px; display: grid; gap: 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; background: #17191f; box-shadow: 0 30px 100px rgba(0,0,0,.7); }
.watch-dialog-card.compact { width: min(410px,calc(100vw - 28px)); }
.watch-dialog-card h2 { margin: -5px 0 2px; font-family: var(--display); font-size: 28px; letter-spacing: -.04em; }
.watch-dialog-card > p:not(.form-message) { color: #888b94; font-size: 11px; }
.watch-dialog-card label { display: grid; gap: 7px; color: #b4b6bc; font-size: 9px; }
.watch-dialog-card label > span { color: #666a73; }
.watch-dialog-card input,.watch-dialog-card select { width: 100%; height: 44px; padding: 0 12px; border: 1px solid rgba(255,255,255,.11); border-radius: 8px; outline: 0; background: #0e1014; color: #f0f0f1; }
.watch-dialog-card label small { color: #696c75; font-size: 8px; line-height: 1.45; }
.watch-create-card { width: min(720px,calc(100vw - 28px)); max-height: min(94vh,820px); padding: 0; gap: 0; overflow: hidden auto; border-color: rgba(255,255,255,.12); border-radius: 24px; background: radial-gradient(circle at 6% 0,rgba(255,101,79,.16),transparent 29%),radial-gradient(circle at 100% 68%,rgba(91,101,255,.09),transparent 31%),#14161c; box-shadow: 0 38px 120px rgba(0,0,0,.78),inset 0 1px rgba(255,255,255,.04); }
.watch-create-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg,transparent,rgba(255,125,105,.85),transparent); pointer-events: none; }
.watch-create-close { top: 22px; right: 22px; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.1); border-radius: 11px; background: rgba(10,11,15,.62); color: #a5a8b1; backdrop-filter: blur(10px); }
.watch-create-close:hover { border-color: rgba(255,101,79,.38); background: rgba(255,101,79,.12); color: #fff; }
.watch-create-heading { padding: 30px 76px 25px 30px; display: flex; align-items: center; gap: 17px; border-bottom: 1px solid rgba(255,255,255,.07); background: linear-gradient(110deg,rgba(255,255,255,.035),transparent 68%); }
.watch-create-symbol { width: 52px; height: 52px; flex: 0 0 52px; display: grid; place-items: center; border: 1px solid rgba(255,116,94,.3); border-radius: 16px; background: linear-gradient(145deg,rgba(255,101,79,.2),rgba(255,101,79,.06)); color: #ff806c; box-shadow: 0 12px 30px rgba(255,82,58,.12); }
.watch-create-symbol svg { width: 27px; height: 27px; }
.watch-create-heading .watch-kicker { margin: 0 0 8px; display: inline-flex; align-items: center; gap: 6px; color: #ff8a77; font-size: 9px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.watch-create-heading .watch-kicker svg { width: 13px; height: 13px; }
.watch-dialog-card.watch-create-card h2 { margin: 0; font-size: clamp(29px,4vw,38px); line-height: .95; }
.watch-create-heading p { margin: 9px 0 0; color: #858995; font-size: 11px; line-height: 1.5; }
.watch-create-fields { padding: 25px 30px 0; display: grid; gap: 19px; }
.watch-create-field { min-width: 0; display: grid; gap: 9px; margin: 0; padding: 0; border: 0; }
.watch-dialog-card .watch-field-label { display: flex; align-items: center; gap: 7px; color: #c6c8ce; font-size: 10px; font-weight: 750; }
.watch-field-label svg { width: 15px; height: 15px; color: #ff806c; }
.watch-field-label span { color: inherit !important; }
.watch-field-label em { margin-left: auto; color: #656a76; font-size: 8px; font-style: normal; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.watch-input-shell { position: relative; }
.watch-dialog-card.watch-create-card .watch-input-shell input { height: 50px; padding: 0 60px 0 15px; border-color: rgba(255,255,255,.095); border-radius: 12px; background: rgba(8,10,14,.72); font-size: 12px; transition: border-color .18s ease,box-shadow .18s ease,background .18s ease; }
.watch-dialog-card.watch-create-card .watch-input-shell input:focus { border-color: rgba(255,110,87,.62); background: #0c0e13; box-shadow: 0 0 0 4px rgba(255,101,79,.09); }
.watch-input-shell input::placeholder { color: #515560; }
.watch-field-hint { position: absolute; right: 14px; top: 50%; display: inline-flex; align-items: center; transform: translateY(-50%); color: #5f6470 !important; font-size: 8px; font-weight: 800; pointer-events: none; }
.watch-field-hint svg { width: 16px; height: 16px; }
.watch-create-row { display: grid; grid-template-columns: minmax(190px,.76fr) minmax(0,1.24fr); gap: 18px; }
.watch-number-shell { height: 50px; padding: 5px; display: grid; grid-template-columns: 38px minmax(0,1fr) 38px; align-items: center; border: 1px solid rgba(255,255,255,.095); border-radius: 12px; background: rgba(8,10,14,.72); }
.watch-number-shell:focus-within { border-color: rgba(255,110,87,.62); box-shadow: 0 0 0 4px rgba(255,101,79,.09); }
.watch-number-shell button { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 9px; background: rgba(255,255,255,.055); color: #b9bbc2; cursor: pointer; transition: background .16s ease,color .16s ease,transform .16s ease; }
.watch-number-shell button:hover { background: rgba(255,101,79,.17); color: #ff8a76; transform: scale(1.03); }
.watch-number-shell button svg { width: 17px; height: 17px; }
.watch-dialog-card.watch-create-card .watch-number-shell input { height: 38px; padding: 0 5px; border: 0; background: transparent; color: #fff; font-family: var(--display); font-size: 20px; font-weight: 800; text-align: center; appearance: textfield; }
.watch-number-shell input::-webkit-inner-spin-button,.watch-number-shell input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.watch-number-shell input:focus { outline: 0; }
.watch-create-field > small { color: #666b76; font-size: 8px; line-height: 1.45; }
.watch-language-field legend { margin-bottom: 9px; }
.watch-language-options { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.watch-dialog-card .watch-language-options label { display: block; cursor: pointer; }
.watch-language-options input { position: absolute; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }
.watch-language-options span { height: 50px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid rgba(255,255,255,.085); border-radius: 11px; background: rgba(8,10,14,.6); color: #858995 !important; font-size: 9px; font-weight: 900; transition: border-color .16s ease,background .16s ease,color .16s ease,transform .16s ease; }
.watch-language-options b { width: 21px; height: 21px; display: inline-block; border-radius: 50%; background-position: center; background-repeat: no-repeat; background-size: contain; font-size: 0; line-height: 1; filter: saturate(.72); transition: filter .16s ease,transform .16s ease; }
.watch-language-options label:nth-child(1) b { background-image: url("./assets/flags/fr.svg"); }
.watch-language-options label:nth-child(2) b { background-image: url("./assets/flags/en.svg"); }
.watch-language-options label:nth-child(3) b { background-image: url("./assets/flags/ja.svg"); }
.watch-language-options label:nth-child(4) b { background-image: url("./assets/flags/es.svg"); }
.watch-language-options label:nth-child(5) b { background-image: url("./assets/flags/de.svg"); }
.watch-language-options label:nth-child(6) b { background-image: url("./assets/flags/pt.svg"); }
.watch-language-options label:hover span { border-color: rgba(255,255,255,.18); color: #d9dadd !important; transform: translateY(-1px); }
.watch-language-options input:checked + span { border-color: rgba(255,110,87,.55); background: linear-gradient(145deg,rgba(255,101,79,.17),rgba(255,101,79,.07)); color: #fff !important; box-shadow: inset 0 0 0 1px rgba(255,101,79,.08); }
.watch-language-options input:checked + span b { filter: none; transform: scale(1.08); }
.watch-language-options input:focus-visible + span { outline: 2px solid #ff806c; outline-offset: 2px; }
.watch-create-note { margin: 18px 30px 0; padding: 12px 14px; display: flex; align-items: flex-start; gap: 10px; border: 1px solid rgba(116,128,161,.13); border-radius: 11px; background: rgba(100,113,151,.055); color: #777c88; font-size: 9px; line-height: 1.5; }
.watch-create-note svg { width: 16px; height: 16px; flex: 0 0 16px; color: #8a91a3; }
.watch-create-summary { margin: 18px 30px 0; padding: 13px 16px; display: flex; align-items: center; gap: 10px; border: 1px solid rgba(255,101,79,.13); border-radius: 12px; background: rgba(255,101,79,.045); }
.watch-create-summary > span { min-width: 0; display: flex; align-items: center; gap: 7px; color: #747985; }
.watch-create-summary > span + span { margin-left: auto; }
.watch-create-summary svg { width: 14px; height: 14px; color: #ff806c; }
.watch-create-summary b { overflow: hidden; color: #c7c9cf; font-size: 9px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.watch-create-card .form-message { min-height: 16px; margin: 8px 30px 0; }
.watch-create-submit { min-height: 52px; margin: 0 30px 30px; padding: 0 17px; display: grid; grid-template-columns: 20px 1fr 20px; align-items: center; border-radius: 12px; box-shadow: 0 14px 34px rgba(255,75,50,.18); }
.watch-create-submit svg { width: 19px; height: 19px; }
.watch-create-submit svg:last-child { justify-self: end; }
.watch-room-card-meta { display: flex; align-items: center; gap: 8px; }
.watch-room-language { padding: 5px 7px; display: inline-flex; align-items: center; gap: 4px; border: 1px solid rgba(255,255,255,.08); border-radius: 999px; background: rgba(255,255,255,.035); color: #9da0a9; font-size: 8px; font-weight: 800; letter-spacing: .05em; }
.watch-room-language b { font-size: 13px; line-height: 1; }
.watch-flag { width: 18px; height: 18px; display: inline-block; flex: 0 0 18px; border-radius: 50%; object-fit: contain; vertical-align: middle; }
.watch-room-language .watch-flag { width: 15px; height: 15px; flex-basis: 15px; }
.watch-browser { position: fixed; inset: 0; z-index: 135; padding: 38px clamp(24px,5vw,70px); overflow-y: auto; background: #0b0c10; opacity: 0; visibility: hidden; transition: .2s; }
.watch-browser.open { opacity: 1; visibility: visible; }
.watch-browser > header { display: flex; align-items: flex-start; justify-content: space-between; }
.watch-browser h2 { margin: 8px 0 0; font-family: var(--display); font-size: 36px; }
.watch-browser-tools { margin: 25px 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.watch-browser-tools input { width: min(430px,100%); height: 44px; padding: 0 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 9px; outline: 0; background: #15171d; color: #fff; }
.watch-browser-tools span { color: #777a82; font-size: 9px; }
.watch-browse-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); gap: 13px; }

@media (max-width: 980px) {
  .watch-room-grid { grid-template-columns: repeat(2,minmax(220px,1fr)); }
  .watch-room-view { grid-template-columns: minmax(0,1fr) 320px; }
}
@media (max-width: 760px) {
  .watch-lobby { padding: 28px 18px; }
  .watch-lobby-header { align-items: flex-start; flex-direction: column; }
  .watch-lobby-actions { width: 100%; flex-wrap: wrap; }
  .watch-lobby-actions .watch-online { margin-right: auto; }
  .watch-lobby-heading > span { display: none; }
  .watch-room-grid { grid-template-columns: 1fr; }
  .watch-message-delete { opacity: 1; }
  .watch-create-card { max-height: calc(100dvh - 20px); border-radius: 19px; }
  .watch-create-heading { padding: 23px 62px 20px 20px; }
  .watch-create-symbol { width: 44px; height: 44px; flex-basis: 44px; border-radius: 13px; }
  .watch-create-heading p { display: none; }
  .watch-create-fields { padding: 21px 20px 0; }
  .watch-create-row { grid-template-columns: 1fr; }
  .watch-language-options { grid-template-columns: repeat(3,1fr); }
  .watch-create-note,.watch-create-summary { margin-right: 20px; margin-left: 20px; }
  .watch-create-summary { align-items: flex-start; flex-direction: column; }
  .watch-create-summary > span + span { margin-left: 0; }
  .watch-create-card .form-message { margin-right: 20px; margin-left: 20px; }
  .watch-create-submit { margin-right: 20px; margin-bottom: 20px; margin-left: 20px; }
  .watch-player-toolbar { align-items: stretch; flex-wrap: wrap; }
  .watch-player-toolbar > div { width: 100%; }
  .watch-player-toolbar label { flex: 1; }
  .watch-player-toolbar select { width: 100%; min-width: 0; }
  .watch-room-view { grid-template-columns: 1fr; }
  .watch-call-pane { grid-template-rows: 62px minmax(0,1fr) 76px; }
  .watch-chat-pane { position: absolute; z-index: 4; inset: 0 0 0 14%; transform: translateX(100%); transition: transform .22s ease; }
  .watch-room-view.members-open .watch-chat-pane { transform: none; }
  .watch-mobile-members { width: auto; margin-left: auto; padding: 0 9px; display: block; font-size: 8px; }
  .watch-video-wrap { min-height: 260px; height: 48vh; }
  .watch-control span { display: none; }
  .watch-control { width: 42px; padding: 0; justify-content: center; }
}
a { color: inherit; text-decoration: none; }
svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lucide { width: 1em; height: 1em; flex: 0 0 auto; fill: none; stroke: currentColor; }

.topbar {
  position: fixed; inset: 0 0 auto; z-index: 40; height: 58px; padding: 0 4.6vw;
  display: flex; align-items: center; gap: 4.2vw; background: transparent;
  border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none;
  transition: background .25s, height .25s, backdrop-filter .25s, box-shadow .25s;
}
.topbar.scrolled { height: 58px; background: rgba(8, 9, 12, .28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: none; }
.brand { display: flex; align-items: center; }
.brand img { display: block; width: auto; height: 38px; object-fit: contain; }
nav { display: flex; align-items: center; gap: 2.25vw; }
.nav-link { position: relative; display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,.78); font-size: 13px; font-weight: 700; text-shadow: 0 1px 18px rgba(0,0,0,.55); transition: color .2s; white-space: nowrap; }
.nav-link svg { width: 15px; height: 15px; flex: 0 0 auto; opacity: .78; stroke-width: 2; transition: opacity .2s,transform .2s; }
.nav-link:hover svg,.nav-link.active svg { opacity: 1; transform: translateY(-1px); }
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link.active::after { content: ""; position: absolute; left: 50%; bottom: -12px; width: 4px; height: 4px; background: var(--coral); border-radius: 50%; box-shadow: 0 0 10px rgba(255,107,85,.7); }
.nav-button { background: none; border: 0; padding: 0; cursor: pointer; }
.list-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 5px; border-radius: 10px; background: var(--coral); color: white; font-size: 10px; font-weight: 700; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.discord-button { min-height: 35px; padding: 0 15px; border: 1px solid rgba(255,107,85,.28); border-radius: 3px; display: inline-flex; align-items: center; gap: 8px; background: rgba(255,107,85,.1); color: #fff; font-size: 12px; font-weight: 800; box-shadow: 0 10px 32px rgba(0,0,0,.18); transition: background .2s, border-color .2s, transform .2s; }
.discord-button:hover { background: rgba(255,107,85,.2); border-color: rgba(255,137,117,.55); transform: translateY(-1px); }
.discord-button svg { width: 17px; }
.icon-button { background: none; border: 0; padding: 7px; color: rgba(255,255,255,.86); filter: drop-shadow(0 1px 12px rgba(0,0,0,.45)); cursor: pointer; }
.profile { position: relative; width: 35px; height: 35px; padding: 0; overflow: visible; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; background: var(--coral); color: white; font-size: 12px; font-weight: 800; box-shadow: 0 10px 24px rgba(0,0,0,.22); cursor: pointer; }
.guest-login-button { min-height: 35px; padding: 0 13px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(10,11,15,.42); color: #f1f1f2; font: inherit; font-size: 10px; font-weight: 750; cursor: pointer; backdrop-filter: blur(12px); transition: border-color .18s ease,background .18s ease,transform .18s ease; }
.guest-login-button:hover { border-color: rgba(255,132,111,.48); background: rgba(255,105,82,.12); transform: translateY(-1px); }
.guest-login-button svg { width: 14px; height: 14px; color: #ff917d; }
.profile > img:not(.avatar-decoration) { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.streak-badge { position: absolute; z-index: 6; left: -7px; bottom: -7px; min-width: 24px; height: 21px; padding: 0 6px 0 4px; display: inline-flex; align-items: center; justify-content: center; gap: 1px; border: 2px solid #101116; border-radius: 999px; background: linear-gradient(145deg,#2c2e35,#15161a 72%); color: #fff; font-size: 10px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; box-shadow: 0 4px 12px rgba(244,81,44,.42); pointer-events: none; }
.streak-badge::before { content: ""; width: 13px; height: 15px; flex: 0 0 auto; background: url("./assets/streak-flame.png") center/contain no-repeat; filter: drop-shadow(0 1px 1px rgba(88,22,0,.45)); }
.streak-badge.hidden { display: none; }

.hero { height: max(720px, 92vh); min-height: 650px; position: relative; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; background: #101218; animation: hero-in 1.2s cubic-bezier(.2,.8,.2,1); transition: opacity .35s ease; }
.hero-image { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 28%; image-rendering: auto; backface-visibility: hidden; filter: saturate(1.08) contrast(1.045); transform: translateZ(0); transition: transform 8s ease, opacity .35s ease; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(8,9,12,.94) 0%,rgba(8,9,12,.62) 32%,rgba(8,9,12,.06) 70%),linear-gradient(0deg,var(--bg) 0%,rgba(8,9,12,.08) 35%,transparent 62%),linear-gradient(180deg,rgba(8,9,12,.22),transparent 24%); pointer-events: none; }
.hero-bg.changing { opacity: .28; }
.hero-bg.changing .hero-image { transform: scale(1.015); }
.hero.carousel-ready .hero-image { transform: scale(1.008); }
.hero-content > * { transition: opacity .28s ease, transform .35s ease; }
.hero-content.changing > * { opacity: 0; transform: translateY(9px); }
@keyframes hero-in { from { opacity: 0; } }
.hero-content { z-index: 1; width: min(610px, 86vw); margin-left: 7vw; padding-top: 3vh; }
.eyebrow { margin: 0 0 18px; text-transform: uppercase; font-size: 11px; letter-spacing: .24em; font-weight: 700; color: #d3d4d7; display: flex; align-items: center; gap: 10px; }
.eyebrow > span { display: inline-block; width: 22px; height: 1px; background: var(--coral); }
.hero h1 { margin: 0 0 22px; font-family: var(--display); font-size: clamp(48px, 5.3vw, 82px); line-height: .98; letter-spacing: -.055em; text-transform: uppercase; text-wrap: balance; }
.hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; color: #d4d4d7; font-size: 13px; }
.hero-meta b { color: var(--green); }
.quality { border: 1px solid rgba(255,255,255,.4); font-size: 10px; line-height: 18px; padding: 0 5px; border-radius: 3px; }
.hero-copy { max-width: 535px; margin: 20px 0 28px; color: #d1d1d4; font-size: 16px; line-height: 1.72; }
.hero-actions, .modal-actions { display: flex; gap: 12px; align-items: center; }
.button { min-height: 48px; padding: 0 23px; border: 1px solid transparent; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; font-size: 14px; cursor: pointer; transition: transform .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--text); color: #0a0b0e; }
.button.primary:hover { background: var(--coral-light); }
.button.primary svg { fill: none; stroke: currentColor; width: 18px; }
.button.glass { background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.16); backdrop-filter: blur(12px); }
.button.glass:hover { background: rgba(255,255,255,.2); }
.hero-index { position: absolute; right: 5vw; bottom: 92px; z-index: 2; display: flex; align-items: center; gap: 12px; font-size: 10px; letter-spacing: .1em; }
.hero-index i { width: 72px; height: 1px; background: rgba(255,255,255,.28); position: relative; }
.hero-index i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--hero-progress, 25%); background: var(--coral); transition: width .45s ease; }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 32px; transform: translateX(-50%); font-size: 9px; letter-spacing: .22em; color: #b2b2b5; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scroll-cue i { width: 1px; height: 25px; background: linear-gradient(var(--coral), transparent); }

.content { position: relative; z-index: 4; margin-top: -25px; padding-bottom: 80px; }
.status-bar { width: calc(100% - 10vw); margin: 0 auto 35px; display: flex; align-items: center; gap: 8px; color: #8e9098; font-size: 11px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #f0a33c; box-shadow: 0 0 0 4px rgba(240,163,60,.1); }
.status-bar.online .status-dot { background: var(--green); box-shadow: 0 0 0 4px rgba(139,222,176,.1); }
.row-section { margin: 0 0 52px; }
.section-heading { padding: 0 5vw; margin: 0 0 17px; display: flex; align-items: end; justify-content: space-between; }
.section-heading h2 { margin: 0; font-family: var(--display); letter-spacing: -.035em; font-size: clamp(22px, 2vw, 30px); }
.section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.row-controls { display: flex; gap: 8px; }
.row-controls button { width: 34px; height: 34px; border: 1px solid var(--line); background: transparent; border-radius: 50%; cursor: pointer; font-size: 16px; transition: background .2s; }
.row-controls button:hover { background: white; color: black; }
.cards-row { padding: 5px 5vw 18px; display: grid; grid-auto-flow: column; grid-auto-columns: clamp(190px, 17vw, 250px); gap: 13px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.cards-row::-webkit-scrollbar { display: none; }
.anime-card { scroll-snap-align: start; position: relative; aspect-ratio: 1.62 / 1; border: 0; border-radius: 5px; overflow: hidden; cursor: pointer; background: var(--surface-2); padding: 0; text-align: left; box-shadow: 0 12px 30px transparent; transition: transform .25s, box-shadow .25s; }
.anime-card:hover { transform: translateY(-5px) scale(1.018); box-shadow: 0 18px 40px rgba(0,0,0,.4); z-index: 2; }
.card-art { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .5s; }
.anime-card:hover .card-art { transform: scale(1.05); }
.card-art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 25%, rgba(7,8,11,.92) 100%); }
.card-art::after { content: attr(data-glyph); position: absolute; right: 12px; top: -20px; font-family: serif; font-size: 98px; opacity: .09; color: white; }
.card-info { position: absolute; inset: auto 13px 12px; }
.card-info strong { display: block; font-family: var(--display); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-info span { display: block; margin-top: 4px; color: #c7c7ca; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-badge { position: absolute; left: 10px; top: 10px; z-index: 2; padding: 4px 6px; border-radius: 2px; background: rgba(8,9,12,.72); backdrop-filter: blur(8px); font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.card-progress { position: absolute; z-index: 3; inset: auto 0 0; height: 3px; background: rgba(255,255,255,.2); }
.card-progress i { display: block; height: 100%; background: var(--coral); }
.rank-card { grid-auto-columns: unset; }
.rank-wrap { display: flex; align-items: end; min-width: clamp(235px, 21vw, 310px); height: 165px; position: relative; }
.rank-number { width: 42%; margin-right: -10px; font-family: var(--display); font-size: 150px; line-height: .73; font-weight: 800; letter-spacing: -.1em; color: var(--bg); -webkit-text-stroke: 2px #43454c; user-select: none; }
.rank-wrap .anime-card { width: 68%; height: 100%; aspect-ratio: auto; }

.discover { margin: 100px 5vw 30px; padding: 85px 7vw; border: 1px solid var(--line); background: radial-gradient(circle at 82% 20%, rgba(97,63,134,.22), transparent 34%), linear-gradient(120deg, #11131a, #0c0d11); position: relative; overflow: hidden; }
.discover::after { content: "影"; position: absolute; right: 8%; top: -45px; font-family: serif; font-size: 290px; opacity: .045; }
.discover h2 { position: relative; margin: 0; max-width: 600px; font-family: var(--display); font-size: clamp(40px, 5vw, 70px); line-height: 1; letter-spacing: -.06em; }
.discover > p:not(.eyebrow) { position: relative; color: var(--muted); max-width: 520px; line-height: 1.7; }
.button.outline { position: relative; margin-top: 18px; border-color: rgba(255,255,255,.35); background: transparent; }
.button.outline:hover { border-color: var(--coral); color: var(--coral-light); }

body > footer { min-height: 180px; padding: 45px 5vw; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 35px; color: #777a82; font-size: 12px; }
.footer-brand { color: #ddd; }
.footer-brand img { height: 38px; }
body > footer p { max-width: 480px; }
.footer-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.footer-social-button { min-height: 48px; padding: 8px 16px; display: inline-flex; align-items: center; gap: 9px; border: 1px solid rgba(255,255,255,.1); border-radius: 5px; color: #fff; white-space: nowrap; transition: transform .2s,border-color .2s,background .2s; }
.footer-social-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; }
.discord-mark { width: 22px; height: auto; display: block; flex: 0 0 auto; }
.footer-social-button .discord-mark { width: 19px; }
.footer-social-button span { font-size: 10px; font-weight: 700; }
.footer-about-button { min-height: 48px; padding: 8px 15px; display: inline-flex; align-items: center; gap: 9px; border: 1px solid rgba(255,255,255,.12); border-radius: 5px; background: rgba(255,255,255,.035); color: #d8d9dc; white-space: nowrap; transition: transform .2s,border-color .2s,background .2s,color .2s; }
.footer-about-button svg { width: 17px; height: 17px; }
.footer-about-button span { font-size: 10px; font-weight: 700; }
.footer-about-button:hover,.footer-about-button.active { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.075); color: #fff; transform: translateY(-2px); }
.footer-discord-button { background: #5865f2; }
.footer-discord-button:hover { border-color: rgba(255,255,255,.24); background: #6874f5; transform: translateY(-2px); }

.search-panel { position: fixed; inset: 0; z-index: 80; background: rgba(8,9,12,.97); backdrop-filter: blur(20px); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .25s; overflow-y: auto; }
.search-panel.open { opacity: 1; visibility: visible; transform: none; }
.search-shell { width: min(900px, 88vw); height: 120px; margin: 7vh auto 0; border-bottom: 1px solid rgba(255,255,255,.25); display: flex; align-items: center; gap: 22px; }
.search-shell > svg { width: 29px; }
.search-shell input { flex: 1; border: 0; outline: 0; background: none; color: white; font-family: var(--display); font-size: clamp(25px,4vw,48px); min-width: 0; }
.search-shell input::placeholder { color: #555860; }
kbd { border: 1px solid #494b51; border-radius: 4px; padding: 5px 7px; color: #777a82; font-size: 10px; }
.search-content { width: min(1180px, 88vw); margin: 55px auto; display: grid; grid-template-columns: 180px 1fr; gap: 34px; align-items: start; }
.search-close { display: none; position: fixed; top: max(22px,env(safe-area-inset-top)); right: max(24px,env(safe-area-inset-right)); z-index: 2; width: 44px; height: 44px; place-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; background: rgba(255,255,255,.06); color: white; font-size: 28px; line-height: 1; cursor: pointer; }
.search-close:hover { background: rgba(255,255,255,.12); }
.search-panel.collection-view .search-close { display: grid; }
.search-panel.collection-view .search-shell, .search-panel.collection-view .search-categories { display: none; }
.search-panel.collection-view .search-content { grid-template-columns: minmax(0,1fr); margin-top: max(8vh,72px); }
.search-categories { position: sticky; top: 36px; display: grid; gap: 7px; padding-top: 2px; }
.search-categories span { margin-bottom: 9px; color: #62656e; font-size: 10px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.search-categories button { width: 100%; min-height: 38px; padding: 0 13px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: #9698a0; text-align: left; font-size: 13px; font-weight: 700; cursor: pointer; transition: color .2s, background .2s, border-color .2s; }
.search-categories button:hover { color: white; background: rgba(255,255,255,.045); }
.search-categories button.active { color: white; border-color: rgba(255,107,85,.38); background: rgba(255,107,85,.12); }
.search-results-panel { min-width: 0; }
.search-heading { display: flex; justify-content: space-between; margin-bottom: 20px; color: #ddd; font-weight: 600; }
.search-heading small { color: #6e7077; font-weight: 400; }
.search-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.search-empty { grid-column: 1 / -1; min-height: 210px; display: grid; place-items: center; color: #6f7179; }

.community-mobile-nav { display: none; }
.community-page { position: fixed; inset: 0; z-index: 85; display: flex; flex-direction: column; background: radial-gradient(circle at 85% 5%,rgba(255,107,85,.08),transparent 28%),#0c0e13; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s ease,transform .25s ease; }
.community-page.open { opacity: 1; visibility: visible; transform: none; }
.community-topbar { min-height: 72px; display: flex; align-items: center; gap: 18px; padding: 0 max(24px,4vw); border-bottom: 1px solid var(--line); background: rgba(12,14,19,.86); backdrop-filter: blur(18px); }
.community-topbar .brand img { height: 37px; }
.community-topbar > div { display: grid; gap: 2px; padding-left: 18px; border-left: 1px solid var(--line); }
.community-topbar > div span { font-family: var(--display); font-size: 15px; font-weight: 800; }
.community-topbar > div small { color: #777b84; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.community-close { width: 38px; height: 38px; margin-left: auto; border: 1px solid var(--line); border-radius: 50%; background: #15171d; color: #dddfe4; font-size: 24px; cursor: pointer; }
.community-close:hover { border-color: rgba(255,107,85,.5); color: var(--coral-light); }
.community-layout { width: min(1320px,100%); min-height: 0; flex: 1; display: grid; grid-template-columns: 286px minmax(0,1fr); gap: 20px; margin: 0 auto; padding: 26px max(22px,3vw) 30px; }
.community-rooms { min-height: 0; display: flex; flex-direction: column; gap: 6px; padding: 10px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.02); }
.community-rooms-heading { padding: 12px 10px 16px; }
.community-rooms-heading span { display: block; color: #ececef; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.community-rooms-heading small { display: block; margin-top: 4px; color: #6f727b; font-size: 10px; }
.community-rooms button { min-height: 58px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 7px 9px; border: 0; border-radius: 8px; background: transparent; color: #b1b3ba; text-align: left; cursor: pointer; transition: background .18s,color .18s; }
.community-rooms button:hover { background: rgba(255,255,255,.04); color: white; }
.community-rooms button.active { background: rgba(255,107,85,.1); color: white; }
.community-rooms button > i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: #1e2129; color: #9296a0; font-style: normal; font-size: 15px; }
.community-rooms button.active > i { background: rgba(255,107,85,.15); color: var(--coral-light); }
.community-rooms button span { min-width: 0; }
.community-rooms button strong,.community-rooms button small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.community-rooms button strong { font-size: 11px; }
.community-rooms button small { margin-top: 3px; color: #71747d; font-size: 9px; }
.community-rooms button b { min-width: 22px; padding: 3px 6px; border-radius: 999px; background: rgba(255,255,255,.06); color: #858891; font-size: 9px; text-align: center; }
.community-rooms .moderation-entry { margin-top: auto; border: 1px solid rgba(255,107,85,.18); background: rgba(255,107,85,.055); }
.community-rooms .moderation-entry > i { color: var(--coral-light); }
.community-main { min-width: 0; min-height: 0; display: grid; grid-template-rows: auto minmax(0,1fr) auto; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #111319; }
.community-room-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 25px 28px 20px; border-bottom: 1px solid var(--line); }
.community-kicker { color: var(--coral-light); font-size: 9px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.community-room-header h1 { margin: 5px 0 4px; font-family: var(--display); font-size: clamp(24px,3vw,34px); letter-spacing: -.04em; }
.community-room-header p { margin: 0; color: #858890; font-size: 11px; }
.community-live { display: flex; align-items: center; gap: 7px; margin-top: 5px; color: #8c9099; font-size: 10px; }
.community-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(126,241,185,.7); }
.community-feed { min-height: 0; display: flex; flex-direction: column; gap: 16px; padding: 24px 28px; overflow-y: auto; scrollbar-width: thin; }
.community-loading,.community-empty { min-height: 100%; display: grid; place-items: center; color: #737680; font-size: 12px; text-align: center; }
.community-empty div { max-width: 320px; }
.community-empty strong { display: block; margin-bottom: 7px; color: #d7d8dc; font-family: var(--display); font-size: 18px; }
.community-message { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 12px; max-width: 760px; }
.community-message.mine { align-self: flex-end; grid-template-columns: minmax(0,1fr) 38px; }
.community-message.mine .community-message-avatar { grid-column: 2; }
.community-message.mine .community-message-body { grid-column: 1; grid-row: 1; align-items: flex-end; }
.community-message-avatar { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,107,85,.2); border-radius: 11px; background: rgba(255,107,85,.09); color: var(--coral-light); font-size: 11px; font-weight: 900; }
.community-message-body { min-width: 0; display: flex; align-items: flex-start; flex-direction: column; gap: 5px; }
.community-message-meta { display: flex; align-items: center; gap: 8px; color: #6f727b; font-size: 9px; }
.community-message-meta strong { color: #bfc1c7; font-size: 10px; }
.community-role { flex: 0 0 auto; display: inline-grid; place-items: center; color: white; font-size: 7px; font-weight: 900; line-height: 1; }
.community-role.creator { width: 21px; height: 21px; border: 1px solid rgba(235,186,86,.25); border-radius: 6px; background: rgba(235,186,86,.1); color: #ebba56; filter: drop-shadow(0 0 5px rgba(235,186,86,.14)); }
.community-role.moderator { color: #ff765f; filter: drop-shadow(0 2px 5px rgba(255,101,79,.28)); }
.community-delete { padding: 0; border: 0; background: transparent; color: #777b84; font: inherit; font-size: 9px; cursor: pointer; }
.community-delete:hover { color: #ff8d7a; }
.community-message p { max-width: min(680px,100%); margin: 0; padding: 10px 13px; border: 1px solid rgba(255,255,255,.065); border-radius: 4px 12px 12px 12px; background: #191c23; color: #d9dadf; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.community-message.mine p { border-color: rgba(255,107,85,.16); border-radius: 12px 4px 12px 12px; background: rgba(255,107,85,.075); }
.community-composer { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 17px 20px; border-top: 1px solid var(--line); background: #0e1015; }
.community-compose-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--coral); color: white; font-size: 12px; font-weight: 900; }
.community-compose-field { min-width: 0; border: 1px solid #2e323b; border-radius: 8px; background: #090b0f; transition: border-color .2s; }
.community-compose-field:focus-within { border-color: rgba(255,107,85,.65); }
.community-compose-field textarea { width: 100%; min-height: 42px; max-height: 110px; resize: vertical; padding: 10px 12px 4px; border: 0; outline: 0; background: transparent; color: white; font: inherit; font-size: 12px; line-height: 1.45; }
.community-compose-field > div { display: flex; justify-content: space-between; gap: 10px; padding: 0 12px 8px; color: #666a73; font-size: 9px; }
.community-compose-field b { color: inherit; }
.community-composer .button { min-height: 42px; padding: 0 18px; }
.community-composer .button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.community-composer.disabled textarea { cursor: pointer; }
.community-error { color: #ff927f !important; }
.moderation-panel { min-width: 0; min-height: 0; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; background: #111319; }
.moderation-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; padding: 28px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg,rgba(255,107,85,.07),transparent 55%); }
.moderation-header h1 { margin: 6px 0; font-family: var(--display); font-size: clamp(28px,3vw,40px); letter-spacing: -.045em; }
.moderation-header p { max-width: 600px; margin: 0; color: #858890; font-size: 11px; line-height: 1.55; }
.moderation-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; padding: 18px 28px 0; }
.moderation-summary > div { padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: #0d0f14; }
.moderation-summary span,.moderation-summary strong { display: block; }
.moderation-summary span { color: #747780; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.moderation-summary strong { margin-top: 6px; color: #f1f1f3; font-family: var(--display); font-size: 23px; }
.moderation-users { display: grid; grid-template-columns: repeat(auto-fill,minmax(250px,1fr)); gap: 11px; padding: 18px 28px 28px; }
.moderation-user { min-width: 0; display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 11px; background: #0d0f14; }
.moderation-avatar { width: 48px; height: 48px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(255,107,85,.18); border-radius: 13px; background: rgba(255,107,85,.1); color: var(--coral-light); font-weight: 900; }
.moderation-avatar img { width: 100%; height: 100%; object-fit: cover; }
.moderation-user-info { min-width: 0; }
.moderation-user-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.moderation-user-title strong { overflow: hidden; color: #e4e5e8; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.moderation-badge { padding: 3px 7px; border-radius: 999px; background: #20232a; color: #8f939c; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.moderation-badge.admin { min-width: 28px; width: 28px; min-height: 28px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(235,186,86,.25); border-radius: 6px; background: rgba(235,186,86,.1); color: #ebba56; filter: drop-shadow(0 0 5px rgba(235,186,86,.14)); }
.moderation-badge.moderator { min-width: 28px; width: 28px; min-height: 28px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: #ff765f; filter: drop-shadow(0 3px 7px rgba(255,101,79,.28)); }
.moderation-user-meta { margin: 5px 0 11px; color: #6f727b; font-size: 9px; }
.moderation-action { width: 100%; min-height: 32px; border: 1px solid #343841; border-radius: 7px; background: transparent; color: #c8c9ce; font-size: 9px; font-weight: 800; cursor: pointer; }
.moderation-action:hover { border-color: rgba(255,107,85,.5); color: white; }
.moderation-action.remove { color: #ff927f; }
.moderation-action:disabled { opacity: .45; cursor: not-allowed; }
.moderation-readonly { min-height: 32px; display: flex; align-items: center; color: #686b74; font-size: 8px; line-height: 1.4; }
.moderation-badge-actions { grid-column: 1 / -1; margin-top: 8px; display: flex; flex-wrap: wrap; gap: 5px; }
.moderation-badge-toggle { min-height: 25px; padding: 0 7px; border: 1px solid rgba(255,255,255,.09); border-radius: 5px; background: transparent; color: #747780; font-size: 7px; font-weight: 700; cursor: pointer; }
.moderation-badge-toggle:hover { border-color: rgba(255,101,79,.4); color: #d8d9dd; }
.moderation-badge-toggle.active { border-color: rgba(235,186,86,.32); background: rgba(235,186,86,.08); color: #ebba56; }
.moderation-badge-toggle:disabled { opacity: .45; cursor: wait; }

.modal-shell { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: .25s; }
.modal-shell.open { opacity: 1; visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.74); backdrop-filter: blur(8px); }
.public-profile-shell { z-index: 160; padding: 18px; }
.public-profile-card { position: relative; width: min(440px,100%); max-height: calc(100dvh - 36px); overflow-y: auto; border: 1px solid rgba(255,255,255,.1); border-radius: 20px; background: #17191f; box-shadow: 0 30px 100px rgba(0,0,0,.72); transform: translateY(16px) scale(.985); transition: transform .25s ease; }
.public-profile-shell.open .public-profile-card { transform: none; }
.public-profile-content { min-height: 420px; }
.public-profile-loading { min-height: 420px; display: grid; place-items: center; color: #74777f; font-size: 12px; }
.public-profile-hero { position: relative; height: 164px; }
.public-profile-banner { position: absolute; inset: 0 0 44px; overflow: hidden; background: radial-gradient(circle at 78% 10%,rgba(255,188,163,.3),transparent 33%),radial-gradient(circle at 18% 120%,rgba(125,74,255,.3),transparent 45%),linear-gradient(135deg,#a74354 0%,#713d67 48%,#383a66 100%); }
.public-profile-banner::after { content: "影"; position: absolute; right: 20px; top: -35px; color: rgba(255,255,255,.075); font-family: serif; font-size: 150px; line-height: 1; transform: rotate(7deg); }
.public-profile-banner.has-image::after { display: none; }
.public-profile-banner img { width: 100%; height: 100%; display: block; object-fit: cover; }
.public-profile-banner:is(button) { width: 100%; padding: 0; border: 0; color: inherit; text-align: inherit; }
.public-profile-avatar { position: absolute; z-index: 1; left: 28px; bottom: 0; width: 104px; height: 104px; isolation: isolate; filter: drop-shadow(0 8px 18px rgba(0,0,0,.35)); }
.public-profile-avatar:is(button) { padding: 0; border: 0; background: transparent; color: inherit; }
.public-profile-avatar > img:not(.public-profile-decoration),.public-profile-avatar > span:not(.streak-badge) { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; }
.public-profile-avatar > img:not(.public-profile-decoration) { border: 6px solid #17191f; object-fit: cover; }
.public-profile-avatar > span:not(.streak-badge) { display: grid; place-items: center; border: 6px solid #17191f; background: linear-gradient(145deg,#343741,#25272e); color: #ff9a87; font-family: var(--display); font-size: 34px; font-weight: 700; }
.public-profile-decoration { position: absolute; z-index: 2; left: 50%; top: 50%; width: 136%; height: 136%; max-width: none; object-fit: contain; transform: translate(-50%,-50%); transform-origin: center; pointer-events: none; }
.public-profile-identity { min-width: 0; margin-bottom: 24px; }
.public-profile-name-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.public-profile-like,.public-profile-like-count { flex: 0 0 auto; min-height: 36px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; background: rgba(255,255,255,.035); color: #8d9099; font: inherit; font-size: 9px; font-weight: 750; white-space: nowrap; }
.public-profile-like { cursor: pointer; transition: color .18s ease,border-color .18s ease,background .18s ease,transform .18s ease; }
.public-profile-like:hover { border-color: rgba(255,115,103,.42); color: #ff9a8b; transform: translateY(-1px); }
.public-profile-like.active { border-color: rgba(255,92,91,.5); background: rgba(255,72,78,.12); color: #ff7478; box-shadow: 0 0 18px rgba(255,65,77,.08); }
.public-profile-like:disabled { opacity: .58; cursor: wait; transform: none; }
.public-profile-like svg,.public-profile-like-count svg { width: 15px; height: 15px; }
.public-profile-like.active svg { fill: currentColor; }
.public-profile-like strong,.public-profile-like-count strong { color: currentColor; font-size: 10px; font-variant-numeric: tabular-nums; }
.public-profile-like-count { border-color: rgba(255,115,103,.18); color: #ff9183; }
.public-profile-name-editable { position: relative; min-width: 0; margin: -7px -10px; padding: 7px 10px; overflow: hidden; border-radius: 10px; }
.public-profile-identity h2 { display: flex; align-items: baseline; min-width: 0; margin: 0; color: #f5f5f6; font-family: var(--display); font-size: clamp(25px,6vw,34px); line-height: 1.1; letter-spacing: -.04em; white-space: nowrap; }
.public-profile-identity h2 span { overflow: hidden; text-overflow: ellipsis; }
.public-profile-identity h2 em { flex: 0 0 auto; color: #9497a1; font-family: inherit; font-size: .68em; font-style: normal; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.public-profile-biography { position: relative; margin: 16px 0 0; padding: 14px 15px 14px 39px; border: 1px solid rgba(255,255,255,.075); border-radius: 12px; background: rgba(255,255,255,.025); color: #bbbcc2; font-size: 11px; line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; }
.public-profile-biography svg { position: absolute; left: 14px; top: 15px; width: 15px; height: 15px; color: #ff8b77; }
.public-profile-biography.is-empty { color: #737680; font-style: italic; }
.public-profile-editable { cursor: pointer; outline: 0; }
.public-profile-editable::before { content: ""; position: absolute; z-index: 2; inset: 0; background: rgba(5,6,9,.62); opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.public-profile-edit-overlay { position: absolute; z-index: 3; inset: 0; display: flex; align-items: center; justify-content: center; gap: 7px; color: #fff; opacity: 0; pointer-events: none; transition: opacity .18s ease,transform .18s ease; transform: translateY(3px); }
.public-profile-edit-overlay svg { position: static; width: 16px; height: 16px; color: #fff; }
.public-profile-edit-overlay strong { font-size: 10px; font-weight: 800; letter-spacing: .02em; }
.public-profile-editable:hover::before,.public-profile-editable:focus-visible::before { opacity: 1; }
.public-profile-editable:hover .public-profile-edit-overlay,.public-profile-editable:focus-visible .public-profile-edit-overlay { opacity: 1; transform: none; }
.public-profile-editable:focus-visible { box-shadow: 0 0 0 2px #ff7d68; }
.public-profile-banner.public-profile-editable::before { z-index: 2; }
.public-profile-banner.public-profile-editable .public-profile-edit-overlay { z-index: 3; }
.public-profile-avatar .public-profile-edit-overlay { inset: 6px; border-radius: 50%; flex-direction: column; gap: 3px; }
.public-profile-avatar .public-profile-edit-overlay strong { font-size: 8px; }
.public-profile-avatar.public-profile-editable::before { inset: 6px; border-radius: 50%; }
.public-profile-avatar > .streak-badge { inset: auto auto 3px -4px; width: auto; height: 27px; padding: 0 8px 0 5px; border-width: 3px; font-size: 12px; }
.public-profile-avatar > .streak-badge::before { width: 17px; height: 19px; }
.public-profile-name-editable .public-profile-edit-overlay { justify-content: flex-end; padding-right: 11px; background: linear-gradient(90deg,transparent 22%,rgba(5,6,9,.42)); }
.public-profile-biography .public-profile-edit-overlay { padding-left: 12px; }
.public-profile-editable.is-editing { cursor: default; box-shadow: none; }
.public-profile-editable.is-editing::before,.public-profile-editable.is-editing .public-profile-edit-overlay { display: none; }
.public-profile-name-editable.is-editing { width: 100%; margin: -7px -10px 4px; overflow: visible; }
.public-profile-biography.is-editing { padding: 13px; }
.public-profile-inline-form { width: 100%; color: #dfe0e3; font-style: normal; }
.public-profile-inline-form > label { display: block; margin-bottom: 7px; color: #a2a5ad; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.public-profile-inline-field { height: 40px; padding: 0 11px; display: flex; align-items: center; gap: 5px; border: 1px solid rgba(255,255,255,.13); border-radius: 8px; background: #0b0d11; color: #ff806b; }
.public-profile-inline-field:focus-within,.public-profile-inline-form textarea:focus { border-color: rgba(255,125,104,.72); box-shadow: 0 0 0 3px rgba(255,101,79,.08); }
.public-profile-inline-field input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: #f3f3f4; font: inherit; font-size: 13px; font-weight: 700; }
.public-profile-inline-field small { color: #686b74; font-size: 8px; }
.public-profile-inline-form textarea { width: 100%; min-height: 96px; padding: 11px 12px; resize: vertical; border: 1px solid rgba(255,255,255,.13); border-radius: 8px; outline: 0; background: #0b0d11; color: #f0f0f2; font: inherit; font-size: 11px; line-height: 1.6; }
.public-profile-inline-meta { margin-top: 6px; display: flex; justify-content: space-between; gap: 10px; color: #686b74; font-size: 8px; }
.public-profile-inline-message { min-height: 14px; margin: 6px 0 0; color: #ff9a87; font-size: 8px; }
.public-profile-inline-actions { display: flex; justify-content: flex-end; gap: 7px; }
.public-profile-inline-actions button { min-height: 32px; padding: 0 11px; border: 1px solid rgba(255,255,255,.1); border-radius: 7px; background: #20232a; color: #b8bbc2; font-size: 9px; font-weight: 800; cursor: pointer; }
.public-profile-inline-actions button[type="submit"] { border-color: rgba(255,125,104,.38); background: rgba(255,101,79,.16); color: #ff9a87; }
.public-profile-inline-actions button:hover { border-color: rgba(255,139,120,.48); color: #fff; }
.public-profile-inline-actions button:disabled { opacity: .55; cursor: wait; }
.public-profile-effects-button { min-height: 34px; padding: 0 11px; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(255,137,113,.28); border-radius: 999px; background: rgba(255,101,79,.07); color: #ff9a87; font-size: 9px; font-weight: 800; letter-spacing: .03em; cursor: pointer; transition: border-color .18s ease,background .18s ease,transform .18s ease; }
.public-profile-effects-button:hover,.public-profile-effects-button[aria-expanded="true"] { border-color: rgba(255,137,113,.58); background: rgba(255,101,79,.14); transform: translateY(-1px); }
.public-profile-effects-button svg { width: 14px; height: 14px; }
.username-effects-panel { margin: -9px 0 22px; padding: 16px; border: 1px solid rgba(255,255,255,.09); border-radius: 13px; background: linear-gradient(145deg,rgba(29,31,38,.98),rgba(14,16,21,.98)); box-shadow: 0 16px 38px rgba(0,0,0,.25); }
.username-effects-panel[hidden] { display: none; }
.username-effects-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 13px; }
.username-effects-heading strong,.username-effects-heading small { display: block; }
.username-effects-heading strong { color: #f1f1f2; font-size: 12px; }
.username-effects-heading small { margin-top: 3px; color: #747780; font-size: 8px; }
.username-effects-heading button { width: 27px; height: 27px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.05); color: #8d9098; cursor: pointer; }
.username-effects-heading button:hover { color: #fff; }
.username-effects-heading svg { width: 13px; height: 13px; }
.username-effects-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.username-effect-choice { position: relative; min-width: 0; min-height: 62px; padding: 9px 10px; display: grid; grid-template-columns: 54px minmax(0,1fr); align-items: center; gap: 9px; border: 1px solid rgba(255,255,255,.075); border-radius: 9px; background: #111319; color: #c8c9cc; text-align: left; cursor: pointer; transition: border-color .18s ease,background .18s ease,transform .18s ease; }
.username-effect-choice:first-child { grid-column: 1 / -1; }
.username-effect-choice:hover { border-color: rgba(255,139,120,.35); background: #16181e; transform: translateY(-1px); }
.username-effect-choice.active { border-color: rgba(255,139,120,.48); background: rgba(255,101,79,.08); }
.username-effect-choice.creator { grid-column: 1 / -1; border-color: rgba(246,196,91,.3); background: radial-gradient(circle at 12% 20%,rgba(255,203,92,.11),transparent 34%),linear-gradient(135deg,rgba(114,72,190,.13),rgba(255,132,82,.07)); }
.username-effect-choice.creator.active { border-color: rgba(246,196,91,.56); box-shadow: inset 0 0 22px rgba(216,156,255,.08); }
.username-effect-choice:disabled { opacity: .58; cursor: wait; transform: none; }
.username-effect-choice > span:nth-child(2) { min-width: 0; }
.username-effect-choice strong,.username-effect-choice small { display: block; }
.username-effect-choice strong { color: #e7e7e9; font-size: 9px; }
.username-effect-choice small { margin-top: 3px; overflow: hidden; color: #686b73; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.username-effect-choice > svg { position: absolute; right: 7px; top: 7px; width: 11px; height: 11px; color: #ff9b88; }
.username-effect-sample { overflow: visible!important; color: #f4f4f5; font-family: var(--display); font-size: 17px; font-weight: 800; letter-spacing: -.04em; text-align: center; }
.username-effects-message { min-height: 12px; margin: 9px 1px -3px; color: #ff9a87; font-size: 8px; }
.username-effect-code { margin-top: 12px; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.075); }
.username-effect-code > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.username-effect-code strong { display: inline-flex; align-items: center; gap: 6px; color: #d8dae0; font-size: 9px; }
.username-effect-code strong svg { width: 13px; height: 13px; color: #ff9c63; }
.username-effect-code small { color: #686b73; font-size: 7px; }
.username-effect-code-row { margin-top: 9px; display: flex; gap: 7px; }
.username-effect-code-row input { min-width: 0; height: 36px; flex: 1; padding: 0 11px; border: 1px solid rgba(255,255,255,.1); border-radius: 7px; outline: 0; background: #0b0d11; color: #ececef; font-size: 10px; text-transform: uppercase; }
.username-effect-code-row input:focus { border-color: rgba(255,128,70,.58); box-shadow: 0 0 0 3px rgba(255,107,45,.07); }
.username-effect-code-row button { min-height: 36px; padding: 0 12px; border: 1px solid rgba(255,128,70,.34); border-radius: 7px; background: rgba(255,103,48,.1); color: #ffad72; font-size: 8px; font-weight: 800; cursor: pointer; }
.username-effect-code-row button:hover { background: rgba(255,103,48,.18); }
.username-effect-code-row button:disabled { opacity: .55; cursor: wait; }
.username-effect-code p { min-height: 11px; margin: 6px 1px 0; color: #ff947d; font-size: 8px; }
.username-effect-unlocked { margin-top: 12px; padding: 10px 11px; display: flex; align-items: center; gap: 7px; border: 1px solid rgba(255,138,71,.2); border-radius: 8px; background: rgba(255,105,45,.055); color: #d9a679; font-size: 8px; font-weight: 700; }
.username-effect-unlocked svg { width: 13px; height: 13px; color: #ff914d; }
.username-creator-effect-card { position: relative; min-height: 76px; padding: 12px 38px 12px 13px; display: grid; grid-template-columns: 72px minmax(0,1fr); align-items: center; gap: 13px; overflow: hidden; border: 1px solid rgba(246,196,91,.3); border-radius: 11px; background: radial-gradient(circle at 10% 20%,rgba(255,203,92,.12),transparent 35%),linear-gradient(135deg,rgba(114,72,190,.13),rgba(255,132,82,.08)); }
.username-creator-effect-card::after { content: ""; position: absolute; inset: -100% auto -100% -35%; width: 22%; background: linear-gradient(90deg,transparent,rgba(255,255,255,.18),transparent); transform: rotate(18deg); animation: creator-card-shine 3.4s ease-in-out infinite; }
.username-creator-effect-card > span:nth-child(2) { min-width: 0; }
.username-creator-effect-card strong,.username-creator-effect-card small { display: block; }
.username-creator-effect-card strong { color: #f2cf79; font-size: 10px; }
.username-creator-effect-card strong svg { width: 12px; height: 12px; vertical-align: -2px; }
.username-creator-effect-card small { margin-top: 4px; color: #7f818a; font-size: 8px; line-height: 1.45; }
.username-creator-effect-card > svg { position: absolute; right: 13px; top: 50%; width: 17px; height: 17px; color: #d6a8ff; transform: translateY(-50%); animation: creator-sparkle 1.8s ease-in-out infinite; }
[data-username-effect="glow"] { color: #ffb09f!important; text-shadow: 0 0 5px rgba(255,91,67,.8),0 0 17px rgba(255,75,51,.55); animation: username-glow 2.1s ease-in-out infinite; }
[data-username-effect="aurora"] { color: transparent!important; background: linear-gradient(90deg,#71e7ff,#b993ff,#ff86b8,#ffd479,#71e7ff); background-size: 240% 100%; -webkit-background-clip: text; background-clip: text; animation: username-aurora 4s linear infinite; }
[data-username-effect="flame"] { color: transparent!important; background: linear-gradient(180deg,#fff4b0 5%,#ffb13b 43%,#ff563f 78%,#dc244d); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 7px rgba(255,75,35,.52)); animation: username-flame 1.35s ease-in-out infinite alternate; }
[data-username-effect="glitch"] { color: #f5f5f6!important; text-shadow: 2px 0 #ff476f,-2px 0 #55dfff; animation: username-glitch 2.8s steps(1,end) infinite; }
[data-username-effect="ice"] { color: transparent!important; background: linear-gradient(105deg,#f4fdff,#80e8ff,#6a9dff,#e8fbff); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 6px rgba(94,211,255,.52)); animation: username-ice 3.2s ease-in-out infinite; }
[data-username-effect="sakura"] { position: relative; isolation: isolate; overflow: clip!important; color: transparent!important; background: linear-gradient(90deg,#ffd4e5,#ff8fc1,#f6b4ff,#ffd4e5); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 5px rgba(255,126,184,.38)); animation: username-sakura 3.8s ease-in-out infinite; }
[data-username-effect="sakura"]::before,[data-username-effect="sakura"]::after { content: "✿"; position: absolute; z-index: 2; top: -10px; left: 8%; color: #ffc2dc; background: none; -webkit-background-clip: border-box; background-clip: border-box; font-family: serif; font-size: 8px; line-height: 1; opacity: 0; pointer-events: none; filter: drop-shadow(0 0 2px rgba(255,137,187,.45)); animation: sakura-petals-fall 3.2s linear infinite; }
[data-username-effect="sakura"]::before { text-shadow: 34px -7px #ff91bf,72px 3px #ffd2e5,112px -4px #eea7dc; }
[data-username-effect="sakura"]::after { left: 22%; font-size: 7px; color: #ffe0ed; text-shadow: 43px 4px #f69cca,91px -6px #ffc1db,136px 2px #e8a7dc; animation-delay: -1.65s; animation-duration: 3.7s; }
[data-username-effect="electric"] { color: #c8f5ff!important; text-shadow: 0 0 4px #52d9ff,0 0 12px rgba(44,128,255,.75); animation: username-electric 1.7s steps(1,end) infinite; }
[data-username-effect="cosmic"] { color: transparent!important; background: linear-gradient(90deg,#64e9ff,#8e70ff,#ff69ca,#ffbd61,#64e9ff); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 7px rgba(143,91,255,.46)); animation: username-cosmic 5.5s linear infinite; }
[data-username-effect="matrix"] { color: #8cff9e!important; text-shadow: 0 0 5px rgba(64,255,105,.72); animation: username-matrix 2.3s steps(1,end) infinite; }
[data-username-effect="halloween"] { position: relative; isolation: isolate; overflow: visible!important; color: transparent!important; background: linear-gradient(90deg,#ffb13b,#ff642f,#b66cff,#ff8a35,#ffe082); background-size: 280% 100%; -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 6px rgba(255,91,35,.58)); animation: username-halloween 3.6s linear infinite,username-halloween-flicker 2.4s steps(1,end) infinite; }
[data-username-effect="halloween"]::before,[data-username-effect="halloween"]::after { content: "🎃"; position: absolute; z-index: 3; top: -.72em; left: 9%; color: initial; background: none; -webkit-background-clip: border-box; background-clip: border-box; font-family: "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif; font-size: clamp(7px,.36em,13px); line-height: 1; opacity: 0; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)) drop-shadow(0 0 4px rgba(255,112,30,.55)); animation: username-pumpkin-pop 3s ease-in-out infinite; }
[data-username-effect="halloween"]::after { top: auto; right: -1.05em; bottom: -.32em; left: auto; font-size: clamp(7px,.3em,11px); animation-delay: -1.45s; animation-duration: 3.6s; }
[data-username-effect="creator"] { color: transparent!important; background: linear-gradient(90deg,#fff2ad,#ffbd54,#d89cff,#fff0a1,#ffbd54); background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 7px rgba(239,180,79,.42)); animation: username-creator 3.1s linear infinite,username-creator-pulse 1.8s ease-in-out infinite alternate; }
[data-username-effect="affiliate"] { color: transparent!important; background: linear-gradient(90deg,#72f1bd,#58cfff,#cba2ff,#ffe07b,#72f1bd); background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 7px rgba(80,220,190,.45)); animation: username-aurora 4.2s linear infinite,username-creator-pulse 2s ease-in-out infinite alternate; }
[data-username-effect="emperor"] { position: relative; isolation: isolate; overflow: visible!important; color: transparent!important; background: linear-gradient(100deg,#fff1a8 0%,#c9932d 23%,#f8d878 44%,#7e64d9 68%,#f6cf67 100%); background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 1px 1px rgba(20,11,35,.9)) drop-shadow(0 0 6px rgba(223,178,74,.52)); animation: username-emperor-gold 4.6s linear infinite,username-emperor-aura 2.2s ease-in-out infinite alternate; }
[data-username-effect="emperor"]::before { content: "♛"; position: absolute; z-index: 4; left: 50%; top: -.92em; color: #f3ca62; background: none; -webkit-background-clip: border-box; background-clip: border-box; font-family: Georgia,"Times New Roman",serif; font-size: clamp(12px,.58em,22px); line-height: 1; text-shadow: 0 1px 0 #6c4310,0 0 5px rgba(255,210,92,.82),0 0 12px rgba(116,76,199,.65); pointer-events: none; transform: translateX(-50%) rotate(-2deg); animation: username-emperor-crown 2.8s ease-in-out infinite; }
[data-username-effect="emperor"]::after { content: "✦"; position: absolute; z-index: 5; left: calc(50% + .52em); top: -.78em; color: #fff0ae; background: none; -webkit-background-clip: border-box; background-clip: border-box; font-size: clamp(5px,.22em,9px); line-height: 1; text-shadow: 0 0 5px #ffd86e; pointer-events: none; animation: username-emperor-spark 1.7s ease-in-out infinite; }
[data-username-effect="blueyyyy"] { position: relative; isolation: isolate; overflow: visible!important; color: transparent!important; background: linear-gradient(95deg,#b8f2ff 0%,#59c7ff 22%,#2689ff 48%,#0a5ee7 72%,#78d9ff 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 5px rgba(35,137,255,.72)); animation: username-blueyyyy-rush 3s linear infinite,username-blueyyyy-boost 1.4s ease-in-out infinite alternate; }
[data-username-effect="blueyyyy"]::before,[data-username-effect="blueyyyy"]::after { content: ""; position: absolute; z-index: 3; right: calc(100% + .08em); top: 50%; width: .68em; height: .42em; pointer-events: none; background: linear-gradient(270deg,#ffd25a 0%,#ff7a18 42%,#ed2f1e 76%,rgba(183,20,17,0) 100%); border-radius: 80% 35% 35% 80%; clip-path: polygon(100% 24%,58% 4%,0 25%,24% 50%,0 76%,62% 96%,100% 72%); filter: drop-shadow(0 0 4px rgba(255,66,24,.78)); transform-origin: right center; animation: username-blueyyyy-flame .24s ease-in-out infinite alternate; }
[data-username-effect="blueyyyy"]::after { width: .48em; height: .25em; background: linear-gradient(270deg,#fff4aa 0%,#ffad24 40%,#ff4a1e 88%,rgba(255,55,20,0)); filter: none; animation-delay: -.12s; animation-duration: .18s; }
@keyframes username-glow { 50% { text-shadow: 0 0 8px rgba(255,139,112,.95),0 0 25px rgba(255,75,51,.75); } }
@keyframes username-aurora { to { background-position: -240% 0; } }
@keyframes username-flame { to { filter: drop-shadow(0 -2px 10px rgba(255,92,39,.75)); transform: translateY(-1px); } }
@keyframes username-glitch { 0%,89%,100% { transform: translate(0); } 90% { transform: translate(1px,-1px); text-shadow: -3px 0 #ff476f,3px 0 #55dfff; } 92% { transform: translate(-1px,1px); } 94% { transform: translate(0); } }
@keyframes username-ice { 0%,100% { background-position: 0 0; } 50% { background-position: 100% 0; filter: drop-shadow(0 0 10px rgba(137,229,255,.72)); } }
@keyframes username-sakura { 0%,100% { background-position: 0 0; } 50% { background-position: 100% 0; filter: drop-shadow(0 0 9px rgba(255,142,195,.58)); } }
@keyframes sakura-petals-fall { 0% { opacity: 0; transform: translate3d(-4px,-4px,0) rotate(0deg); } 14% { opacity: .9; } 76% { opacity: .72; } 100% { opacity: 0; transform: translate3d(11px,25px,0) rotate(190deg); } }
@keyframes username-electric { 0%,82%,100% { opacity: 1; transform: translate(0); } 84% { opacity: .72; transform: translateX(1px); } 86% { opacity: 1; transform: translateX(-1px); } 88% { text-shadow: 0 0 8px #fff,0 0 18px #3bcfff; } }
@keyframes username-cosmic { to { background-position: -300% 0; } }
@keyframes username-matrix { 0%,88%,100% { opacity: 1; } 90% { opacity: .45; text-shadow: 2px 0 #d3ffda; } 93% { opacity: .85; } }
@keyframes username-halloween { to { background-position: -280% 0; } }
@keyframes username-halloween-flicker { 0%,87%,100% { filter: drop-shadow(0 0 6px rgba(255,91,35,.58)); } 89% { filter: drop-shadow(0 0 13px rgba(183,91,255,.9)); } 92% { filter: drop-shadow(0 0 3px rgba(255,177,59,.45)); } }
@keyframes username-pumpkin-pop { 0%,100% { opacity: 0; transform: translate3d(0,5px,0) rotate(-12deg) scale(.62); } 18%,72% { opacity: .95; } 45% { transform: translate3d(4px,-3px,0) rotate(9deg) scale(1.08); } 78% { opacity: .7; transform: translate3d(7px,-7px,0) rotate(-5deg) scale(.9); } }
@keyframes username-creator { to { background-position: -260% 0; } }
@keyframes username-creator-pulse { to { filter: drop-shadow(0 0 12px rgba(216,156,255,.65)); } }
@keyframes username-emperor-gold { to { background-position: -260% 0; } }
@keyframes username-emperor-aura { to { filter: drop-shadow(0 1px 1px rgba(20,11,35,.9)) drop-shadow(0 0 12px rgba(238,191,82,.82)); } }
@keyframes username-emperor-crown { 0%,100% { transform: translateX(-50%) translateY(1px) rotate(-3deg); } 50% { transform: translateX(-50%) translateY(-2px) rotate(2deg); text-shadow: 0 1px 0 #6c4310,0 0 9px rgba(255,220,112,.95),0 0 17px rgba(116,76,199,.78); } }
@keyframes username-emperor-spark { 0%,100% { opacity: .2; transform: scale(.55) rotate(0); } 45% { opacity: 1; transform: scale(1.15) rotate(90deg); } }
@keyframes username-blueyyyy-rush { to { background-position: -220% 0; } }
@keyframes username-blueyyyy-boost { to { filter: drop-shadow(0 0 10px rgba(31,132,255,.92)); transform: skewX(-1.5deg); } }
@keyframes username-blueyyyy-flame { from { opacity: .72; transform: translateY(-50%) scaleX(.72) skewY(-7deg); } to { opacity: 1; transform: translateY(-50%) scaleX(1.12) skewY(7deg); } }
@keyframes creator-card-shine { 0%,58% { left: -35%; } 82%,100% { left: 125%; } }
@keyframes creator-sparkle { 50% { opacity: .45; transform: translateY(-50%) rotate(25deg) scale(.78); } }

/* Profile personalization */
.profile-personalization-title { align-items: center; }
.profile-personalization-live { display: inline-flex; align-items: center; gap: 7px; color: #73d5a4; font-size: 9px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.profile-personalization-live svg { width: 14px; height: 14px; }
.profile-personalization-copy { max-width: 670px; margin: -10px 0 22px; color: #858890; font-size: 11px; line-height: 1.65; }
.profile-customization-preview { position: relative; min-height: 230px; margin-bottom: 18px; overflow: hidden; isolation: isolate; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: #111319; box-shadow: 0 18px 50px rgba(0,0,0,.26); }
.profile-customization-banner { position: absolute; inset: 0 0 82px; overflow: hidden; background: radial-gradient(circle at 76% 12%,rgba(255,112,90,.3),transparent 32%),radial-gradient(circle at 18% 115%,rgba(122,82,220,.34),transparent 48%),linear-gradient(135deg,#6b3449,#282b52); }
.profile-customization-banner::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent,#111319); }
.profile-customization-banner > img { width: 100%; height: 100%; display: block; object-fit: cover; }
.profile-customization-banner > span { position: absolute; right: 28px; top: -40px; color: rgba(255,255,255,.06); font-family: serif; font-size: 160px; transform: rotate(8deg); }
.profile-customization-avatar { position: absolute; z-index: 4; left: 24px; bottom: 30px; width: 88px; height: 88px; isolation: isolate; filter: drop-shadow(0 8px 18px rgba(0,0,0,.45)); }
.profile-customization-avatar > img:not(.profile-customization-decoration),.profile-customization-avatar > span { position: absolute; inset: 0; width: 100%; height: 100%; border: 5px solid #111319; border-radius: 50%; object-fit: cover; }
.profile-customization-avatar > span { display: grid; place-items: center; background: #282b33; color: #ff9a87; font-family: var(--display); font-size: 28px; font-weight: 750; }
.profile-customization-decoration { position: absolute; z-index: 2; left: 50%; top: 50%; width: 138%; height: 138%; max-width: none; object-fit: contain; transform: translate(-50%,-50%); pointer-events: none; }
.profile-customization-identity { position: absolute; z-index: 4; left: 128px; right: 20px; bottom: 28px; min-width: 0; }
.profile-customization-identity > small { display: block; margin-bottom: 4px; color: #777b84; font-size: 7px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.profile-customization-identity > strong { min-width: 0; display: flex; align-items: baseline; font-family: var(--display); font-size: clamp(24px,4vw,34px); line-height: 1; white-space: nowrap; }
.profile-customization-identity > strong span { overflow: visible; text-overflow: ellipsis; }
.profile-customization-identity > strong em { flex: 0 0 auto; color: #858891; font-size: .56em; font-style: normal; font-weight: 500; }
.profile-customization-identity > p { margin: 7px 0 0; color: #666a73; font-size: 8px; }
.profile-effect-windows { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.profile-effect-window { min-width: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.09); border-radius: 10px; background: #1c1e23; }
.profile-effect-window > header { min-height: 76px; padding: 16px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.018); }
.profile-effect-window > header > span { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; background: rgba(255,111,87,.1); color: #ff9a87; }
.profile-effect-window > header svg { width: 17px; height: 17px; }
.profile-effect-window > header strong,.profile-effect-window > header small { display: block; }
.profile-effect-window > header strong { color: #f0f0f1; font-size: 11px; }
.profile-effect-window > header small { margin-top: 4px; color: #777a82; font-size: 8px; line-height: 1.4; }
.profile-effect-options { max-height: 330px; padding: 8px; display: grid; gap: 5px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.14) transparent; }
.profile-effect-option { position: relative; width: 100%; min-width: 0; min-height: 62px; padding: 7px 34px 7px 7px; display: grid; grid-template-columns: 67px minmax(0,1fr); align-items: center; gap: 10px; overflow: hidden; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #d9dade; text-align: left; cursor: pointer; transition: border-color .18s ease,background .18s ease,transform .18s ease; }
.profile-effect-option:hover { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.035); transform: translateY(-1px); }
.profile-effect-option.active { border-color: rgba(255,117,91,.42); background: rgba(255,102,78,.085); }
.profile-effect-option:disabled { cursor: wait; opacity: .7; }
.profile-effect-option > span:nth-child(2) { min-width: 0; }
.profile-effect-option strong,.profile-effect-option small { display: block; }
.profile-effect-option strong { color: #ececee; font-size: 10px; }
.profile-effect-option small { margin-top: 3px; overflow: hidden; color: #747780; font-size: 7px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.profile-effect-option > svg { position: absolute; right: 12px; top: 50%; width: 15px; height: 15px; color: #ff947f; transform: translateY(-50%); }
.profile-effect-option-preview { position: relative; width: 67px; height: 46px; overflow: hidden; isolation: isolate; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.08); border-radius: 7px; background: #101217; }
.profile-effect-option-preview.username b { max-width: 62px; font-family: var(--display); font-size: 16px; white-space: nowrap; }
.profile-effect-option-preview.profile > svg { position: relative; z-index: 2; width: 18px; height: 18px; color: #dadce2; }
.profile-badges-visibility { margin-top: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.09); border-radius: 10px; background: #1c1e23; }
.profile-badges-visibility > header { min-height: 74px; padding: 15px 17px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.018); }
.profile-badges-visibility > header > span { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; background: rgba(255,111,87,.1); color: #ff9a87; }
.profile-badges-visibility > header svg { width: 17px; height: 17px; }
.profile-badges-visibility > header > div { min-width: 0; flex: 1; }
.profile-badges-visibility > header strong,.profile-badges-visibility > header small { display: block; }
.profile-badges-visibility > header strong { color: #f0f0f1; font-size: 11px; }
.profile-badges-visibility > header small { margin-top: 4px; color: #777a82; font-size: 8px; line-height: 1.4; }
.profile-badges-visibility > header em { flex: 0 0 auto; display: flex; align-items: center; gap: 5px; color: #8c9099; font-size: 8px; font-style: normal; }
.profile-badges-visibility > header em svg { width: 13px; height: 13px; color: #68d6a1; }
.profile-badges-visibility > header em b { color: #dfe2e5; }
.profile-badges-grid { padding: 10px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.profile-badge-visibility-item { min-width: 0; min-height: 64px; padding: 10px 11px; display: flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.08); border-radius: 8px; background: #15171c; transition: border-color .18s ease,opacity .18s ease; }
.profile-badge-visibility-item:not(.muted) { border-color: rgba(255,125,99,.22); }
.profile-badge-visibility-item.muted { opacity: .58; }
.profile-badge-visibility-icon { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.045); color: #ff8b78; }
.profile-badge-visibility-icon[data-tone="gold"] { color: #f0c25f; }
.profile-badge-visibility-icon[data-tone="blue"] { color: #78b2fa; }
.profile-badge-visibility-icon[data-tone="pink"] { color: #f087b2; }
.profile-badge-visibility-icon[data-tone="violet"] { color: #bd9cff; }
.profile-badge-visibility-icon[data-tone="green"] { color: #63d9a0; }
.profile-badge-visibility-icon[data-tone="orange"] { color: #ff8a3d; }
.profile-badge-visibility-icon .badge-symbol { width: 21px; height: 21px; }
.profile-badge-visibility-copy { min-width: 0; flex: 1; }
.profile-badge-visibility-copy strong,.profile-badge-visibility-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-badge-visibility-copy strong { color: #e8e9eb; font-size: 9px; }
.profile-badge-visibility-copy small { margin-top: 4px; color: #747780; font-size: 7px; }
.profile-badge-switch { position: relative; width: 36px; height: 21px; flex: 0 0 auto; padding: 0; border: 0; border-radius: 999px; background: #343740; cursor: pointer; transition: background .18s ease,box-shadow .18s ease; }
.profile-badge-switch span { position: absolute; left: 3px; top: 3px; width: 15px; height: 15px; border-radius: 50%; background: #868b96; transition: transform .18s ease,background .18s ease; }
.profile-badge-switch[aria-checked="true"] { background: #ff7059; box-shadow: 0 0 0 3px rgba(255,112,89,.09); }
.profile-badge-switch[aria-checked="true"] span { background: #fff; transform: translateX(15px); }
.profile-badge-switch:focus-visible { outline: 2px solid #ff9a87; outline-offset: 2px; }
.profile-badge-switch:disabled { cursor: wait; opacity: .55; }
.profile-badges-empty { grid-column: 1 / -1; min-height: 70px; display: flex; align-items: center; justify-content: center; gap: 10px; color: #70747d; }
.profile-badges-empty > svg { width: 20px; height: 20px; }
.profile-badges-empty strong,.profile-badges-empty small { display: block; }
.profile-badges-empty strong { color: #a3a6ad; font-size: 9px; }
.profile-badges-empty small { margin-top: 3px; font-size: 7px; }
.profile-personalization-message { min-height: 18px; margin: 12px 2px 0; }
.notification-settings-copy { max-width: 690px; margin: -2px 0 20px; color: #8a8d96; font-size: 10px; line-height: 1.6; }
.notification-settings-title { align-items: center; }
.notification-platform-pill { min-height: 28px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(105,216,164,.24); border-radius: 999px; background: rgba(73,190,137,.07); color: #78dbaa; font-size: 7px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.notification-platform-pill svg { width: 13px; height: 13px; }
.notification-master-card { min-height: 84px; padding: 16px 18px; display: flex; align-items: center; gap: 13px; border: 1px solid rgba(255,121,96,.24); border-radius: 11px; background: radial-gradient(circle at 0 0,rgba(255,107,85,.1),transparent 36%),#1a1c22; }
.notification-master-icon { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(145deg,#ff775f,#ef5545); color: #fff; box-shadow: 0 8px 22px rgba(239,85,69,.22); }
.notification-master-icon svg { width: 20px; height: 20px; }
.notification-master-card > div { min-width: 0; flex: 1; }
.notification-master-card strong,.notification-master-card small { display: block; }
.notification-master-card strong { color: #f3f3f4; font-size: 11px; }
.notification-master-card small { margin-top: 5px; color: #7d8089; font-size: 8px; line-height: 1.4; }
.notification-switch { position: relative; width: 42px; height: 23px; flex: 0 0 auto; padding: 0; border: 0; border-radius: 999px; background: #373a43; cursor: pointer; transition: background .18s ease,box-shadow .18s ease; }
.notification-switch span { position: absolute; left: 3px; top: 3px; width: 17px; height: 17px; border-radius: 50%; background: #858a94; transition: transform .18s ease,background .18s ease; }
.notification-switch[aria-checked="true"] { background: #ff6b55; box-shadow: 0 0 0 4px rgba(255,107,85,.09); }
.notification-switch[aria-checked="true"] span { background: #fff; transform: translateX(19px); }
.notification-switch:focus-visible { outline: 2px solid #ff9a87; outline-offset: 3px; }
.notification-switch:disabled { opacity: .55; cursor: wait; }
.notification-category-grid { margin-top: 12px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.notification-category-card { position: relative; min-width: 0; min-height: 138px; padding: 14px; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid rgba(255,255,255,.085); border-radius: 10px; background: #17191f; cursor: pointer; transition: border-color .18s ease,background .18s ease,transform .18s ease,opacity .18s ease; }
.notification-category-card:hover { border-color: rgba(255,139,117,.3); transform: translateY(-1px); }
.notification-category-card:has(input:checked) { border-color: rgba(255,120,96,.28); background: rgba(255,107,85,.045); }
.notification-category-card:has(input:disabled) { opacity: .48; cursor: not-allowed; transform: none; }
.notification-category-card input { position: absolute; opacity: 0; }
.notification-category-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,107,85,.1); color: #ff8e79; }
.notification-category-icon.violet { background: rgba(174,119,255,.1); color: #b995ff; }
.notification-category-icon.blue { background: rgba(91,162,255,.1); color: #79b5ff; }
.notification-category-icon svg { width: 17px; height: 17px; }
.notification-category-card > span:nth-of-type(2) { margin-top: 12px; min-width: 0; }
.notification-category-card strong,.notification-category-card small { display: block; }
.notification-category-card strong { color: #e9eaec; font-size: 9px; }
.notification-category-card small { margin-top: 5px; color: #71747d; font-size: 7px; line-height: 1.45; }
.notification-category-card > svg { position: absolute; right: 11px; top: 11px; width: 14px; height: 14px; padding: 2px; border-radius: 50%; background: #ff7059; color: white; opacity: 0; transform: scale(.7); transition: .18s; }
.notification-category-card:has(input:checked) > svg { opacity: 1; transform: none; }
.notification-delivery-card,.notification-channel-card { margin-top: 10px; padding: 15px 17px; border: 1px solid rgba(255,255,255,.085); border-radius: 10px; background: #17191f; }
.notification-delivery-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.notification-delivery-card header { min-width: 0; display: flex; align-items: center; gap: 10px; }
.notification-delivery-card header > span,.notification-channel-icon { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.045); color: #a4a8b2; }
.notification-delivery-card header svg,.notification-channel-icon svg { width: 16px; height: 16px; }
.notification-delivery-card strong,.notification-delivery-card small,.notification-channel-card strong,.notification-channel-card small { display: block; }
.notification-delivery-card strong,.notification-channel-card strong { color: #e5e6e8; font-size: 9px; }
.notification-delivery-card small,.notification-channel-card small { margin-top: 4px; color: #72757e; font-size: 7px; line-height: 1.4; }
.notification-delivery-card label { flex: 0 0 auto; display: flex; align-items: center; gap: 9px; color: #83868f; font-size: 8px; }
.notification-delivery-card select { height: 34px; min-width: 145px; padding: 0 30px 0 10px; border: 1px solid #343841; border-radius: 6px; outline: 0; background: #0d0f14; color: #e7e8ea; font: 700 8px var(--body); color-scheme: dark; }
.notification-delivery-card select:focus { border-color: #ff7059; }
.notification-delivery-card select:disabled { opacity: .48; }
.notification-channel-card { display: flex; align-items: center; gap: 11px; }
.notification-channel-card > div:nth-child(2) { min-width: 0; flex: 1; }
.notification-test-button { flex: 0 0 auto; min-height: 32px; padding: 0 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 6px; background: #0d0f14; font-size: 8px; text-decoration: none!important; }
.notification-test-button:disabled { opacity: .42; cursor: not-allowed; }
.notification-settings-message { min-height: 18px; margin: 11px 2px 0; }

.profile-effect-layer,.public-profile-effect-layer,.profile-effect-option-layer,.code-profile-effect-layer { position: absolute; inset: 0; z-index: 3; overflow: hidden; border-radius: inherit; pointer-events: none; }
.public-profile-effect-layer { position: absolute; z-index: 4; }
.profile-effect-layer i,.public-profile-effect-layer i,.profile-effect-option-layer i,.code-profile-effect-layer i { position: absolute; display: none; }
[data-profile-effect="none"] > .profile-effect-layer,[data-profile-effect="none"] > .profile-effect-option-layer,.public-profile-card[data-profile-effect="none"] .public-profile-effect-layer { display: none; }
[data-profile-effect="halo"] > .profile-effect-layer::before,[data-profile-effect="halo"] > .profile-effect-option-layer::before,.public-profile-card[data-profile-effect="halo"] .public-profile-effect-layer::before { content: ""; position: absolute; inset: -45%; border: 2px solid rgba(255,132,105,.7); border-radius: 50%; box-shadow: 0 0 16px rgba(255,91,66,.55),inset 0 0 18px rgba(255,91,66,.28); animation: profile-halo-spin 7s linear infinite; }
[data-profile-effect="halo"] > .profile-effect-layer::after,[data-profile-effect="halo"] > .profile-effect-option-layer::after,.public-profile-card[data-profile-effect="halo"] .public-profile-effect-layer::after { content: ""; position: absolute; inset: 8%; border: 1px solid rgba(255,201,139,.28); border-radius: 48% 52% 42% 58%; filter: drop-shadow(0 0 8px #ff745a); animation: profile-halo-spin 5s linear infinite reverse; }
[data-profile-effect="nebula"] > .profile-effect-layer,[data-profile-effect="nebula"] > .profile-effect-option-layer,.public-profile-card[data-profile-effect="nebula"] .public-profile-effect-layer { background: radial-gradient(circle at 18% 35%,rgba(106,92,255,.38),transparent 28%),radial-gradient(circle at 78% 24%,rgba(255,76,174,.3),transparent 30%),radial-gradient(circle at 54% 88%,rgba(67,210,255,.18),transparent 34%); background-size: 120% 120%; animation: profile-nebula 7s ease-in-out infinite alternate; mix-blend-mode: screen; }
[data-profile-effect="snowfall"] > .profile-effect-layer i,[data-profile-effect="snowfall"] > .profile-effect-option-layer i,.public-profile-card[data-profile-effect="snowfall"] .public-profile-effect-layer i { top: -12px; display: block; width: 5px; height: 5px; border-radius: 50%; background: #e8fbff; box-shadow: 0 0 8px rgba(135,225,255,.9); animation: profile-snowfall 4s linear infinite; }
[data-profile-effect="snowfall"] i:nth-child(1) { left: 9%; animation-delay: -1s; } [data-profile-effect="snowfall"] i:nth-child(2) { left: 26%; animation-delay: -3.1s; animation-duration: 5.2s; } [data-profile-effect="snowfall"] i:nth-child(3) { left: 43%; animation-delay: -2s; } [data-profile-effect="snowfall"] i:nth-child(4) { left: 61%; animation-delay: -.4s; animation-duration: 5.7s; } [data-profile-effect="snowfall"] i:nth-child(5) { left: 77%; animation-delay: -3.8s; } [data-profile-effect="snowfall"] i:nth-child(6) { left: 91%; animation-delay: -1.9s; animation-duration: 4.8s; }
[data-profile-effect="scanline"] > .profile-effect-layer,[data-profile-effect="scanline"] > .profile-effect-option-layer,.public-profile-card[data-profile-effect="scanline"] .public-profile-effect-layer { background-image: linear-gradient(rgba(73,231,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(73,231,255,.025) 1px,transparent 1px); background-size: 9px 9px; }
[data-profile-effect="scanline"] > .profile-effect-layer::after,[data-profile-effect="scanline"] > .profile-effect-option-layer::after,.public-profile-card[data-profile-effect="scanline"] .public-profile-effect-layer::after { content: ""; position: absolute; inset: -15% 0 auto; height: 22%; background: linear-gradient(transparent,rgba(77,229,255,.2),rgba(195,250,255,.55),transparent); filter: blur(1px); animation: profile-scanline 3.4s linear infinite; }
[data-profile-effect="halloween"] > .profile-effect-layer,[data-profile-effect="halloween"] > .profile-effect-option-layer,.public-profile-card[data-profile-effect="halloween"] .public-profile-effect-layer { background: radial-gradient(circle at 12% 20%,rgba(255,112,36,.2),transparent 20%),radial-gradient(circle at 82% 32%,rgba(146,68,226,.2),transparent 28%); box-shadow: inset 0 0 35px rgba(255,91,31,.16); }
[data-profile-effect="halloween"] > .profile-effect-layer::before,[data-profile-effect="halloween"] > .profile-effect-option-layer::before,.public-profile-card[data-profile-effect="halloween"] .public-profile-effect-layer::before { content: ""; position: absolute; left: 7%; top: 12%; width: 24px; height: 24px; background: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff9a4f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2c-1 1-1 2-1 2'/%3E%3Cpath d='M17 4c-.9 0-1.8.4-2.5 1.2a3.32 3.32 0 0 0-5 0C8.8 4.4 7.9 4 7 4c-2.8 0-5 4-5 9s2.2 9 5 9c.9 0 1.8-.4 2.5-1.2a3.32 3.32 0 0 0 5 0c.7.8 1.6 1.2 2.5 1.2 2.8 0 5-4 5-9s-2.2-9-5-9'/%3E%3Cpath d='M10 11 8 9l-2 2M18 11l-2-2-2 2M6 15l2 2 2-2 2 2 2-2 2 2 2-2'/%3E%3C/svg%3E"); filter: drop-shadow(0 0 7px rgba(255,108,38,.8)); animation: profile-pumpkin-float 3.8s ease-in-out infinite; }
[data-profile-effect="halloween"] > .profile-effect-layer::after,[data-profile-effect="halloween"] > .profile-effect-option-layer::after,.public-profile-card[data-profile-effect="halloween"] .public-profile-effect-layer::after { content: ""; position: absolute; right: 8%; bottom: 10%; width: 18px; height: 18px; background: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff9a4f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2c-1 1-1 2-1 2'/%3E%3Cpath d='M17 4c-.9 0-1.8.4-2.5 1.2a3.32 3.32 0 0 0-5 0C8.8 4.4 7.9 4 7 4c-2.8 0-5 4-5 9s2.2 9 5 9c.9 0 1.8-.4 2.5-1.2a3.32 3.32 0 0 0 5 0c.7.8 1.6 1.2 2.5 1.2 2.8 0 5-4 5-9s-2.2-9-5-9'/%3E%3Cpath d='M10 11 8 9l-2 2M18 11l-2-2-2 2M6 15l2 2 2-2 2 2 2-2 2 2 2-2'/%3E%3C/svg%3E"); filter: drop-shadow(0 0 6px rgba(255,108,38,.75)); animation: profile-pumpkin-float 4.4s -2s ease-in-out infinite reverse; }
[data-profile-effect="creator"] > .profile-effect-layer,[data-profile-effect="creator"] > .profile-effect-option-layer,.public-profile-card[data-profile-effect="creator"] .public-profile-effect-layer { background: conic-gradient(from 130deg at 50% 50%,transparent,rgba(255,199,84,.16),transparent,rgba(197,112,255,.17),transparent); background-size: 180% 180%; filter: drop-shadow(0 0 10px rgba(237,186,83,.22)); animation: profile-creator-aura 5.4s ease-in-out infinite alternate; }
[data-profile-effect="creator"] > .profile-effect-layer::after,[data-profile-effect="creator"] > .profile-effect-option-layer::after,.public-profile-card[data-profile-effect="creator"] .public-profile-effect-layer::after { content: "✦"; position: absolute; right: 10%; top: 13%; color: #ffe598; font-size: 20px; text-shadow: -70px 55px #d9a5ff,35px 90px #ffd769; animation: creator-sparkle 1.8s ease-in-out infinite; }
[data-profile-effect="affiliate"] > .profile-effect-layer,[data-profile-effect="affiliate"] > .profile-effect-option-layer,.public-profile-card[data-profile-effect="affiliate"] .public-profile-effect-layer { background: radial-gradient(circle at 16% 24%,rgba(83,234,188,.24),transparent 27%),radial-gradient(circle at 84% 30%,rgba(91,191,255,.2),transparent 30%),radial-gradient(circle at 52% 86%,rgba(197,139,255,.18),transparent 34%); box-shadow: inset 0 0 42px rgba(74,220,190,.1); animation: profile-nebula 6s ease-in-out infinite alternate; }
[data-profile-effect="affiliate"] > .profile-effect-layer::after,[data-profile-effect="affiliate"] > .profile-effect-option-layer::after,.public-profile-card[data-profile-effect="affiliate"] .public-profile-effect-layer::after { content: "✦  •  ✦"; position: absolute; right: 8%; top: 11%; color: #8ef5d0; font-size: 15px; letter-spacing: 9px; text-shadow: -76px 48px #65cbff,15px 88px #d7a7ff; animation: creator-sparkle 2.2s ease-in-out infinite; }
[data-profile-effect="blueyyyy"] > .profile-effect-layer,[data-profile-effect="blueyyyy"] > .profile-effect-option-layer,.public-profile-card[data-profile-effect="blueyyyy"] .public-profile-effect-layer,.code-profile-preview[data-profile-effect="blueyyyy"] > .code-profile-effect-layer { background: radial-gradient(circle at 50% 108%,rgba(38,143,255,.2),transparent 42%),linear-gradient(180deg,rgba(18,108,224,.08),transparent 48%); box-shadow: inset 0 0 48px rgba(17,111,255,.12); }
[data-profile-effect="blueyyyy"] > .profile-effect-layer::before,[data-profile-effect="blueyyyy"] > .profile-effect-option-layer::before,.public-profile-card[data-profile-effect="blueyyyy"] .public-profile-effect-layer::before,.code-profile-preview[data-profile-effect="blueyyyy"] > .code-profile-effect-layer::before { content: ""; position: absolute; z-index: 2; left: -18%; top: 66%; width: clamp(42px,13%,76px); aspect-ratio: 2 / 1; background: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 50'%3E%3Cpath fill='%23156fe8' stroke='%238bd8ff' stroke-width='2' d='M9 31l8-13c2-3 6-5 10-5h31c5 0 9 2 13 6l8 8 12 4c3 1 5 4 5 8H5c0-4 1-6 4-8z'/%3E%3Cpath fill='%239ce8ff' d='M29 16h27c4 0 7 2 10 5l4 5H21l6-9z'/%3E%3Cpath fill='%230b2f74' d='M47 16h4l3 10H43z'/%3E%3Ccircle cx='24' cy='39' r='8' fill='%23080d18' stroke='%235baeff' stroke-width='3'/%3E%3Ccircle cx='78' cy='39' r='8' fill='%23080d18' stroke='%235baeff' stroke-width='3'/%3E%3Ccircle cx='24' cy='39' r='2.5' fill='%23d9f7ff'/%3E%3Ccircle cx='78' cy='39' r='2.5' fill='%23d9f7ff'/%3E%3Cpath fill='%23ff7a20' d='M8 31L0 27l5 7-5 6 10-4z'/%3E%3Cpath fill='%23fff4a0' d='M8 33l-5-1 4 3z'/%3E%3C/svg%3E"); filter: drop-shadow(0 5px 5px rgba(0,0,0,.38)) drop-shadow(0 0 8px rgba(40,146,255,.42)); transform-origin: 50% 55%; opacity: 0; animation: profile-blueyyyy-car-stunt 10s cubic-bezier(.42,0,.3,1) infinite; }
[data-profile-effect="blueyyyy"] > .profile-effect-layer::after,[data-profile-effect="blueyyyy"] > .profile-effect-option-layer::after,.public-profile-card[data-profile-effect="blueyyyy"] .public-profile-effect-layer::after,.code-profile-preview[data-profile-effect="blueyyyy"] > .code-profile-effect-layer::after { content: ""; position: absolute; left: 9%; right: 9%; bottom: 13%; height: 2px; background: linear-gradient(90deg,transparent,rgba(82,174,255,.18),rgba(136,215,255,.5),rgba(82,174,255,.18),transparent); border-radius: 50%; filter: blur(.3px); opacity: .55; }
:is([data-profile-effect="emperor"] > .profile-effect-layer,[data-profile-effect="emperor"] > .profile-effect-option-layer,.public-profile-card[data-profile-effect="emperor"] .public-profile-effect-layer,.code-profile-preview[data-profile-effect="emperor"] > .code-profile-effect-layer) { background: radial-gradient(circle at 78% 16%,rgba(255,211,102,.3),transparent 18%),radial-gradient(ellipse at 50% 112%,rgba(226,163,58,.22),transparent 43%),linear-gradient(155deg,rgba(8,10,27,.14),rgba(44,30,91,.28) 55%,rgba(148,91,28,.14)); background-size: 135% 135%; box-shadow: inset 0 0 62px rgba(207,153,45,.14),inset 0 0 0 1px rgba(245,207,111,.16); animation: profile-emperor-breathe 6s ease-in-out infinite alternate; }
:is([data-profile-effect="emperor"] > .profile-effect-layer,[data-profile-effect="emperor"] > .profile-effect-option-layer,.public-profile-card[data-profile-effect="emperor"] .public-profile-effect-layer,.code-profile-preview[data-profile-effect="emperor"] > .code-profile-effect-layer)::before { content: "龍"; position: absolute; z-index: 1; right: 5%; top: 8%; color: rgba(244,199,87,.15); font-family: Georgia,"Songti SC","SimSun",serif; font-size: clamp(48px,9vw,108px); font-weight: 700; line-height: 1; text-shadow: 0 0 22px rgba(238,181,61,.3); transform: rotate(7deg); animation: profile-emperor-seal 5s ease-in-out infinite; }
[data-profile-effect="emperor"] > .profile-effect-option-layer::before { right: 8%; top: 8%; font-size: 32px; }
:is([data-profile-effect="emperor"] > .profile-effect-layer,[data-profile-effect="emperor"] > .profile-effect-option-layer,.public-profile-card[data-profile-effect="emperor"] .public-profile-effect-layer,.code-profile-preview[data-profile-effect="emperor"] > .code-profile-effect-layer)::after { content: ""; position: absolute; z-index: 2; inset: 5%; border: 1px solid rgba(234,190,82,.24); border-radius: inherit; background: linear-gradient(0deg,rgba(207,147,49,.2),transparent 24%) bottom/100% 42% no-repeat,linear-gradient(90deg,#d9a83f,transparent 17%,transparent 83%,#d9a83f) top/100% 1px no-repeat,linear-gradient(90deg,#d9a83f,transparent 17%,transparent 83%,#d9a83f) bottom/100% 1px no-repeat; box-shadow: 0 0 20px rgba(203,150,48,.1),inset 0 -18px 28px rgba(191,128,35,.08); animation: profile-emperor-frame 3.2s ease-in-out infinite alternate; }
:is([data-profile-effect="emperor"] > .profile-effect-layer,[data-profile-effect="emperor"] > .profile-effect-option-layer,.public-profile-card[data-profile-effect="emperor"] .public-profile-effect-layer,.code-profile-preview[data-profile-effect="emperor"] > .code-profile-effect-layer) i { display: block; z-index: 3; left: 50%; bottom: -8%; width: clamp(46px,11%,92px); aspect-ratio: 3 / 2; background: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 80'%3E%3Cg fill='%23100d1c' stroke='%23e3b54d' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 53c8-14 23-20 42-17l19 4 16-13 10 7-9 13-19 8-14 13H31L18 62z'/%3E%3Cpath d='M31 65 21 78m28-12-3 12m25-17 9 17m8-24 17 17M20 53 7 45m88-17 8-12' fill='none'/%3E%3Ccircle cx='61' cy='16' r='7'/%3E%3Cpath d='m58 23-10 20m12-19 18 17m-8-14 21 7m-31-11 15-8' fill='none'/%3E%3Cpath d='m55 8 6-7 6 7' fill='%23e3b54d'/%3E%3C/g%3E%3C/svg%3E"); filter: drop-shadow(0 3px 3px rgba(0,0,0,.78)) drop-shadow(0 0 7px rgba(227,181,77,.35)); opacity: 0; transform: translate(-50%,30px) scale(.34); transform-origin: 50% 100%; animation: profile-emperor-cavalry 7s cubic-bezier(.22,.68,.32,1) infinite; }
:is([data-profile-effect="emperor"] > .profile-effect-layer,[data-profile-effect="emperor"] > .profile-effect-option-layer,.public-profile-card[data-profile-effect="emperor"] .public-profile-effect-layer,.code-profile-preview[data-profile-effect="emperor"] > .code-profile-effect-layer) i:nth-child(1) { z-index: 5; left: 50%; width: clamp(64px,16%,132px); animation-delay: -1.1s; animation-duration: 6.3s; }
:is([data-profile-effect="emperor"] > .profile-effect-layer,[data-profile-effect="emperor"] > .profile-effect-option-layer,.public-profile-card[data-profile-effect="emperor"] .public-profile-effect-layer,.code-profile-preview[data-profile-effect="emperor"] > .code-profile-effect-layer) i:nth-child(1) { width: clamp(72px,34%,220px); aspect-ratio: 4 / 3; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 120'%3E%3Cg stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath fill='%23090810' stroke='%23d1a03a' stroke-width='2.4' d='M12 82c9-19 31-27 60-23l30 6 20-17 18 9-11 20-26 10-19 21H37L18 96z'/%3E%3Cpath fill='none' stroke='%23d1a03a' stroke-width='3' d='M37 104 26 119m30-13-2 13m40-22 10 22m17-39 24 21M18 84 3 74m128-22 10-17'/%3E%3Cpath fill='none' stroke='%23765ad6' stroke-width='3' d='M25 83c31 7 66 4 101-12m-22 13 8 19'/%3E%3Cpath fill='%23100d18' stroke='%23d1a03a' stroke-width='2' d='M56 56c-3-20 2-39 18-48 19 7 26 25 20 49L79 70z'/%3E%3Cpath fill='%23211d2c' d='M57 17c6-15 31-17 40 0l-5 27-11-8-16 12-9-20z'/%3E%3Cpath fill='%23c69272' stroke='%236f472d' stroke-width='1.5' d='M66 18c3-8 19-8 23 0l-2 18c-5 8-13 10-19 1z'/%3E%3Cpath fill='%230b0910' d='M62 17c5-12 25-13 31-2l-3 10c-7-8-16-9-26-3l-3 23-8 17c3-20 0-34 9-45z'/%3E%3Cpath fill='none' stroke='%23452b20' stroke-width='1.3' d='M72 29h5m5 0h4m-9 7c3 2 6 2 8 0'/%3E%3Cpath fill='%23c99b38' stroke='%23f2d578' stroke-width='1.2' d='M63 13h29V8l-5 3-4-9-6 8-7-8-3 9-6-3z'/%3E%3Cpath fill='none' stroke='%23765ad6' stroke-width='2' d='M62 10 55 3m38 7 7-7'/%3E%3Cpath fill='%23162664' stroke='%23d1a03a' stroke-width='2.3' d='M57 45 45 76l22 24 16-21 20 19 12-19-20-34-18 10z'/%3E%3Cpath fill='%230e1020' stroke='%23d1a03a' stroke-width='2' d='m64 46 13 9 15-10 7 14-19 12-23-11z'/%3E%3Cpath fill='%23162664' stroke='%23d1a03a' stroke-width='2' d='m53 50-26 17 7 10 31-14m29-13 28 7-4 11-27-6'/%3E%3Cpath fill='none' stroke='%23f0cf68' stroke-width='2' d='M62 73c8-9 19-8 20 1-9-2-15 3-11 10 4 7 14 1 12-5'/%3E%3Cpath fill='%23765ad6' d='m72 67 7 1-2 24-5 10-5-10z'/%3E%3Cpath fill='none' stroke='%23e7c25d' stroke-width='2.4' d='m116 57 33-34m-36 37 7-1-1 7'/%3E%3Ccircle cx='76' cy='19' r='1.2' fill='%23120d0b'/%3E%3Ccircle cx='84' cy='19' r='1.2' fill='%23120d0b'/%3E%3C/g%3E%3C/svg%3E"); filter: drop-shadow(0 5px 4px rgba(0,0,0,.82)) drop-shadow(0 0 10px rgba(209,160,58,.5)) drop-shadow(0 0 18px rgba(83,61,164,.34)); animation-name: profile-emperor-leader-charge; animation-duration: 7.2s; }
:is([data-profile-effect="emperor"] > .profile-effect-layer,[data-profile-effect="emperor"] > .profile-effect-option-layer,.public-profile-card[data-profile-effect="emperor"] .public-profile-effect-layer,.code-profile-preview[data-profile-effect="emperor"] > .code-profile-effect-layer) i:nth-child(2) { left: 16%; width: clamp(38px,8%,70px); animation-delay: -4.5s; animation-duration: 7.8s; }
:is([data-profile-effect="emperor"] > .profile-effect-layer,[data-profile-effect="emperor"] > .profile-effect-option-layer,.public-profile-card[data-profile-effect="emperor"] .public-profile-effect-layer,.code-profile-preview[data-profile-effect="emperor"] > .code-profile-effect-layer) i:nth-child(3) { left: 31%; width: clamp(42px,9%,76px); animation-delay: -2.7s; animation-duration: 7.2s; }
:is([data-profile-effect="emperor"] > .profile-effect-layer,[data-profile-effect="emperor"] > .profile-effect-option-layer,.public-profile-card[data-profile-effect="emperor"] .public-profile-effect-layer,.code-profile-preview[data-profile-effect="emperor"] > .code-profile-effect-layer) i:nth-child(4) { left: 68%; width: clamp(42px,9%,76px); animation-delay: -5.8s; animation-duration: 7.4s; }
:is([data-profile-effect="emperor"] > .profile-effect-layer,[data-profile-effect="emperor"] > .profile-effect-option-layer,.public-profile-card[data-profile-effect="emperor"] .public-profile-effect-layer,.code-profile-preview[data-profile-effect="emperor"] > .code-profile-effect-layer) i:nth-child(5) { left: 84%; width: clamp(38px,8%,70px); animation-delay: -3.5s; animation-duration: 8.1s; }
:is([data-profile-effect="emperor"] > .profile-effect-layer,[data-profile-effect="emperor"] > .profile-effect-option-layer,.public-profile-card[data-profile-effect="emperor"] .public-profile-effect-layer,.code-profile-preview[data-profile-effect="emperor"] > .code-profile-effect-layer) i:nth-child(6) { left: 59%; width: clamp(36px,7%,62px); animation-delay: -6.7s; animation-duration: 8.4s; }

@keyframes profile-emperor-breathe { to { background-position: 100% 35%; box-shadow: inset 0 0 82px rgba(210,158,47,.2),inset 0 0 0 1px rgba(239,199,100,.24); } }
@keyframes profile-emperor-seal { 0%,100% { opacity: .45; transform: translateY(2px) rotate(7deg) scale(.98); } 50% { opacity: .9; transform: translateY(-5px) rotate(3deg) scale(1.04); } }
@keyframes profile-emperor-frame { to { border-color: rgba(248,214,125,.46); box-shadow: 0 0 28px rgba(203,150,48,.17),inset 0 -22px 34px rgba(191,128,35,.13); } }
@keyframes profile-emperor-cavalry { 0%,13% { opacity: 0; transform: translate(-50%,34px) scale(.28); } 25% { opacity: .38; } 72% { opacity: .82; } 100% { opacity: 0; transform: translate(-50%,-82px) scale(1.18); } }
@keyframes profile-emperor-leader-charge { 0%,10% { opacity: 0; transform: translate(-50%,45px) scale(.26); } 22% { opacity: .55; } 55%,78% { opacity: .96; } 100% { opacity: 0; transform: translate(-50%,-142px) scale(1.14); } }

/* Empereur du Royaume — refonte centrée sur le personnage */
:is([data-profile-effect="emperor"] > .profile-effect-layer,[data-profile-effect="emperor"] > .profile-effect-option-layer,.public-profile-card[data-profile-effect="emperor"] .public-profile-effect-layer,.code-profile-preview[data-profile-effect="emperor"] > .code-profile-effect-layer) { background: radial-gradient(circle at 82% 70%,rgba(255,83,18,.24),transparent 22%),radial-gradient(circle at 56% 86%,rgba(255,156,31,.18),transparent 29%),radial-gradient(circle at 76% 24%,rgba(226,177,69,.2),transparent 23%),radial-gradient(circle at 54% 64%,rgba(80,55,159,.27),transparent 43%),linear-gradient(135deg,rgba(7,9,22,.18),rgba(23,27,66,.28) 48%,rgba(104,42,30,.2)); background-size: 128% 128%; box-shadow: inset 0 0 78px rgba(20,24,67,.28),inset 0 -55px 70px rgba(158,49,15,.12),inset 0 0 0 1px rgba(235,194,96,.16); animation: profile-emperor-character-aura 6s ease-in-out infinite alternate; }
:is([data-profile-effect="emperor"] > .profile-effect-layer,[data-profile-effect="emperor"] > .profile-effect-option-layer,.public-profile-card[data-profile-effect="emperor"] .public-profile-effect-layer,.code-profile-preview[data-profile-effect="emperor"] > .code-profile-effect-layer)::before { content: ""; position: absolute; z-index: 3; left: auto; right: -1%; top: auto; bottom: -3%; width: clamp(380px,82%,780px); height: 78%; max-height: 510px; color: transparent; background: right bottom/contain no-repeat url("./assets/profile-emperor-charge.png?v=2"); filter: drop-shadow(-12px 15px 14px rgba(0,0,0,.66)) drop-shadow(0 0 17px rgba(218,166,58,.3)) drop-shadow(0 0 34px rgba(83,60,166,.3)); opacity: 0; text-shadow: none; transform: translateX(-12%) scale(.96); transform-origin: 75% 100%; animation: profile-emperor-character-arrival 9s cubic-bezier(.22,.75,.25,1) infinite; }
[data-profile-effect="emperor"] > .profile-effect-option-layer::before { right: -11%; bottom: -7%; width: 94px; height: 78%; }
:is([data-profile-effect="emperor"] > .profile-effect-layer,[data-profile-effect="emperor"] > .profile-effect-option-layer,.public-profile-card[data-profile-effect="emperor"] .public-profile-effect-layer,.code-profile-preview[data-profile-effect="emperor"] > .code-profile-effect-layer)::after { content: none; display: none; }
.profile-emperor-explosions { position: absolute; inset: 0; z-index: 2; display: none; overflow: hidden; pointer-events: none; }
:is([data-profile-effect="emperor"] > .profile-effect-layer,[data-profile-effect="emperor"] > .profile-effect-option-layer,.public-profile-card[data-profile-effect="emperor"] .public-profile-effect-layer,.code-profile-preview[data-profile-effect="emperor"] > .code-profile-effect-layer) > .profile-emperor-explosions { display: block; }
.profile-emperor-explosions span { position: absolute; left: var(--explosion-left); top: var(--explosion-top); width: var(--explosion-size); max-width: 290px; aspect-ratio: 1; background: center/contain no-repeat url("./assets/profile-emperor-explosion-single.png?v=1"); filter: drop-shadow(0 0 13px rgba(255,83,18,.48)); opacity: 0; transform: translate(-50%,-50%) scale(.22); transform-origin: 50% 58%; animation: profile-emperor-random-explosion var(--explosion-duration) ease-out var(--explosion-delay) infinite; }
[data-profile-effect="emperor"] > .profile-effect-option-layer .profile-emperor-explosions span { min-width: 22px; max-width: 38px; }
:is([data-profile-effect="emperor"] > .profile-effect-layer,[data-profile-effect="emperor"] > .profile-effect-option-layer,.public-profile-card[data-profile-effect="emperor"] .public-profile-effect-layer,.code-profile-preview[data-profile-effect="emperor"] > .code-profile-effect-layer) i { display: block; z-index: 4; border-radius: 50%; background: #ffb33e; box-shadow: 0 0 5px #ff651f,0 0 11px rgba(255,67,17,.8); opacity: 0; }
:is([data-profile-effect="emperor"] > .profile-effect-layer,[data-profile-effect="emperor"] > .profile-effect-option-layer,.public-profile-card[data-profile-effect="emperor"] .public-profile-effect-layer,.code-profile-preview[data-profile-effect="emperor"] > .code-profile-effect-layer) i:nth-child(1) { left: 8%; top: 75%; width: 6px; height: 6px; aspect-ratio: auto; background-image: none; animation-name: profile-emperor-character-spark; animation-duration: 4.8s; animation-delay: -1.1s; }
:is([data-profile-effect="emperor"] > .profile-effect-layer,[data-profile-effect="emperor"] > .profile-effect-option-layer,.public-profile-card[data-profile-effect="emperor"] .public-profile-effect-layer,.code-profile-preview[data-profile-effect="emperor"] > .code-profile-effect-layer) i:nth-child(2) { left: 21%; top: 88%; width: 3px; height: 3px; animation-name: profile-emperor-character-spark; animation-duration: 5.4s; animation-delay: -3.4s; }
:is([data-profile-effect="emperor"] > .profile-effect-layer,[data-profile-effect="emperor"] > .profile-effect-option-layer,.public-profile-card[data-profile-effect="emperor"] .public-profile-effect-layer,.code-profile-preview[data-profile-effect="emperor"] > .code-profile-effect-layer) i:nth-child(3) { left: 41%; top: 78%; width: 4px; height: 4px; animation-name: profile-emperor-character-spark; animation-duration: 4.5s; animation-delay: -2.1s; }
:is([data-profile-effect="emperor"] > .profile-effect-layer,[data-profile-effect="emperor"] > .profile-effect-option-layer,.public-profile-card[data-profile-effect="emperor"] .public-profile-effect-layer,.code-profile-preview[data-profile-effect="emperor"] > .code-profile-effect-layer) i:nth-child(4) { left: 56%; top: 90%; width: 5px; height: 5px; animation-name: profile-emperor-character-spark; animation-duration: 5.7s; animation-delay: -.6s; }
:is([data-profile-effect="emperor"] > .profile-effect-layer,[data-profile-effect="emperor"] > .profile-effect-option-layer,.public-profile-card[data-profile-effect="emperor"] .public-profile-effect-layer,.code-profile-preview[data-profile-effect="emperor"] > .code-profile-effect-layer) i:nth-child(5) { left: 73%; top: 82%; width: 3px; height: 3px; animation-name: profile-emperor-character-spark; animation-duration: 4.2s; animation-delay: -4s; }
:is([data-profile-effect="emperor"] > .profile-effect-layer,[data-profile-effect="emperor"] > .profile-effect-option-layer,.public-profile-card[data-profile-effect="emperor"] .public-profile-effect-layer,.code-profile-preview[data-profile-effect="emperor"] > .code-profile-effect-layer) i:nth-child(6) { left: 91%; top: 72%; width: 4px; height: 4px; animation-name: profile-emperor-character-spark; animation-duration: 5.1s; animation-delay: -2.8s; }
@keyframes profile-emperor-character-aura { to { background-position: 100% 42%; box-shadow: inset 0 0 90px rgba(43,39,102,.3),inset 0 0 0 1px rgba(244,208,119,.24); } }
@keyframes profile-emperor-character-arrival { 0%,8% { opacity: 0; transform: translateX(-12%) scale(.96); } 20%,74% { opacity: .96; transform: translateX(0) scale(1); } 86% { opacity: .98; transform: translateX(2%) scale(1.018); } 100% { opacity: 0; transform: translateX(9%) scale(1.04); } }
@keyframes profile-emperor-random-explosion { 0%,52%,100% { opacity: 0; transform: translate(-50%,-50%) scale(.18); } 58% { opacity: .78; transform: translate(-50%,-50%) scale(.72); } 66% { opacity: .7; transform: translate(calc(-50% + var(--explosion-drift)),-54%) scale(1); } 82% { opacity: .3; transform: translate(calc(-50% + var(--explosion-drift)),-68%) scale(1.18); } 94% { opacity: 0; transform: translate(calc(-50% + var(--explosion-drift)),-78%) scale(1.28); } }
@keyframes profile-emperor-character-frame { to { border-color: rgba(248,215,132,.44); box-shadow: 0 0 30px rgba(211,157,52,.16),inset 0 0 42px rgba(75,52,153,.14); } }
@keyframes profile-emperor-character-spark { 0%,100% { opacity: 0; transform: translate(0,18px) rotate(45deg) scale(.4); } 24% { opacity: .95; } 58% { opacity: .72; transform: translate(13px,-52px) rotate(155deg) scale(1); } 82% { opacity: 0; transform: translate(-7px,-86px) rotate(230deg) scale(.55); } }

.auth-referral-field > small { display: block; margin: 4px 0 7px; color: #747780; font-size: 8px; font-weight: 500; }
.auth-referral-field input { text-transform: uppercase; letter-spacing: .08em; }
.affiliate-settings-copy { max-width: 760px; margin: -5px 0 22px; color: #858892; font-size: 11px; line-height: 1.65; }
.affiliate-settings-title { align-items: center; }
.affiliate-count-pill { min-height: 32px; padding: 0 11px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(106,234,195,.2); border-radius: 999px; background: rgba(80,218,178,.07); color: #89e8c4; font-size: 8px; font-style: normal; font-weight: 800; }
.affiliate-count-pill svg { width: 13px; height: 13px; }
.affiliate-code-card { position: relative; min-height: 112px; padding: 22px; display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 17px; overflow: hidden; border: 1px solid rgba(112,239,199,.2); border-radius: 12px; background: radial-gradient(circle at 85% 10%,rgba(111,104,255,.13),transparent 34%),linear-gradient(135deg,rgba(67,201,168,.1),rgba(17,20,27,.98)); }
.affiliate-code-card::after { content: ""; position: absolute; inset: -120% auto -120% -25%; width: 18%; background: linear-gradient(90deg,transparent,rgba(255,255,255,.09),transparent); transform: rotate(18deg); animation: creator-card-shine 4.5s ease-in-out infinite; pointer-events: none; }
.affiliate-code-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: rgba(105,238,196,.12); color: #86edca; }
.affiliate-code-icon svg { width: 24px; height: 24px; }
.affiliate-code-copy small,.affiliate-code-copy strong,.affiliate-code-copy span { display: block; }
.affiliate-code-copy small { color: #78a99a; font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.affiliate-code-copy strong { margin-top: 5px; color: #f1fff9; font-family: var(--display); font-size: clamp(22px,3vw,34px); letter-spacing: .08em; }
.affiliate-code-copy span { margin-top: 5px; color: #6f747e; font-size: 8px; }
.affiliate-copy-button { position: relative; z-index: 1; min-height: 40px; display: inline-flex; align-items: center; gap: 7px; background: #6bdfb8; color: #07120f; }
.affiliate-copy-button:hover { background: #93f0d0; }
.affiliate-copy-button svg { width: 14px; height: 14px; }
.affiliate-rewards-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.affiliate-rewards-grid > article { min-height: 120px; padding: 16px; display: grid; grid-template-columns: 96px minmax(0,1fr); align-items: center; gap: 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: #15171c; }
.affiliate-rewards-grid small,.affiliate-rewards-grid strong { display: block; }
.affiliate-rewards-grid small { color: #777b84; font-size: 8px; }
.affiliate-rewards-grid strong { margin-top: 3px; color: #e9ebed; font-size: 11px; }
.affiliate-rewards-grid p { margin: 6px 0 0; color: #696d76; font-size: 8px; line-height: 1.45; }
.affiliate-reward-preview { position: relative; min-height: 72px; display: grid; place-items: center; overflow: hidden; border-radius: 8px; background: #0b0d11; }
.affiliate-reward-preview.username b { overflow: visible; font-family: var(--display); font-size: 19px; }
.affiliate-reward-preview.profile { color: #88ebc9; background: radial-gradient(circle at 20% 20%,rgba(83,234,188,.2),transparent 34%),radial-gradient(circle at 80% 80%,rgba(180,128,255,.2),transparent 36%),#0b0d11; }
.affiliate-reward-preview.profile svg { width: 25px; height: 25px; filter: drop-shadow(0 0 8px rgba(89,225,190,.5)); }
.affiliate-message { min-height: 14px; margin-top: 11px; }
@media (max-width: 720px) { .affiliate-code-card { grid-template-columns: 42px minmax(0,1fr); } .affiliate-copy-button { grid-column: 1 / -1; justify-content: center; } .affiliate-rewards-grid { grid-template-columns: 1fr; } }
@keyframes profile-halo-spin { to { transform: rotate(360deg); } }
@keyframes profile-nebula { to { background-position: 80% 100%; filter: saturate(1.35) hue-rotate(16deg); } }
@keyframes profile-snowfall { to { transform: translate3d(10px,270px,0) rotate(180deg); opacity: .1; } }
@keyframes profile-scanline { to { transform: translateY(560%); } }
@keyframes profile-pumpkin-float { 50% { transform: translateY(-7px) rotate(8deg) scale(1.08); } }
@keyframes profile-creator-aura { to { background-position: 100% 80%; filter: drop-shadow(0 0 18px rgba(212,143,255,.4)); } }
@keyframes profile-blueyyyy-car-stunt { 0%,4% { left: -18%; top: 66%; opacity: 0; transform: rotate(0deg) scale(.88); } 7% { opacity: 1; } 15% { left: 23%; top: 52%; opacity: 1; transform: rotate(-18deg) scale(1); } 27% { left: 48%; top: 12%; opacity: 1; transform: rotate(180deg) scale(1.08); } 39% { left: 72%; top: 38%; opacity: 1; transform: rotate(360deg) scale(1); } 48% { left: 108%; top: 66%; opacity: 0; transform: rotate(360deg) scale(.9); } 49%,100% { left: 108%; top: 66%; opacity: 0; transform: rotate(360deg) scale(.9); } }

.public-profile-content { position: relative; isolation: isolate; }
.public-profile-hero,.public-profile-body { position: relative; z-index: 2; }
.public-kage-stats { margin: -4px 0 18px; overflow: hidden; border: 1px solid rgba(255,255,255,.09); border-radius: 11px; background: #20232f; box-shadow: 0 12px 30px rgba(0,0,0,.24); }
.public-kage-stats > header { min-height: 55px; padding: 10px 12px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid rgba(255,255,255,.07); }
.public-kage-stats > header img { width: 33px; height: 33px; flex: 0 0 auto; object-fit: contain; }
.public-kage-stats > header span { min-width: 0; flex: 1; }
.public-kage-stats > header strong,.public-kage-stats > header small { display: block; }
.public-kage-stats > header strong { color: #f2f3f7; font-size: 11px; }
.public-kage-stats > header small { margin-top: 2px; color: #8d92a2; font-size: 8px; }
.public-kage-stats > header svg { width: 18px; height: 18px; color: #d6dae7; }
.public-kage-stats-content { min-height: 103px; padding: 12px; display: grid; grid-template-columns: minmax(0,1fr) 82px; gap: 12px; }
.public-kage-stats-numbers { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.public-kage-stats-numbers > span { min-width: 0; padding: 10px; border-radius: 7px; background: #2a2d3a; }
.public-kage-stats-numbers > span:last-child { grid-column: 1 / -1; }
.public-kage-stats-numbers small,.public-kage-stats-numbers b { display: block; }
.public-kage-stats-numbers small { color: #8e93a3; font-size: 6px; letter-spacing: .05em; text-transform: uppercase; }
.public-kage-stats-numbers b { margin-top: 4px; color: #f5f5f7; font-size: 13px; }
.public-kage-stats-art { width: 82px; height: 100%; min-height: 79px; display: block; border-radius: 8px; object-fit: cover; }
.public-kage-stats-art.empty { display: grid; place-items: center; background: #2a2d3a; color: #595e70; font-family: serif; font-size: 34px; }
.public-kage-stats > footer { min-height: 48px; padding: 9px 12px; display: flex; align-items: center; gap: 9px; background: #2a2d39; }
.public-kage-stats > footer > svg { width: 17px; height: 17px; flex: 0 0 auto; color: #7eb6ff; }
.public-kage-stats > footer span { min-width: 0; flex: 1; }
.public-kage-stats > footer b,.public-kage-stats > footer small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.public-kage-stats > footer b { color: #e7e9f0; font-size: 9px; }
.public-kage-stats > footer small { margin-top: 2px; color: #9499aa; font-size: 7px; }
.public-kage-stats > footer em { flex: 0 0 auto; color: #777d8e; font-size: 7px; font-style: normal; }
@media (max-width: 800px) {
  .profile-effect-windows { grid-template-columns: 1fr; }
  .profile-effect-options { max-height: 286px; }
  .notification-category-grid { grid-template-columns: 1fr; }
  .notification-category-card { min-height: 92px; display: grid; grid-template-columns: 38px minmax(0,1fr); align-items: center; gap: 11px; }
  .notification-category-card > span:nth-of-type(2) { margin-top: 0; }
}
@media (max-width: 520px) {
  .profile-personalization-section { padding-inline: 14px; }
  .profile-personalization-title { align-items: flex-start; }
  .profile-personalization-live { margin-top: 5px; }
  .profile-customization-preview { min-height: 210px; }
  .profile-customization-banner { bottom: 76px; }
  .profile-customization-avatar { left: 17px; bottom: 26px; width: 76px; height: 76px; }
  .profile-customization-identity { left: 104px; right: 12px; bottom: 27px; }
  .profile-customization-identity > strong { font-size: 22px; }
  .profile-customization-identity > p { display: none; }
  .profile-effect-option { grid-template-columns: 61px minmax(0,1fr); }
  .profile-effect-option-preview { width: 61px; }
  .profile-badges-grid { grid-template-columns: 1fr; }
  .profile-badges-visibility > header em { display: none; }
  .notification-settings-title { align-items: flex-start; }
  .notification-platform-pill { margin-top: 4px; }
  .notification-delivery-card { align-items: stretch; flex-direction: column; }
  .notification-delivery-card label { justify-content: space-between; }
  .notification-channel-card { align-items: flex-start; flex-wrap: wrap; }
  .notification-test-button { width: 100%; }
}
.public-profile-body { padding: 5px 28px 30px; }
.public-profile-stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); gap: 10px; margin-bottom: 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.075); }
.public-profile-stat { padding: 14px 15px; border: 1px solid rgba(255,255,255,.075); border-radius: 10px; background: #111319; }
.public-profile-stat span,.public-profile-stat strong { display: block; }
.public-profile-stat span { color: #6f727a; font-size: 8px; letter-spacing: .09em; text-transform: uppercase; }
.public-profile-stat strong { margin-top: 6px; color: #dfe0e2; font-size: 13px; font-weight: 600; }
.public-profile-member-since { position: relative; min-height: 76px; padding-left: 46px; }
.public-profile-member-since > svg { position: absolute; left: 15px; top: 17px; width: 20px; height: 20px; color: #ff856f; filter: drop-shadow(0 0 8px rgba(255,117,91,.24)); }
.public-profile-widget { position: relative; min-height: 76px; padding-left: 46px; overflow: hidden; }
.public-profile-widget > svg { position: absolute; left: 15px; top: 17px; width: 20px; height: 20px; color: #ff856f; filter: drop-shadow(0 0 8px rgba(255,117,91,.24)); }
.public-profile-widget > button { position: absolute; right: 7px; top: 7px; width: 25px; height: 25px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 7px; background: transparent; color: #62656e; cursor: pointer; opacity: 0; transition: opacity .18s ease,background .18s ease,color .18s ease; }
.public-profile-widget:hover > button,.public-profile-widget > button:focus-visible { opacity: 1; }
.public-profile-widget > button:hover { background: rgba(255,105,82,.12); color: #ff8b77; }
.public-profile-widget > button svg { width: 13px; height: 13px; }
.public-profile-widget-manager { position: relative; margin-top: 11px; }
.public-profile-widget-manage { width: 100%; min-height: 39px; padding: 0 13px; display: flex; align-items: center; gap: 9px; border: 1px dashed rgba(255,137,113,.27); border-radius: 9px; background: rgba(255,105,82,.045); color: #a7a9b0; font: inherit; font-size: 9px; font-weight: 750; cursor: pointer; transition: border-color .18s ease,background .18s ease,color .18s ease; }
.public-profile-widget-manage:hover,.public-profile-widget-manage[aria-expanded="true"] { border-color: rgba(255,137,113,.5); background: rgba(255,105,82,.1); color: #f4c0b7; }
.public-profile-widget-manage svg { width: 14px; height: 14px; color: #ff856f; }
.public-profile-widget-manage svg:last-child { margin-left: auto; transition: transform .18s ease; }
.public-profile-widget-manage[aria-expanded="true"] svg:last-child { transform: rotate(180deg); }
.public-profile-widget-picker { margin-top: 8px; padding: 11px; display: grid; gap: 7px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: #0d0f13; box-shadow: 0 14px 35px rgba(0,0,0,.28); }
.public-profile-widget-picker.hidden { display: none; }
.public-profile-widget-picker > p { margin: 0 2px 3px; color: #72757e; font-size: 8px; line-height: 1.45; }
.public-profile-widget-picker > button { min-height: 42px; padding: 0 11px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid rgba(255,255,255,.075); border-radius: 8px; background: #14161b; color: #a5a7ae; cursor: pointer; }
.public-profile-widget-picker > button:hover { border-color: rgba(255,135,112,.35); color: #e9e9eb; }
.public-profile-widget-picker > button.active { border-color: rgba(255,135,112,.34); background: rgba(255,105,82,.08); color: #ffc1b6; }
.public-profile-widget-picker > button > span { display: flex; align-items: center; gap: 9px; }
.public-profile-widget-picker > button svg { width: 15px; height: 15px; color: #ff856f; }
.public-profile-widget-picker > button b { font-size: 9px; }
.public-profile-widget-picker > button em { color: #777a82; font-size: 8px; font-style: normal; font-weight: 700; }
.public-profile-widget-picker > button.active em { color: #ff9a87; }
.public-profile-section-title { margin: 0 0 12px; color: #74777f; font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.public-profile-badges { min-height: 28px; margin-top: 11px; display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.profile-badge { position: relative; width: 25px; height: 28px; display: inline-grid; place-items: center; border: 0; outline: 0; background: transparent; color: #ff8b78; filter: drop-shadow(0 3px 7px rgba(0,0,0,.28)); transition: transform .18s ease,filter .18s ease; }
.profile-badge:hover,.profile-badge:focus-visible { z-index: 5; transform: translateY(-2px) scale(1.08); filter: drop-shadow(0 4px 9px rgba(0,0,0,.4)); }
.profile-badge-tooltip { position: absolute; z-index: 6; left: 0; bottom: calc(100% + 10px); width: max-content; max-width: 210px; padding: 9px 11px; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; background: #090b10; box-shadow: 0 10px 28px rgba(0,0,0,.45); font-family: var(--body); line-height: 1.4; text-align: left; opacity: 0; pointer-events: none; transform: translateY(5px); transition: opacity .16s ease,transform .16s ease; }
.profile-badge-tooltip::after { content: ""; position: absolute; left: 7px; bottom: -5px; width: 8px; height: 8px; border-right: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); background: #090b10; transform: rotate(45deg); }
.profile-badge-tooltip strong,.profile-badge-tooltip small { display: block; }
.profile-badge-tooltip strong { color: #f2f2f3; font-size: 10px; font-weight: 800; }
.profile-badge-tooltip small { margin-top: 2px; color: #92959f; font-size: 9px; font-weight: 500; white-space: nowrap; }
.profile-badge:hover .profile-badge-tooltip,.profile-badge:focus-visible .profile-badge-tooltip { opacity: 1; transform: translateY(0); }
.profile-badge-icon { display: grid; place-items: center; }
.profile-badge[data-tone="gold"] { color: #f0c25f; }
.profile-badge[data-tone="blue"] { color: #78b2fa; }
.profile-badge[data-tone="pink"] { color: #f087b2; }
.profile-badge[data-tone="violet"] { color: #bd9cff; }
.profile-badge[data-tone="green"] { color: #63d9a0; }
.profile-badge[data-tone="orange"] { color: #ff8a3d; }
.badge-symbol { width: 18px; height: 18px; display: block; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.badge-symbol-image { object-fit: contain; image-rendering: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,.26)); }
.badge-symbol-fill { fill: currentColor; fill-opacity: .2; }
.badge-symbol-jewel,.badge-symbol-heart-mark { fill: currentColor; stroke: none; }
.badge-symbol-orbit { stroke-opacity: .42; stroke-dasharray: 2 2.3; }
.badge-symbol-spark { stroke-width: 1.3; }
.badge-symbol-code,.badge-symbol-support { stroke-width: 1.9; }
.community-role .badge-symbol { width: 14px; height: 14px; }
.moderation-badge .badge-symbol { width: 17px; height: 17px; }
.profile-badge-icon .badge-symbol { width: 21px; height: 21px; }
.public-profile-empty-badges { color: #777a84; font-size: 10px; }
.public-profile-badge-manager { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); }
.public-profile-badge-manager > div { display: flex; flex-wrap: wrap; gap: 7px; }
.public-profile-badge-manager button { min-height: 32px; padding: 0 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 6px; background: #0d0f13; color: #8b8e96; font-size: 9px; font-weight: 700; cursor: pointer; }
.public-profile-badge-manager button:hover { border-color: rgba(255,101,79,.45); color: #e6e5e2; }
.public-profile-badge-manager button.active { border-color: rgba(235,186,86,.32); background: rgba(235,186,86,.08); color: #ebba56; }
.public-profile-badge-manager button:disabled { opacity: .5; cursor: wait; }
.community-message-avatar[data-profile-id],.community-profile-name[data-profile-id] { cursor: pointer; }
.community-profile-name[data-profile-id]:hover { color: var(--accent-hover); }
.community-profile-badges { display: inline-flex; align-items: center; gap: 3px; }
.community-profile-badge { width: 17px; height: 17px; display: inline-grid; place-items: center; color: #ff765f; line-height: 1; filter: drop-shadow(0 2px 5px rgba(0,0,0,.28)); }
.community-profile-badge[data-tone="gold"] { color: #d9a84e; }
.community-profile-badge[data-tone="blue"] { color: #78b2fa; }
.community-profile-badge[data-tone="pink"] { color: #f087b2; }
.community-profile-badge[data-tone="violet"] { color: #b896ff; }
.community-profile-badge[data-tone="green"] { color: #63d9a0; }
.community-profile-badge[data-tone="orange"] { color: #ff8a3d; }
.watch-chat-badge[data-tone="orange"] { color: #ff8a3d; }
.badge-symbol-pumpkin { stroke-width: 1.8; filter: drop-shadow(0 0 4px rgba(255,112,31,.42)); }
.community-profile-badge .badge-symbol { width: 13px; height: 13px; }
@media (max-width: 520px) {
  .public-profile-widget > button { opacity: 1; }
  .public-profile-shell { padding: 10px; align-items: end; }
  .public-profile-card { width: calc(100vw - 20px); max-width: 100%; max-height: calc(100dvh - 10px); border-radius: 18px 18px 0 0; }
  .public-profile-card > .modal-close { position: fixed; top: max(12px,env(safe-area-inset-top)); right: max(12px,env(safe-area-inset-right)); z-index: 20; width: 42px; height: 42px; display: grid; place-items: center; }
  .public-profile-hero { height: 148px; }
  .public-profile-banner { bottom: 40px; }
  .public-profile-avatar { left: 22px; width: 92px; height: 92px; }
  .public-profile-body { padding: 5px 22px max(28px,env(safe-area-inset-bottom)); }
  .public-profile-identity h2 { font-size: 27px; }
  .public-profile-name-row { align-items: flex-start; }
  .public-profile-like,.public-profile-like-count { min-height: 34px; padding: 0 10px; }
  .public-profile-like span { display: none; }
  .public-profile-effects-button { min-height: 31px; padding: 0 9px; }
  .username-effects-grid { grid-template-columns: 1fr; }
  .username-effect-choice:first-child { grid-column: auto; }
  .username-effect-choice.creator { grid-column: auto; }
}
.detail-modal { position: relative; width: min(1040px, 94vw); max-height: 92vh; overflow-y: auto; border-radius: 10px; background: #15171d; box-shadow: 0 30px 100px #000; transform: translateY(20px) scale(.98); transition: .3s; scrollbar-width: thin; }
.modal-shell.open .detail-modal { transform: none; }
.modal-close { position: absolute; z-index: 4; right: 18px; top: 16px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(8,9,12,.72); color: white; font-size: 25px; cursor: pointer; }
.modal-art { height: 390px; background-size: cover; background-position: center; position: relative; }
.modal-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,#15171d,transparent 80%); }
.modal-body { position: relative; padding: 0 48px 45px; margin-top: -80px; }
.modal-body h2 { position: relative; margin: 0 0 14px; font-family: var(--display); font-size: clamp(34px,5vw,56px); letter-spacing: -.05em; max-width: 700px; }
.modal-description { max-width: 660px; color: #c2c3c7; line-height: 1.65; }
.circle-button { width: 48px; height: 48px; border: 1px solid #62646b; background: rgba(0,0,0,.18); border-radius: 50%; font-size: 24px; cursor: pointer; }
.circle-button.saved { background: var(--coral); border-color: var(--coral); }
.episode-zone { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 22px; }
.episode-zone:empty { display: none; }
.season-select { width: 100%; display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.season-select h3 { margin: 0; font-family: var(--display); }
.season-select select { background: #22252d; color: white; border: 1px solid var(--line); padding: 8px 12px; border-radius: 4px; }
.episode-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; max-height: 430px; padding-right: 5px; overflow: auto; scrollbar-width: thin; }
.episode { position: relative; min-width: 0; display: grid; grid-template-columns: 152px minmax(0,1fr); align-items: stretch; padding: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.075); border-radius: 8px; color: #e6e7ea; background: #111319; cursor: pointer; text-align: left; transition: transform .2s ease,border-color .2s ease,background .2s ease; }
.episode:hover { transform: translateY(-2px); border-color: rgba(255,107,85,.42); background: #171a21; }
.episode-thumb { position: relative; min-height: 92px; overflow: hidden; background: linear-gradient(135deg,#252935,#12141a); }
.episode-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center var(--episode-position,50%); filter: saturate(.92) contrast(1.03); transition: transform .35s ease,filter .35s ease; }
.episode-fallback { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(255,255,255,.5); font-family: var(--display); font-size: 30px; }
.episode:hover .episode-thumb img { transform: scale(1.045); filter: saturate(1.08) contrast(1.05); }
.episode-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,transparent 50%,#111319 100%),linear-gradient(0deg,rgba(4,5,8,.5),transparent 55%); }
.episode-play { position: absolute; z-index: 1; left: 10px; bottom: 9px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.92); color: #101116; font-size: 9px; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.episode-play svg { width: 12px; height: 12px; fill: currentColor; }
.episode-content { min-width: 0; display: flex; justify-content: center; flex-direction: column; gap: 7px; padding: 14px 15px 14px 13px; }
.episode-number { color: var(--coral-light); font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.episode-title { overflow: hidden; color: #f0f0f2; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.episode-languages { display: flex; flex-wrap: wrap; gap: 5px; }
.episode-languages small { padding: 3px 6px; border-radius: 3px; background: rgba(126,241,185,.08); color: var(--green); font-size: 9px; font-weight: 700; }
.loading { min-height: 90px; display: grid; place-items: center; color: #8e9097; font-size: 13px; }
.sr-only { position: absolute!important; width: 1px!important; height: 1px!important; padding: 0!important; overflow: hidden!important; clip: rect(0,0,0,0)!important; white-space: nowrap!important; border: 0!important; }
.detail-content-tabs { display: flex; gap: 7px; margin-top: 34px; padding: 5px; width: fit-content; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: #0d0f13; }
.detail-content-tabs button { min-height: 36px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border: 0; border-radius: 7px; background: transparent; color: #777b84; font: inherit; font-size: 10px; font-weight: 800; cursor: pointer; transition: .18s ease; }
.detail-content-tabs button:hover { color: #d8d9dd; background: rgba(255,255,255,.04); }
.detail-content-tabs button.active { color: white; background: var(--coral); box-shadow: 0 7px 20px rgba(255,101,79,.18); }
.detail-content-tabs svg { width: 14px; height: 14px; }
.detail-content-tabs button span { min-width: 16px; padding: 2px 5px; border-radius: 99px; background: rgba(0,0,0,.2); font-size: 8px; }
.detail-content-tabs button span:empty { display: none; }
.detail-tab-panel { animation: detail-panel-in .2s ease both; }
@keyframes detail-panel-in { from { opacity: 0; transform: translateY(5px); } }
.anime-comments { margin-top: 18px; padding-top: 22px; border-top: 1px solid var(--line); }
.anime-comments-header { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.anime-comments-icon { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(255,107,85,.18); border-radius: 10px; background: rgba(255,107,85,.08); color: var(--coral-light); }
.anime-comments-icon svg { width: 18px; height: 18px; }
.anime-comments-header small,.anime-comments-header h3 { display: block; }
.anime-comments-header small { color: var(--coral-light); font-size: 8px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.anime-comments-header h3 { margin: 3px 0 0; font-family: var(--display); font-size: 20px; }
.anime-comments-count { margin-left: auto; color: #7e8189; font-size: 10px; }
.anime-comments-feed { display: grid; gap: 10px; }
.anime-comments-loading,.anime-comments-empty,.anime-comments-error { min-height: 92px; display: grid; place-items: center; padding: 20px; border: 1px dashed rgba(255,255,255,.09); border-radius: 10px; color: #787b84; font-size: 11px; text-align: center; }
.anime-comments-empty strong { display: block; margin-bottom: 5px; color: #cfd0d4; font-size: 12px; }
.anime-comments-error { color: #ff9785; }
.anime-comment { display: grid; grid-template-columns: 40px minmax(0,1fr); gap: 12px; padding: 14px 15px; border: 1px solid rgba(255,255,255,.07); border-radius: 10px; background: #111319; }
.anime-comment-avatar,.anime-comment-avatar-current { position: relative; width: 40px; height: 40px; display: grid; place-items: center; overflow: visible; border: 1px solid rgba(255,107,85,.2); border-radius: 11px; background: rgba(255,107,85,.09); color: var(--coral-light); font-size: 11px; font-weight: 900; cursor: pointer; }
.anime-comment-avatar > .community-avatar-photo,.anime-comment-avatar > .community-avatar-fallback { overflow: hidden; border-radius: inherit; }
.anime-comment-avatar .community-avatar-decoration { inset: -16%; width: 132%; height: 132%; }
.anime-comment-body { min-width: 0; }
.anime-comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; min-height: 20px; color: #71747d; font-size: 9px; }
.anime-comment-meta strong { color: #dcdee2; font-size: 10px; cursor: pointer; }
.anime-comment-meta strong:hover { color: var(--coral-light); }
.anime-comment-you { color: #ff9c8b; font-size: 8px; font-style: normal; font-weight: 800; }
.anime-comment-delete { width: 27px; height: 27px; margin-left: auto; display: grid; place-items: center; border: 0; border-radius: 7px; background: transparent; color: #747780; cursor: pointer; }
.anime-comment-delete:hover { background: rgba(255,107,85,.1); color: #ff8f7b; }
.anime-comment-delete:disabled { opacity: .45; cursor: wait; }
.anime-comment-delete svg { width: 14px; height: 14px; }
.anime-comment p { margin: 6px 0 0; color: #cfd0d5; font-size: 12px; line-height: 1.58; overflow-wrap: anywhere; white-space: pre-wrap; }
.anime-comment-actions { display: flex; align-items: center; gap: 5px; margin-top: 9px; }
.anime-comment-actions button { min-height: 28px; display: inline-flex; align-items: center; gap: 5px; padding: 0 8px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #777b84; font: inherit; font-size: 9px; font-weight: 700; cursor: pointer; }
.anime-comment-actions button:hover { background: rgba(255,255,255,.045); color: #d7d9de; }
.anime-comment-actions button.active { border-color: rgba(126,241,185,.18); background: rgba(126,241,185,.08); color: var(--green); }
.anime-comment-actions button.active.dislike { border-color: rgba(255,107,85,.2); background: rgba(255,107,85,.08); color: var(--coral-light); }
.anime-comment-actions svg { width: 13px; height: 13px; }
.anime-comment-replies { display: grid; gap: 8px; margin-top: 10px; padding-left: 14px; border-left: 2px solid rgba(255,107,85,.12); }
.anime-comment-reply { grid-template-columns: 32px minmax(0,1fr); padding: 11px; background: #0d0f14; }
.anime-comment-reply .anime-comment-avatar { width: 32px; height: 32px; border-radius: 8px; }
.anime-reply-context { display: flex; align-items: center; gap: 4px; padding: 7px 10px 0; color: #777b84; font-size: 9px; }
.anime-reply-context strong { color: var(--coral-light); }
.anime-reply-context button { width: 22px; height: 22px; margin-left: auto; display: grid; place-items: center; border: 0; background: transparent; color: #888b93; cursor: pointer; }
.anime-reply-context svg { width: 12px; height: 12px; }
.anime-comment-form { margin-top: 14px; display: grid; grid-template-columns: 40px minmax(0,1fr) auto; align-items: end; gap: 11px; padding: 14px; border: 1px solid rgba(255,255,255,.075); border-radius: 11px; background: #0f1116; }
.anime-comment-avatar-current { cursor: default; overflow: hidden; background: var(--coral); color: white; }
.anime-comment-avatar-current img { width: 100%; height: 100%; object-fit: cover; }
.anime-comment-field { min-width: 0; overflow: hidden; border: 1px solid #2d3038; border-radius: 8px; background: #090b0f; transition: border-color .18s; }
.anime-comment-field:focus-within { border-color: rgba(255,107,85,.58); }
.anime-comment-field textarea { width: 100%; min-height: 62px; max-height: 150px; padding: 10px 12px 5px; resize: vertical; border: 0; outline: 0; background: transparent; color: white; font: inherit; font-size: 11px; line-height: 1.5; }
.anime-comment-field > span:last-child { display: flex; justify-content: space-between; gap: 12px; padding: 0 12px 8px; color: #646871; font-size: 8px; }
.anime-comment-field em { overflow: hidden; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.anime-comment-field b { color: #797d86; font-weight: 700; }
.anime-comment-submit { min-height: 40px; padding: 0 15px; gap: 7px; }
.anime-comment-submit svg { width: 14px; height: 14px; }
.anime-comment-submit:disabled { opacity: .48; cursor: wait; transform: none; }
@media (max-width: 680px) {
  .anime-comments { margin-top: 26px; padding-top: 22px; }
  .anime-comment { grid-template-columns: 34px minmax(0,1fr); padding: 12px; }
  .anime-comment-avatar { width: 34px; height: 34px; }
  .anime-comment-form { grid-template-columns: 34px minmax(0,1fr); align-items: start; }
  .anime-comment-avatar-current { width: 34px; height: 34px; }
  .anime-comment-submit { grid-column: 2; justify-self: end; }
  .anime-comment-field > span:last-child em { display: none; }
}

.player-shell { position: fixed; inset: 0; z-index: 100; background: #030406; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: .25s; }
.player-shell.open { opacity: 1; visibility: visible; }
.player-close { position: absolute; z-index: 2; right: 24px; top: 18px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); font-size: 28px; cursor: pointer; }
.player-stage { width: min(1200px,100vw); aspect-ratio: 16 / 9; max-height: 100vh; background: #0d0f14; position: relative; display: flex; flex-direction: column; }
.kage-player { position: relative; min-height: 0; flex: 1; overflow: hidden; background: radial-gradient(circle at 50% 42%,#161921,#030406 72%); isolation: isolate; }
.kage-player video { width: 100%; height: 100%; display: block; object-fit: contain; background: #030406; cursor: pointer; }
.player-fallback-frame { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; border: 0; background: #030406; }
.player-compatibility { position: absolute; z-index: 4; left: 12px; top: 12px; max-width: min(330px,calc(100% - 24px)); padding: 7px 10px; display: flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.1); border-radius: 4px; background: rgba(8,9,12,.84); color: #a7a8ad; font-size: 9px; pointer-events: none; backdrop-filter: blur(12px); }
.player-compatibility b { color: var(--coral-light); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.player-compatibility small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-vignette { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg,rgba(3,4,6,.34),transparent 24%,transparent 62%,rgba(3,4,6,.84)); transition: opacity .25s ease; }
.player-loading,.player-error { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; padding: 28px; background: radial-gradient(circle at 50% 45%,rgba(31,35,45,.9),rgba(3,4,6,.97) 68%); text-align: center; }
.player-loading strong,.player-error strong { font-family: var(--display); font-size: 18px; letter-spacing: -.02em; }
.player-loading small,.player-error small { color: #91949d; font-size: 12px; }
.player-error strong { color: var(--coral-light); }
.player-retry { min-height: 38px; margin-top: 10px; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.18); border-radius: 5px; background: var(--coral); color: white; font: 800 11px var(--body); cursor: pointer; }
.player-retry:hover { background: var(--coral-light); }
.player-retry svg { width: 15px; height: 15px; }
.player-spinner { width: 36px; height: 36px; margin-bottom: 10px; border: 2px solid rgba(255,255,255,.14); border-top-color: var(--coral); border-radius: 50%; animation: player-spin .8s linear infinite; }
@keyframes player-spin { to { transform: rotate(360deg); } }
.player-center-play { position: absolute; left: 50%; top: 50%; z-index: 4; width: 72px; height: 72px; border: 1px solid rgba(255,255,255,.32); border-radius: 50%; background: rgba(8,9,12,.76); color: white; font-size: 24px; padding: 2px 0 0 5px; transform: translate(-50%,-50%); backdrop-filter: blur(12px); box-shadow: 0 18px 55px rgba(0,0,0,.45),0 0 0 10px rgba(255,255,255,.035); cursor: pointer; transition: transform .2s,background .2s; }
.player-center-play:hover { background: var(--coral); transform: translate(-50%,-50%) scale(1.05); }
.kage-controls { position: absolute; inset: auto 0 0; z-index: 5; padding: 36px 22px 17px; background: linear-gradient(transparent,rgba(3,4,6,.94)); opacity: 1; transition: opacity .25s ease; }
.kage-player.controls-hidden { cursor: none; }
.kage-player.controls-hidden .kage-controls,.kage-player.controls-hidden .player-vignette { opacity: 0; pointer-events: none; }
.player-controls-row { display: flex; align-items: center; gap: 10px; }
.control-button { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #f7f7f4; font-size: 15px; cursor: pointer; transition: color .2s,background .2s,transform .2s; }
.control-button:hover { color: var(--coral-light); transform: scale(1.08); }
.control-button.primary { background: var(--coral); color: white; font-size: 12px; padding-left: 2px; }
.control-button.primary:hover { background: var(--coral-light); color: white; }
.player-progress,.player-volume { --progress: 0%; height: 4px; margin: 0; appearance: none; border-radius: 999px; background: linear-gradient(90deg,var(--coral) var(--progress),rgba(255,255,255,.24) var(--progress)); cursor: pointer; }
.player-progress { width: 100%; display: block; margin-bottom: 12px; }
.player-progress:disabled { cursor: wait; opacity: .5; }
.player-volume { --progress: 100%; width: 82px; height: 3px; }
.player-progress::-webkit-slider-thumb,.player-volume::-webkit-slider-thumb { width: 12px; height: 12px; appearance: none; border: 2px solid white; border-radius: 50%; background: var(--coral); box-shadow: 0 2px 8px rgba(0,0,0,.5); }
.player-progress::-moz-range-thumb,.player-volume::-moz-range-thumb { width: 9px; height: 9px; border: 2px solid white; border-radius: 50%; background: var(--coral); }
.player-time { display: flex; align-items: center; gap: 6px; color: #9497a0; font-size: 10px; font-variant-numeric: tabular-nums; }
.player-time b { color: white; font-weight: 700; }
.player-time i { color: #555963; font-style: normal; }
.player-brand { margin-left: auto; color: rgba(255,255,255,.86); font-family: var(--display); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.player-brand em { color: var(--coral-light); font-style: normal; }
.settings-button svg { width: 18px; height: 18px; }
.settings-button[aria-expanded="true"] { background: rgba(255,107,85,.16); color: var(--coral-light); }
.player-settings-menu { position: absolute; right: 18px; bottom: 68px; z-index: 8; width: min(310px,calc(100% - 24px)); max-height: min(430px,calc(100% - 88px)); padding: 8px; overflow-y: auto; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: rgba(16,18,23,.97); box-shadow: 0 22px 70px rgba(0,0,0,.58); backdrop-filter: blur(20px); opacity: 0; visibility: hidden; transform: translateY(8px) scale(.98); transform-origin: right bottom; transition: opacity .18s,visibility .18s,transform .18s; }
.player-settings-menu.open { opacity: 1; visibility: visible; transform: none; }
.player-settings-menu::after { content: ""; position: absolute; right: 47px; bottom: -6px; width: 10px; height: 10px; border-right: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); background: #101217; transform: rotate(45deg); }
.settings-menu-head { display: flex; align-items: baseline; justify-content: space-between; padding: 10px 11px 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
.settings-menu-head strong { font-family: var(--display); font-size: 13px; }
.settings-menu-head small { color: var(--coral-light); font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.player-setting-row { min-height: 58px; padding: 9px 10px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-radius: 5px; cursor: pointer; transition: background .18s; }
.player-setting-row:hover { background: rgba(255,255,255,.045); }
.player-setting-row > span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.player-setting-row b { color: #f4f4f1; font-size: 11px; font-weight: 700; }
.player-setting-row small { color: #777b85; font-size: 9px; white-space: nowrap; }
.player-setting-row select { width: 104px; height: 32px; padding: 0 26px 0 9px; border: 1px solid #343842; border-radius: 4px; background: #1b1e25; color: white; font: 700 10px var(--body); color-scheme: dark; cursor: pointer; }
.player-setting-row select:hover,.player-setting-row select:focus-visible { border-color: var(--coral); outline: none; }
.player-setting-row select:disabled { opacity: .55; cursor: wait; }
.player-setting-category { display: block; padding: 12px 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
.player-setting-category:last-child { border-bottom: 0; }
.setting-category-head { display: flex; align-items: center; gap: 10px; }
.setting-category-head > span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.setting-category-head b { color: #f4f4f1; font-size: 11px; font-weight: 700; }
.setting-category-head small { overflow: hidden; color: #777b85; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.setting-category-icon { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(255,107,85,.22); border-radius: 6px; background: rgba(255,107,85,.09); color: var(--coral-light); font: 800 9px var(--display); font-style: normal; }
.setting-category-select { width: 100%; height: 34px; margin-top: 10px; padding: 0 30px 0 10px; border: 1px solid #343842; border-radius: 4px; background: #1b1e25; color: white; font: 700 10px var(--body); color-scheme: dark; cursor: pointer; }
.setting-category-select:hover,.setting-category-select:focus-visible { border-color: var(--coral); outline: none; }
.setting-category-select:disabled { opacity: .6; cursor: not-allowed; }
.settings-source-group { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; margin-top: 10px; }
.settings-source-group .source-button { min-width: 0; display: flex; align-items: center; justify-content: flex-start; gap: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.settings-source-group .source-button i { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: #626671; box-shadow: 0 0 0 3px rgba(255,255,255,.035); }
.settings-source-group .source-button.active i { background: white; box-shadow: 0 0 0 3px rgba(255,255,255,.18); }
.compatibility-mode .kage-controls { padding: 10px 16px; background: none; pointer-events: none; }
.compatibility-mode .player-controls-row { justify-content: flex-end; }
.compatibility-mode .player-progress,.compatibility-mode #playerToggle,.compatibility-mode #playerMute,.compatibility-mode .player-volume,.compatibility-mode .player-time,.compatibility-mode .player-brand { display: none; }
.compatibility-mode .settings-button,.compatibility-mode #playerFullscreen { background: rgba(8,9,12,.78); pointer-events: auto; backdrop-filter: blur(10px); }
.kage-player:fullscreen { width: 100vw; height: 100vh; }
.player-toolbar { min-height: 58px; padding: 9px 72px 9px 14px; display: flex; align-items: center; gap: 9px; background: #111319; border-bottom: 1px solid var(--line); }
.player-toolbar strong { margin-right: auto; max-width: 38%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--display); font-size: 13px; }
.player-toolbar-field { min-width: 142px; display: flex; flex-direction: column; gap: 4px; }
.player-toolbar-field > span { color: #777b85; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.player-toolbar-field .language-select { width: 100%; }
.player-toolbar-field .source-select { min-width: 150px; }
.embedded-source-player { width: 100%; min-height: 0; flex: 1; display: block; border: 0; background: #030406; }
.source-group { display: flex; gap: 5px; }
.source-button { min-height: 32px; padding: 0 10px; border: 1px solid #373a43; border-radius: 3px; background: #1c1f27; color: #bfc1c7; font-size: 11px; cursor: pointer; }
.source-button:hover, .source-button.active { background: var(--coral); border-color: var(--coral); color: white; }
.language-select { min-height: 32px; padding: 0 32px 0 11px; border: 1px solid #373a43; border-radius: 3px; background: #1c1f27; color: white; font: 600 11px var(--sans); cursor: pointer; color-scheme: dark; }
.language-select:hover, .language-select:focus-visible { border-color: var(--coral); outline: none; }
.player-note { position: absolute; left: 14px; bottom: 12px; z-index: 2; padding: 7px 10px; border-radius: 3px; background: rgba(0,0,0,.72); color: #aeb0b6; font-size: 10px; pointer-events: none; opacity: 0; animation: note-out 5s both; }
@keyframes note-out { 0%,70% { opacity: 1; } 100% { opacity: 0; } }
.player-demo { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 40%,#252c45,#090a0f 60%); text-align: center; }
.pulse-play { width: 78px; height: 78px; display: grid; place-items: center; border-radius: 50%; background: white; color: #111; box-shadow: 0 0 0 16px rgba(255,255,255,.05); }
.pulse-play svg { width: 29px; height: 29px; fill: currentColor; }
.player-demo p { margin: 30px 0 6px; font-family: var(--display); font-size: 20px; }
.player-demo small { color: #82848c; }
.toast { position: fixed; z-index: 120; bottom: 25px; left: 50%; transform: translate(-50%, 20px); padding: 12px 18px; background: white; color: #111; border-radius: 4px; font-size: 13px; font-weight: 600; opacity: 0; visibility: hidden; transition: .25s; }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%,0); }
.hidden { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

.auth-shell { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: .25s; }
.auth-shell.open { opacity: 1; visibility: visible; }
.auth-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.78); backdrop-filter: blur(10px); }
.auth-card { position: relative; width: min(460px, calc(100vw - 32px)); max-height: 92vh; overflow-y: auto; padding: 38px 42px 42px; border: 1px solid var(--line); border-radius: 10px; background: radial-gradient(circle at 100% 0,rgba(255,107,85,.1),transparent 32%),#12141a; box-shadow: 0 30px 100px #000; transform: translateY(18px); transition: .25s; }
.auth-shell.open .auth-card { transform: none; }
.auth-brand { margin-bottom: 48px; width: fit-content; }
.auth-brand img { height: 46px; }
.auth-card h2 { margin: 0; font-family: var(--display); font-size: 38px; letter-spacing: -.05em; }
.auth-intro, .verification-copy { color: var(--muted); line-height: 1.55; font-size: 14px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 28px 0 22px; border-bottom: 1px solid var(--line); }
.auth-tabs button { position: relative; padding: 12px 5px; border: 0; background: none; color: #85878e; cursor: pointer; font-size: 13px; }
.auth-tabs button.active { color: white; }
.auth-tabs button.active::after { content: ""; position: absolute; inset: auto 0 -1px; height: 2px; background: var(--coral); }
.auth-discord-button { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 11px; border: 1px solid rgba(255,107,85,.3); border-radius: 5px; background: rgba(255,107,85,.12); color: white; font-size: 13px; font-weight: 800; text-decoration: none; box-shadow: 0 10px 28px rgba(0,0,0,.2); transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.auth-discord-button:hover { transform: translateY(-1px); background: rgba(255,107,85,.22); border-color: rgba(255,137,117,.58); }
.auth-discord-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; }
.auth-discord-button .discord-mark { width: 22px; }
.auth-discord-button.disabled { opacity: .45; pointer-events: none; box-shadow: none; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: #70737c; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.auth-divider::before,.auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.auth-form { display: grid; gap: 16px; }
.auth-form label { display: grid; gap: 7px; color: #c7c8cc; font-size: 12px; }
.auth-form input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid #343741; border-radius: 4px; outline: 0; background: #0c0e13; color: white; transition: border-color .2s; }
.auth-form input:focus { border-color: var(--coral); }
.auth-form .button { width: 100%; margin-top: 5px; }
.auth-form .auth-forgot { justify-self: end; margin-top: -8px; padding-block: 0; color: #a8aab1; font-size: 11px; }
.auth-form .auth-forgot:hover { color: var(--coral-light); }
.form-message { min-height: 18px; margin: 0; color: #ff927f; font-size: 12px; line-height: 1.45; }
.form-message.success { color: var(--green); }
.text-button { justify-self: center; border: 0; background: none; color: #a8aab1; font-size: 12px; cursor: pointer; }
.text-button:hover { color: white; text-decoration: underline; }
.text-button.danger { color: #ff927f; margin-top: 20px; }
.auth-card.dashboard-card { width: min(1080px, calc(100vw - 32px)); padding: 34px; }
.account-view { text-align: left; }
.dashboard-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-top: 18px; }
.dashboard-hero .eyebrow { margin-top: 0; }
.dashboard-hero h2 { font-size: clamp(42px, 6vw, 72px); line-height: .92; }
.dashboard-copy { max-width: 520px; margin: 16px 0 0; color: var(--muted); line-height: 1.6; }
.account-chip { min-width: 310px; display: flex; align-items: center; gap: 13px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.035); }
.account-avatar { position: relative; width: 58px; height: 58px; flex: 0 0 58px; display: grid; place-items: center; overflow: visible; border-radius: 50%; background: var(--coral); color: white; font-weight: 800; cursor: pointer; }
.account-avatar > img:not(.avatar-decoration) { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar-decoration { position: absolute; z-index: 3; inset: -16%; width: 132% !important; height: 132% !important; max-width: none; object-fit: contain !important; pointer-events: none; }
.profile .avatar-decoration { inset: -18%; width: 136% !important; height: 136% !important; }
.avatar-edit { position: absolute; z-index: 4; inset: auto 0 0; height: 20px; display: grid; place-items: center; background: rgba(0,0,0,.68); color: white; font-size: 11px; opacity: 0; transition: opacity .2s; }
.account-avatar:hover .avatar-edit, .account-avatar:focus-within .avatar-edit { opacity: 1; }
.account-chip small, .dashboard-stats small, .dashboard-card-action small { display: block; color: #8d9098; font-size: 11px; }
.account-chip strong { display: block; max-width: 170px; margin-top: 3px; color: #f2f2f4; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar-actions { display: flex; gap: 10px; margin-top: 6px; }
.avatar-actions .text-button { padding: 0; justify-self: auto; font-size: 11px; }
.avatar-actions .text-button.danger { margin: 0; }
.avatar-message { min-height: 0; max-width: 205px; margin-top: 5px; }
.dashboard-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 30px 0 14px; }
.dashboard-stats article { padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(145deg,rgba(255,255,255,.055),rgba(255,255,255,.018)); }
.dashboard-stats strong { display: block; margin: 8px 0 3px; font-family: var(--display); font-size: 32px; line-height: 1; }
.dashboard-stats span { color: #c5c7cc; font-size: 12px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dashboard-card-action { min-height: 168px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #11141b; color: white; text-align: left; cursor: pointer; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.dashboard-card-action:hover { transform: translateY(-2px); border-color: rgba(255,107,85,.6); background: #171a22; }
.dashboard-icon { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 50%; background: rgba(255,107,85,.12); color: var(--coral-light); font-size: 18px; }
.dashboard-card-action strong { display: block; margin-bottom: 7px; font-family: var(--display); font-size: 20px; }
.dashboard-card-action small { line-height: 1.45; }
.two-factor-panel { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 22px; margin: 0; padding: 6px 0 0; }
.two-factor-summary { display: flex; align-items: center; gap: 16px; min-width: 0; }
.security-mark { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; border: 1px solid rgba(255,107,85,.25); border-radius: 14px; background: rgba(255,107,85,.09); color: var(--coral-light); }
.security-mark svg { width: 27px; height: 27px; fill: none; stroke: currentColor; }
.two-factor-label { display: block; margin-bottom: 5px; color: #858993; font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.two-factor-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.two-factor-panel h3 { margin: 0; font-family: var(--display); font-size: 23px; letter-spacing: -.03em; }
.two-factor-panel p { margin: 5px 0 0; color: var(--muted); line-height: 1.5; font-size: 12px; }
.two-factor-badge { padding: 4px 8px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; color: #9498a2; background: rgba(255,255,255,.035); font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.two-factor-badge.enabled { border-color: rgba(255,107,85,.26); background: rgba(255,107,85,.09); color: var(--coral-light); }
.two-factor-actions { display: flex; align-items: center; gap: 10px; }
.two-factor-setup { grid-column: 1 / -1; display: grid; gap: 20px; margin-top: 10px; padding: 24px; border-radius: 10px; background: #0d1016; box-shadow: inset 0 0 0 1px rgba(255,255,255,.065); }
.setup-intro span { color: var(--coral-light); font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.setup-intro h4 { margin: 6px 0 0; font-family: var(--display); font-size: 20px; letter-spacing: -.02em; }
.setup-steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.setup-steps > li { position: relative; display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 13px; padding: 0 0 22px; }
.setup-steps > li:last-child { padding-bottom: 0; }
.setup-steps > li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 33px; bottom: 5px; width: 1px; background: #292d36; }
.step-number { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #353943; border-radius: 50%; background: #151820; color: #d7d9de; font-size: 11px; font-weight: 800; }
.setup-steps strong, .disable-copy strong { display: block; padding-top: 2px; color: #f1f1f3; font-size: 13px; }
.setup-steps p, .disable-copy p { margin: 4px 0 0; font-size: 11px; }
.authenticator-enrolment { display: grid; grid-template-columns: 154px minmax(0,1fr); align-items: center; gap: 18px; max-width: 580px; margin-top: 13px; }
.qr-card { margin: 0; padding: 10px 10px 8px; border-radius: 9px; background: #fff; color: #24262c; text-align: center; box-shadow: 0 10px 32px rgba(0,0,0,.22); }
.qr-card img { width: 134px; height: 134px; display: block; object-fit: contain; image-rendering: crisp-edges; }
.qr-card figcaption { margin-top: 5px; font-size: 8px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.manual-key > span { display: block; color: #8d9099; font-size: 10px; font-weight: 700; }
.secret-row { display: flex; align-items: stretch; max-width: 520px; margin-top: 10px; }
.two-factor-setup code { min-width: 0; flex: 1; padding: 12px 14px; border: 1px solid #30343e; border-right: 0; border-radius: 6px 0 0 6px; background: #080a0f; color: var(--coral-light); font-size: 12px; letter-spacing: .08em; overflow-wrap: anywhere; }
.copy-secret { padding: 0 14px; border: 1px solid #30343e; border-radius: 0 6px 6px 0; background: #181b23; color: #d7d9de; font-size: 11px; font-weight: 700; cursor: pointer; }
.copy-secret:hover { background: #222630; color: white; }
.authenticator-link { display: inline-block; margin-top: 9px; color: var(--coral-light); font-size: 11px; }
.verification-step label { display: grid; gap: 3px; }
.verification-step label span { color: var(--muted); font-size: 11px; }
.verification-row { display: flex; gap: 8px; max-width: 390px; margin-top: 10px; }
.two-factor-setup input { min-width: 0; width: 100%; height: 44px; padding: 0 14px; border: 1px solid #343741; border-radius: 5px; outline: 0; background: #080a0f; color: white; font-size: 16px; font-weight: 700; letter-spacing: .22em; }
.two-factor-setup input:focus { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(255,107,85,.08); }
.two-factor-setup .button { width: fit-content; min-width: 108px; }
.danger-button { border: 1px solid rgba(255,107,85,.25); background: rgba(255,107,85,.09); color: #ff9a89; }
.disable-copy { max-width: 560px; }
.dashboard-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 22px 0 0 244px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.07); border-radius: 9px; background: rgba(255,255,255,.018); }
.session-summary { display: flex; align-items: center; gap: 11px; }
.session-summary strong, .session-summary small { display: block; }
.session-summary strong { color: #d8d9dd; font-size: 11px; font-weight: 700; }
.session-summary small { margin-top: 2px; color: #727680; font-size: 10px; }
.session-indicator { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(126,241,185,.07); }
.logout-button { display: flex; align-items: center; gap: 7px; padding: 8px 10px; border: 0; border-radius: 6px; background: transparent; color: #a4a7af; font-size: 11px; cursor: pointer; transition: background .18s,color .18s; }
.logout-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.logout-button:hover { background: rgba(255,107,85,.08); color: #ff9583; }
.profile.connected { background: var(--coral); border-color: var(--coral-light); color: white; }
.account-heading { margin: 8px 0 30px; }
.account-heading .eyebrow { margin-bottom: 14px; }
.account-heading h2 { margin: 0; font-size: clamp(42px, 5vw, 64px); line-height: .95; }
.account-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.account-sidebar { position: sticky; top: 0; display: grid; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); }
.account-sidebar button { width: 100%; min-height: 48px; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 7px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: #aeb0b7; text-align: left; font-size: 12px; font-weight: 700; cursor: pointer; transition: background .2s, color .2s; }
.account-sidebar button > span { font-size: 18px; color: #777b86; }
.account-sidebar button > span svg { width: 19px; height: 19px; display: block; }
.account-sidebar button b { min-width: 21px; padding: 3px 6px; border-radius: 10px; background: rgba(255,255,255,.07); font-size: 10px; text-align: center; }
.account-sidebar button:hover { color: white; background: rgba(255,255,255,.045); }
.account-sidebar button.active { color: white; background: rgba(255,107,85,.12); }
.account-sidebar button.active > span { color: var(--coral-light); }
.account-content { min-width: 0; }
.account-section { display: none; min-height: 390px; padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,255,255,.012)); }
.account-section.active { display: block; animation: account-section-in .22s ease; }
@keyframes account-section-in { from { opacity: 0; transform: translateY(5px); } }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.section-title small { display: block; color: #878a93; font-size: 10px; text-transform: uppercase; letter-spacing: .14em; }
.section-title h3 { margin: 5px 0 0; font-family: var(--display); font-size: 27px; letter-spacing: -.03em; }
.account-api { display: flex; align-items: center; gap: 7px; color: var(--green); font-size: 11px; }
.account-api i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.profile-settings { display: grid; gap: 12px; }
.profile-settings .account-chip { width: 100%; min-width: 0; align-items: center; padding: 18px; }
.discord-link-card { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 17px 18px; border: 1px solid var(--line); border-radius: 10px; background: #101218; }
.discord-link-icon { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(255,107,85,.25); border-radius: 14px; background: rgba(255,107,85,.09); color: var(--coral-light); box-shadow: none; }
.discord-link-icon svg { width: 27px; height: 27px; fill: none; stroke: currentColor; }
.discord-link-icon .discord-mark { width: 28px; }
.discord-link-copy { min-width: 0; }
.discord-link-copy > strong { display: block; margin: 3px 0 4px; color: #f1f2f4; font-family: var(--display); font-size: 18px; }
.discord-label { color: #81858f; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.discord-link-copy > p { margin: 0; color: #777b84; font-size: 10px; }
.discord-identity { display: flex; flex-wrap: wrap; gap: 9px 20px; margin-top: 9px; }
.discord-identity span { min-width: 130px; }
.discord-identity small,.discord-identity b { display: block; }
.discord-identity small { color: #6e727c; font-size: 8px; letter-spacing: .07em; text-transform: uppercase; }
.discord-identity b { max-width: 230px; margin-top: 3px; overflow: hidden; color: #cfd1d7; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.discord-link-actions { display: flex; align-items: center; gap: 12px; }
.discord-decoration-setting { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 13px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.07); cursor: pointer; }
.discord-decoration-setting > span { min-width: 0; }
.discord-decoration-setting b,.discord-decoration-setting small { display: block; }
.discord-decoration-setting b { color: #dfe1e8; font-size: 11px; }
.discord-decoration-setting small { margin-top: 3px; color: #747985; font-size: 9px; }
.discord-decoration-setting input { position: absolute; opacity: 0; pointer-events: none; }
.discord-decoration-setting i { position: relative; width: 38px; height: 21px; flex: 0 0 38px; border-radius: 999px; background: #292c35; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); transition: .2s; }
.discord-decoration-setting i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: #858995; transition: .2s; }
.discord-decoration-setting input:checked + i { background: var(--coral); }
.discord-decoration-setting input:checked + i::after { left: 20px; background: white; }
.discord-decoration-setting input:disabled + i { opacity: .38; cursor: not-allowed; }
.discord-kage-stats-setting b { display: flex; align-items: center; gap: 7px; }
.discord-kage-stats-setting b svg { width: 14px; height: 14px; color: #7eb6ff; }
.discord-kage-stats-preview { margin-top: 13px; overflow: hidden; border: 1px solid rgba(255,255,255,.09); border-radius: 10px; background: #20232f; box-shadow: 0 12px 28px rgba(0,0,0,.18); transition: opacity .2s ease,filter .2s ease; }
.discord-kage-stats-preview.disabled { opacity: .56; filter: saturate(.55); }
.discord-kage-stats-preview > header { min-height: 58px; padding: 11px 13px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(255,255,255,.07); }
.discord-kage-stats-preview > header img { width: 34px; height: 34px; flex: 0 0 auto; object-fit: contain; }
.discord-kage-stats-preview > header span { min-width: 0; flex: 1; }
.discord-kage-stats-preview > header strong,.discord-kage-stats-preview > header small { display: block; }
.discord-kage-stats-preview > header strong { color: #f2f3f7; font-size: 11px; }
.discord-kage-stats-preview > header small { margin-top: 2px; color: #8e93a4; font-size: 8px; }
.discord-kage-stats-preview > header svg { width: 18px; height: 18px; color: #cbd0df; }
.discord-kage-stats-preview > div { padding: 12px 13px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.discord-kage-stats-preview > div > span { min-width: 0; padding: 9px; border-radius: 7px; background: #2a2d3a; }
.discord-kage-stats-preview > div small,.discord-kage-stats-preview > div b { display: block; }
.discord-kage-stats-preview > div small { overflow: hidden; color: #8d92a3; font-size: 7px; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.discord-kage-stats-preview > div b { margin-top: 5px; color: #f2f3f7; font-size: 13px; }
.discord-kage-stats-preview > footer { min-height: 43px; padding: 9px 13px; display: flex; align-items: center; gap: 8px; background: #2a2d39; color: #9da2b2; font-size: 8px; }
.discord-kage-stats-preview > footer svg { width: 15px; height: 15px; flex: 0 0 auto; color: #7eb6ff; }
.discord-kage-stats-preview > footer > span { min-width: 0; }
.discord-kage-stats-preview > footer b,.discord-kage-stats-preview > footer small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.discord-kage-stats-preview > footer b { color: #c9cddb; font-size: 8px; font-weight: 650; }
.discord-kage-stats-preview > footer small { margin-top: 3px; color: #7eb6ff; font-size: 7px; }
.discord-button { min-height: 40px; padding: 0 16px; background: var(--coral); color: white; text-decoration: none; }
.discord-button .discord-mark { width: 18px; }
.discord-button:hover { background: var(--coral-light); }
.discord-button.disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
#discordMessage { margin: -3px 2px 0; }
.account-section .two-factor-panel { margin: 0; }
.account-danger-zone { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 16px; margin-top: 18px; padding: 18px; border: 1px solid rgba(255,82,82,.28); border-radius: 10px; background: linear-gradient(135deg,rgba(120,22,27,.16),rgba(255,82,82,.035)); }
.account-danger-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,82,82,.13); color: #ff7373; }
.account-danger-icon svg { width: 22px; height: 22px; }
.account-danger-copy { min-width: 0; }
.account-danger-copy > span,.account-delete-kicker { color: #ff7373; font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.account-danger-copy h3 { margin: 4px 0 5px; color: #f5f5f6; font: 700 15px/1.25 var(--display); }
.account-danger-copy p { max-width: 600px; margin: 0; color: #8f939d; font-size: 11px; line-height: 1.55; }
.account-delete-open,.account-delete-confirm { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-color: rgba(255,82,82,.4); background: #d94242; color: #fff; }
.account-delete-open:hover,.account-delete-confirm:hover { background: #ec4c4c; }
.account-delete-open svg,.account-delete-confirm svg,.account-delete-actions .outline svg { width: 16px; height: 16px; }
.account-delete-dialog { position: fixed; inset: 0; z-index: 190; display: grid; place-items: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity .2s ease,visibility .2s ease; }
.account-delete-dialog.open { opacity: 1; visibility: visible; }
.account-delete-backdrop { position: absolute; inset: 0; background: rgba(2,3,5,.82); backdrop-filter: blur(9px); }
.account-delete-card { position: relative; width: min(460px,100%); padding: 36px; border: 1px solid rgba(255,82,82,.28); border-radius: 14px; background: linear-gradient(145deg,#191b20,#111216); box-shadow: 0 30px 90px rgba(0,0,0,.65); text-align: center; transform: translateY(10px) scale(.98); transition: transform .22s ease; }
.account-delete-dialog.open .account-delete-card { transform: none; }
.account-delete-warning { width: 62px; height: 62px; display: grid; place-items: center; margin: 0 auto 17px; border-radius: 50%; background: rgba(255,82,82,.12); color: #ff6969; box-shadow: inset 0 0 0 1px rgba(255,82,82,.16); }
.account-delete-warning svg { width: 29px; height: 29px; }
.account-delete-kicker { margin: 0 0 8px; }
.account-delete-card h2 { margin: 0; font: 700 25px/1.15 var(--display); }
.account-delete-card > p:not(.account-delete-kicker):not(.account-delete-message) { margin: 13px auto 0; color: #969aa4; font-size: 12px; line-height: 1.65; }
.account-delete-actions { display: grid; grid-template-columns: 1fr 1.35fr; gap: 10px; margin-top: 25px; }
.account-delete-actions .button { min-height: 45px; padding: 0 14px; }
.account-delete-confirm:disabled { opacity: .58; cursor: wait; }
.account-delete-confirm.loading svg { animation: account-delete-pulse .8s ease-in-out infinite alternate; }
.account-delete-message { min-height: 17px; margin: 12px 0 -10px; color: #ff8585; text-align: center; }
@keyframes account-delete-pulse { to { transform: scale(.76); opacity: .48; } }
.library-empty { min-height: 285px; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 30px; text-align: center; }
.library-empty > span { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,107,85,.12); color: var(--coral-light); font-size: 27px; }
.library-empty h4 { margin: 20px 0 7px; font-family: var(--display); font-size: 23px; }
.library-empty p { margin: 0 0 22px; color: var(--muted); font-size: 13px; }

@media (max-width: 800px) {
  .community-mobile-nav { display: grid; place-items: center; }
  .community-topbar { min-height: 62px; padding: 0 16px; }
  .community-topbar > div { display: none; }
  .community-layout { grid-template-columns: 1fr; grid-template-rows: auto minmax(0,1fr); gap: 10px; padding: 10px; }
  .community-rooms { flex-direction: row; padding: 7px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .community-rooms-heading { display: none; }
  .community-rooms button { min-width: 155px; min-height: 50px; }
  .community-rooms button b { display: none; }
  .community-rooms .moderation-entry { margin-top: 0; }
  .community-main { border-radius: 10px; }
  .community-room-header { padding: 18px 17px 15px; }
  .community-room-header p,.community-live { display: none; }
  .community-feed { padding: 18px 15px; }
  .community-composer { grid-template-columns: minmax(0,1fr) auto; padding: 11px; }
  .community-compose-avatar { display: none; }
  .community-composer .button { padding: 0 13px; }
  .moderation-panel { border-radius: 10px; }
  .moderation-header { display: grid; padding: 20px 17px; }
  .moderation-summary { grid-template-columns: 1fr 1fr; padding: 14px 14px 0; }
  .moderation-summary > div:last-child { display: none; }
  .moderation-users { grid-template-columns: 1fr; padding: 14px; }
  .discord-link-card { grid-template-columns: 42px minmax(0,1fr); padding: 14px; }
  .discord-link-icon { width: 42px; height: 42px; border-radius: 12px; }
  .discord-link-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .account-danger-zone { grid-template-columns: 42px minmax(0,1fr); padding: 15px; }
  .account-danger-icon { width: 42px; height: 42px; }
  .account-delete-open { grid-column: 1 / -1; width: 100%; }
  .account-delete-card { padding: 32px 20px 24px; }
  .account-delete-actions { grid-template-columns: 1fr; }
  .discord-identity { display: grid; grid-template-columns: 1fr; }
  body { min-width: 0; }
  .topbar { height: 62px; padding: 0 16px; gap: 14px; }
  .topbar.scrolled { height: 62px; background: rgba(8,9,12,.42); }
  .topbar nav { display: none; }
  .brand img { height: 34px; }
  .nav-actions { gap: 10px; }
  .discord-button { width: 38px; min-height: 38px; padding: 0; justify-content: center; border-radius: 50%; }
  .discord-button span { display: none; }
  .icon-button, .profile { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; flex: 0 0 auto; }
  .hero { min-height: 620px; height: 100svh; align-items: end; padding-bottom: max(88px, env(safe-area-inset-bottom)); }
  .hero-image { object-position: 62% center; }
  .hero-bg::after { background: linear-gradient(0deg,var(--bg) 1%,rgba(8,9,12,.18) 72%),linear-gradient(90deg,rgba(8,9,12,.8),rgba(8,9,12,.08)); }
  .hero-content { width: calc(100% - 32px); margin: 0 16px; padding-top: 0; }
  .eyebrow { margin-bottom: 14px; font-size: 10px; letter-spacing: .2em; }
  .hero h1 { max-width: 100%; margin-bottom: 16px; font-size: clamp(34px,10vw,48px); letter-spacing: -.055em; line-height: 1; }
  .hero-meta { gap: 9px; font-size: 12px; }
  .hero-copy { max-width: 100%; margin: 16px 0 22px; font-size: 14px; line-height: 1.55; }
  .hero-actions { width: 100%; }
  .hero-actions .button { flex: 1 1 0; min-width: 0; padding: 0 14px; }
  .hero-index { display: none; }
  .scroll-cue { bottom: 24px; }
  .content { margin-top: -20px; }
  .status-bar { width: calc(100% - 44px); }
  .row-section { margin-bottom: 40px; }
  .section-heading, .cards-row { padding-left: 16px; padding-right: 16px; }
  .section-heading { align-items: flex-start; margin-bottom: 13px; }
  .section-heading h2 { font-size: 24px; }
  .section-heading p { font-size: 12px; }
  .row-controls { display: none; }
  .cards-row { grid-auto-columns: minmax(230px, 76vw); gap: 10px; padding-bottom: 14px; scroll-snap-type: x mandatory; }
  .anime-card { border-radius: 6px; }
  .card-info strong { font-size: 14px; }
  .rank-wrap { min-width: 84vw; height: 150px; }
  .rank-number { font-size: 126px; }
  .discover { margin: 70px 22px 20px; padding: 55px 28px; }
  body > footer { padding: 38px 22px; align-items: flex-start; flex-direction: column; gap: 12px; }
  .search-shell, .search-content { width: calc(100% - 32px); }
  .search-shell { height: 82px; margin-top: calc(18px + env(safe-area-inset-top)); gap: 12px; }
  .search-shell input { font-size: 28px; }
  .search-shell kbd { display: none; }
  .search-content { margin: 32px auto; display: block; }
  .search-categories { position: static; display: flex; gap: 8px; margin-bottom: 22px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: none; }
  .search-categories::-webkit-scrollbar { display: none; }
  .search-categories span { display: none; }
  .search-categories button { width: auto; min-width: max-content; min-height: 36px; padding: 0 13px; border-color: rgba(255,255,255,.1); border-radius: 999px; text-align: center; }
  .search-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .search-grid { grid-template-columns: 1fr 1fr; }
  .detail-modal { width: 100%; max-height: 96svh; position: absolute; bottom: 0; border-radius: 14px 14px 0 0; }
  .modal-close { right: 14px; top: 12px; width: 40px; height: 40px; }
  .modal-art { height: 270px; }
  .modal-body { padding: 0 18px max(34px, env(safe-area-inset-bottom)); margin-top: -62px; }
  .modal-body h2 { font-size: 34px; line-height: 1; }
  .modal-description { font-size: 14px; line-height: 1.55; }
  .modal-actions { width: 100%; }
  .modal-actions .button { flex: 1; }
  .season-select { align-items: stretch; flex-direction: column; gap: 10px; }
  .season-select select { width: 100%; height: 44px; }
  .episode-list { grid-template-columns: 1fr; max-height: 48svh; }
  .episode { grid-template-columns: 126px minmax(0,1fr); }
  .player-stage { height: 100vh; aspect-ratio: auto; }
  .player-close { right: 12px; top: 12px; width: 40px; height: 40px; }
  .player-toolbar { min-height: 116px; padding: 12px 58px 12px 10px; flex-wrap: wrap; align-content: center; overflow-x: auto; }
  .player-toolbar strong { width: 100%; max-width: 100%; }
  .player-toolbar-field { min-width: min(190px,calc(50% - 5px)); flex: 1; }
  .source-group { flex-wrap: wrap; }
  .source-button { min-height: 34px; }
  .language-select { min-height: 34px; }
  .player-note { left: 10px; right: 10px; bottom: 10px; }
  .kage-controls { padding: 30px 12px max(12px,env(safe-area-inset-bottom)); }
  .player-volume { width: 58px; }
  .player-brand { display: none; }
  .player-center-play { width: 62px; height: 62px; }
  .player-settings-menu { right: 8px; bottom: max(65px,calc(54px + env(safe-area-inset-bottom))); }
  .player-settings-menu::after { right: 45px; }
  .player-compatibility { top: 8px; left: 8px; }
  .auth-shell { align-items: end; }
  .auth-card, .auth-card.dashboard-card { width: 100%; max-height: 94svh; padding: 28px 18px max(32px, env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; }
  .auth-brand { margin-bottom: 32px; }
  .auth-card h2 { font-size: 34px; }
  .dashboard-hero { flex-direction: column; }
  .dashboard-hero h2 { font-size: 46px; }
  .account-chip { width: 100%; min-width: 0; }
  .dashboard-stats, .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-stats { margin: 22px 0 12px; }
  .dashboard-card-action { min-height: 118px; }
  .dashboard-icon { margin-bottom: 14px; }
  .two-factor-panel { grid-template-columns: 1fr; }
  .two-factor-actions { padding-left: 64px; }
  .two-factor-actions .button { width: auto; }
  .two-factor-setup { padding: 18px; }
  .authenticator-enrolment { grid-template-columns: 1fr; align-items: start; }
  .qr-card { width: 154px; }
  .verification-row { align-items: stretch; flex-direction: column; }
  .two-factor-setup .button { width: 100%; }
  .dashboard-footer { margin-left: 0; }
  .account-heading { margin-top: 4px; }
  .account-heading h2 { font-size: 42px; }
  .account-layout { grid-template-columns: 1fr; gap: 14px; }
  .account-sidebar { position: static; grid-template-columns: repeat(4, minmax(135px,1fr)); display: grid; overflow-x: auto; scrollbar-width: none; }
  .account-sidebar::-webkit-scrollbar { display: none; }
  .account-sidebar button { min-width: 135px; grid-template-columns: 24px 1fr auto; padding: 0 10px; }
  .account-section { min-height: 0; padding: 18px; }
}

@media (max-width: 480px) {
  .nav-actions { gap: 8px; }
  .hero h1 { font-size: clamp(31px, 12vw, 42px); }
  .hero-copy { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .button { min-height: 46px; font-size: 13px; }
  .search-grid { grid-template-columns: 1fr; }
  .search-grid .anime-card { aspect-ratio: 1.72 / 1; }
  .cards-row { grid-auto-columns: 82vw; }
  .modal-body h2 { font-size: 31px; }
  .auth-tabs button { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.button:disabled {
  cursor: wait;
  opacity: .55;
  pointer-events: none;
}

/* Kage visual system — editorial redesign */
:root {
  --bg: #090a0d;
  --surface: #111318;
  --surface-2: #17191f;
  --surface-3: #1d2027;
  --text: #f4f3ef;
  --muted: #96989f;
  --coral: #ff654f;
  --coral-light: #ff816d;
  --green: #82dbaa;
  --line: rgba(255,255,255,.105);
  --line-strong: rgba(255,255,255,.18);
  --display: "Archivo", sans-serif;
  --body: "Inter", sans-serif;
  --page-pad: clamp(20px,5vw,78px);
  --content-max: 1520px;
}

body {
  background:
    radial-gradient(circle at 88% 8%,rgba(255,101,79,.055),transparent 30rem),
    linear-gradient(180deg,#090a0d 0%,#0b0c10 52%,#090a0d 100%);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  opacity: .16;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(to bottom,black,transparent 75%);
  mask-image: linear-gradient(to bottom,black,transparent 75%);
}
::selection { background: var(--coral); color: white; }
:focus-visible { outline: 2px solid var(--coral-light); outline-offset: 3px; }

/* Header — translucide, discret, avec un vrai fondu noir */
.topbar {
  height: 76px;
  padding: 0 var(--page-pad);
  gap: clamp(32px,4vw,66px);
  background: linear-gradient(180deg,rgba(5,6,8,.78) 0%,rgba(5,6,8,.28) 72%,transparent 100%);
  border: 0;
  backdrop-filter: blur(8px) saturate(115%);
  -webkit-backdrop-filter: blur(8px) saturate(115%);
}
.topbar::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  height: 44px;
  background: linear-gradient(180deg,rgba(5,6,8,.24),transparent);
  pointer-events: none;
}
.topbar.scrolled {
  height: 66px;
  background: rgba(8,9,12,.78);
  border-bottom: 1px solid rgba(255,255,255,.07);
  backdrop-filter: blur(22px) saturate(130%);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
  box-shadow: 0 18px 50px rgba(0,0,0,.24);
}
.topbar .brand img { height: 40px; }
.topbar nav {
  position: absolute;
  left: 50%;
  gap: clamp(18px,2.2vw,36px);
  transform: translateX(-50%);
}
.nav-link { color: rgba(244,243,239,.68); font-size: 12px; font-weight: 600; letter-spacing: -.01em; text-shadow: none; }
.nav-link.active::after { left: 0; right: 0; bottom: -10px; width: auto; height: 2px; border-radius: 0; box-shadow: none; }
.nav-actions { gap: 13px; }
.topbar .discord-button { min-height: 36px; padding: 0 14px; border-color: rgba(255,255,255,.12); border-radius: 5px; background: rgba(22,24,31,.64); box-shadow: none; }
.topbar .discord-button:hover { border-color: rgba(255,255,255,.24); background: rgba(35,38,48,.86); }
.icon-button { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 50%; filter: none; }
.icon-button:hover { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.06); }
.profile { width: 37px; height: 37px; border-color: rgba(255,255,255,.32); box-shadow: 0 8px 24px rgba(0,0,0,.26); }

/* Accueil et hero */
.hero { height: max(760px,100svh); min-height: 680px; align-items: flex-end; padding-bottom: clamp(105px,14vh,160px); }
.hero-bg::before { content: ""; position: absolute; z-index: 1; inset: 0; box-shadow: inset 0 0 160px rgba(0,0,0,.38); pointer-events: none; }
.hero-image { object-position: center 24%; filter: saturate(.92) contrast(1.06) brightness(.9); }
.hero-bg::after {
  z-index: 2;
  background:
    linear-gradient(90deg,rgba(7,8,11,.98) 0%,rgba(7,8,11,.8) 25%,rgba(7,8,11,.22) 58%,rgba(7,8,11,.08) 100%),
    linear-gradient(0deg,var(--bg) 0%,rgba(9,10,13,.9) 8%,rgba(9,10,13,.14) 46%,rgba(9,10,13,.38) 100%);
}
.hero-content { z-index: 3; width: min(660px,82vw); margin-left: var(--page-pad); padding: 0; }
.hero-index,.scroll-cue { z-index: 3; }
.eyebrow { margin-bottom: 20px; color: rgba(244,243,239,.72); font-size: 10px; font-weight: 700; letter-spacing: .25em; }
.eyebrow > span { width: 30px; background: var(--coral); }
.hero h1 { max-width: 820px; margin-bottom: 19px; font-size: clamp(54px,6.4vw,104px); line-height: .91; letter-spacing: -.065em; }
.hero-meta { gap: 9px 15px; color: rgba(244,243,239,.72); font-size: 12px; }
.hero-meta b { color: var(--green); }
.quality { border-color: rgba(255,255,255,.26); border-radius: 2px; }
.hero-copy { max-width: 570px; margin: 19px 0 28px; color: rgba(244,243,239,.76); font-size: 15px; line-height: 1.72; }
.button { min-height: 46px; border-radius: 5px; font-size: 13px; font-weight: 700; box-shadow: none; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--text); color: #0a0b0e; }
.button.primary:hover { background: var(--coral); color: white; }
.button.glass { border-color: rgba(255,255,255,.16); background: rgba(20,22,27,.48); backdrop-filter: blur(18px); }
.button.glass:hover { border-color: rgba(255,255,255,.28); background: rgba(31,33,40,.72); }
.hero-index { right: var(--page-pad); bottom: 100px; color: rgba(255,255,255,.64); }
.hero-index i { width: 88px; }
.scroll-cue { bottom: 25px; opacity: .62; }

/* Catalogue — une mise en page éditoriale, moins "suite de cartes" */
.content { width: 100%; margin-top: -34px; padding-bottom: 110px; }
.status-bar { width: auto; max-width: var(--content-max); margin: 0 var(--page-pad) 42px; }
.row-section { max-width: var(--content-max); margin: 0 auto 66px; }
.section-heading { padding: 0 var(--page-pad); margin-bottom: 20px; align-items: center; }
.section-heading h2 { font-size: clamp(24px,2.25vw,34px); letter-spacing: -.045em; }
.section-heading p { margin-top: 7px; color: #7e8189; font-size: 12px; }
.row-controls { gap: 6px; }
.row-controls button { width: 36px; height: 36px; border-color: rgba(255,255,255,.1); border-radius: 5px; color: #aeb0b6; }
.row-controls button:hover { border-color: var(--coral); background: transparent; color: var(--coral-light); }
.cards-row { grid-auto-columns: clamp(230px,19vw,294px); gap: 16px; padding: 3px var(--page-pad) 22px; }
.anime-card { aspect-ratio: 1.7/1; border: 1px solid rgba(255,255,255,.08); border-radius: 3px; box-shadow: 0 12px 28px rgba(0,0,0,.12); }
.anime-card:hover { z-index: 2; transform: translateY(-4px); border-color: rgba(255,101,79,.5); box-shadow: 0 18px 38px rgba(0,0,0,.34); }
.card-art::before { background: linear-gradient(180deg,rgba(5,6,8,.02) 20%,rgba(5,6,8,.92) 100%); }
.card-art::after { display: none; }
.card-info { inset: auto 15px 14px; }
.card-info strong { font-size: 14px; letter-spacing: -.015em; }
.card-info span { margin-top: 5px; color: #aeb0b5; }
.card-badge { left: 11px; top: 11px; border: 1px solid rgba(255,255,255,.1); border-radius: 2px; background: rgba(8,9,12,.66); }
.card-progress { height: 2px; }
.rank-wrap { min-width: clamp(260px,22vw,340px); height: 174px; }
.rank-number { color: transparent; -webkit-text-stroke: 1px #4b4e56; font-size: 155px; opacity: .74; }
.discover { width: calc(100% - 40px); max-width: 1364px; margin: 104px auto 28px; padding: clamp(58px,7vw,100px); border-color: rgba(255,255,255,.1); background: linear-gradient(105deg,#111318 0%,#111318 52%,rgba(255,101,79,.08) 100%); }
.discover::before { content: "KAGE / SÉLECTION"; position: absolute; right: 7%; bottom: 24px; color: rgba(255,255,255,.07); font-size: 10px; font-weight: 700; letter-spacing: .28em; }
.discover::after { opacity: .025; }
.discover h2 { max-width: 680px; font-size: clamp(38px,5.4vw,76px); }

/* Recherche */
.search-panel { background: rgba(8,9,12,.94); backdrop-filter: blur(28px) saturate(120%); }
.search-shell { width: min(1040px,calc(100% - 48px)); height: 112px; margin-top: 8vh; border-color: rgba(255,255,255,.16); }
.search-shell input { font-size: clamp(27px,4vw,50px); letter-spacing: -.045em; }
.search-content { width: min(1280px,calc(100% - 48px)); grid-template-columns: 190px minmax(0,1fr); gap: 52px; }
.search-categories button { border-radius: 3px; }
.search-categories button.active { border-color: rgba(255,101,79,.26); background: rgba(255,101,79,.08); }
.search-grid { gap: 16px; }

/* Fiche anime, épisodes et lecteur */
.modal-backdrop { background: rgba(2,3,5,.82); backdrop-filter: blur(14px); }
.detail-modal { width: min(1120px,94vw); max-height: 93vh; border: 1px solid rgba(255,255,255,.1); border-radius: 5px; background: #121419; box-shadow: 0 40px 120px rgba(0,0,0,.72); }
.modal-close,.player-close,.community-close { border: 1px solid rgba(255,255,255,.12); background: rgba(10,11,14,.74); }
.modal-art { height: 420px; }
.modal-art::after { background: linear-gradient(0deg,#121419 0%,rgba(18,20,25,.7) 35%,transparent 88%); }
.modal-body { padding: 0 52px 52px; margin-top: -88px; }
.modal-body h2 { font-size: clamp(38px,5.2vw,64px); }
.modal-description { max-width: 720px; color: #b6b8be; }
.circle-button { border-radius: 5px; }
.episode-zone { margin-top: 36px; }
.season-select select { height: 40px; border-radius: 3px; background: #1b1e25; }
.episode-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; max-height: 470px; }
.episode { grid-template-columns: 158px minmax(0,1fr); border-radius: 3px; background: #0e1014; }
.episode:hover { transform: translateY(-2px); background: #15171d; }
.episode-play { border-radius: 3px; }
.player-stage { border: 1px solid rgba(255,255,255,.1); }
.player-toolbar { background: #101217; }
.source-button { border-radius: 3px; }

/* Authentification */
.auth-backdrop { background: rgba(2,3,5,.83); backdrop-filter: blur(16px); }
.auth-card { width: min(500px,calc(100vw - 32px)); max-height: 94vh; padding: 38px 42px 42px; border: 1px solid rgba(255,255,255,.1); border-radius: 5px; background: linear-gradient(145deg,#14161b,#101217); box-shadow: 0 36px 120px rgba(0,0,0,.68); }
.auth-brand { margin-bottom: 44px; }
.auth-card h2 { font-size: 42px; }
.auth-intro,.verification-copy { color: #989aa2; }
.auth-tabs { margin-top: 30px; }
.auth-tabs button { font-weight: 600; }
.auth-discord-button { border-radius: 4px; box-shadow: none; }
.auth-form input { border-radius: 3px; background: #0a0c10; }
.auth-form input:focus { box-shadow: 0 0 0 3px rgba(255,101,79,.08); }

/* Espace compte */
.auth-card.dashboard-card { width: min(1220px,calc(100vw - 40px)); padding: 40px 42px 34px; }
.account-heading { margin: 4px 0 34px; }
.account-heading h2 { font-size: clamp(46px,5.2vw,70px); letter-spacing: -.055em; }
.dashboard-copy { font-size: 14px; }
.account-layout { grid-template-columns: 230px minmax(0,1fr); gap: 28px; }
.account-sidebar { gap: 3px; padding: 6px; border-radius: 4px; background: #101217; }
.account-sidebar button { min-height: 52px; border-radius: 3px; font-size: 11px; }
.account-sidebar button.active { background: var(--coral); color: white; }
.account-sidebar button.active > span { color: white; }
.account-content { border-left: 1px solid rgba(255,255,255,.06); padding-left: 28px; }
.account-section { min-height: 410px; padding: 28px; border-color: rgba(255,255,255,.1); border-radius: 4px; background: #111318; }
.section-title { margin-bottom: 26px; padding-bottom: 20px; }
.section-title h3 { font-size: 30px; }
.account-chip { border-radius: 3px; background: #17191f; }
.profile-settings .account-chip { padding: 20px; }
.discord-link-card { border-radius: 3px; background: #0e1014; }
.discord-link-icon,.security-mark { border-radius: 4px; }
.discord-decoration-setting i { border-radius: 3px; }
.discord-decoration-setting i::after { border-radius: 2px; }
.two-factor-setup { border-radius: 3px; background: #0b0d11; }
.step-number { border-radius: 3px; }
.qr-card { border-radius: 3px; }
.library-empty > span { border-radius: 4px; }
.dashboard-footer { margin-left: 259px; border-radius: 4px; }

/* Communauté et modération */
.community-page { background: #0b0d11; }
.community-topbar { min-height: 76px; padding: 0 var(--page-pad); background: rgba(10,12,16,.82); backdrop-filter: blur(20px); }
.community-layout { width: min(1480px,100%); grid-template-columns: 260px minmax(0,1fr); gap: 0; padding: 0 var(--page-pad) 34px; }
.community-rooms { padding: 30px 18px 20px 0; border: 0; border-right: 1px solid rgba(255,255,255,.08); border-radius: 0; background: transparent; }
.community-rooms button { border-radius: 3px; }
.community-rooms button.active { background: var(--coral); }
.community-rooms button.active > i { background: rgba(0,0,0,.18); color: white; }
.community-rooms button.active small,.community-rooms button.active b { color: rgba(255,255,255,.72); }
.community-main,.moderation-panel { margin: 28px 0 0 28px; border-radius: 4px; background: #111318; }
.community-room-header { padding: 28px 30px 22px; }
.community-feed { padding: 26px 30px; }
.community-message-avatar,.community-compose-avatar { border-radius: 4px; }
.community-message p,.community-message.mine p { border-radius: 3px; }
.community-composer { padding: 16px 20px; background: #0e1014; }
.community-compose-field { border-radius: 3px; }
.moderation-header { background: #121419; }
.moderation-summary > div,.moderation-user { border-radius: 3px; }
.moderation-action { border-radius: 3px; }

body > footer { min-height: 210px; padding: 54px var(--page-pad); border-color: rgba(255,255,255,.08); background: #08090c; }
.toast { border: 1px solid rgba(255,255,255,.14); border-radius: 3px; background: #f2f1ed; box-shadow: 0 18px 45px rgba(0,0,0,.35); }

@media (max-width: 980px) {
  .topbar nav { gap: 16px; }
  .nav-link { font-size: 11px; }
  .topbar .discord-button span { display: none; }
  .topbar .discord-button { width: 36px; padding: 0; justify-content: center; }
  .search-grid { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 800px) {
  :root { --page-pad: 18px; }
  body::before { background-size: 46px 46px; }
  .topbar,.topbar.scrolled { height: 64px; padding: 0 16px; background: linear-gradient(180deg,rgba(5,6,8,.88),rgba(5,6,8,.35)); border: 0; }
  .topbar::after { height: 34px; }
  .topbar .brand img { height: 34px; }
  .hero { min-height: 640px; padding-bottom: max(96px,env(safe-area-inset-bottom)); }
  .hero-bg::after { background: linear-gradient(0deg,var(--bg) 0%,rgba(9,10,13,.88) 27%,rgba(9,10,13,.12) 72%),linear-gradient(90deg,rgba(7,8,11,.72),rgba(7,8,11,.08)); }
  .hero-content { width: calc(100% - 36px); margin: 0 18px; }
  .hero h1 { font-size: clamp(40px,12vw,58px); }
  .hero-copy { font-size: 13px; }
  .content { margin-top: -22px; }
  .row-section { margin-bottom: 46px; }
  .section-heading,.cards-row { padding-left: 18px; padding-right: 18px; }
  .cards-row { grid-auto-columns: minmax(245px,78vw); }
  .discover { margin: 70px 18px 20px; padding: 52px 26px; }
  .search-content { grid-template-columns: 1fr; }
  .search-grid { grid-template-columns: repeat(2,1fr); }
  .detail-modal { border-radius: 5px 5px 0 0; }
  .modal-art { height: 290px; }
  .modal-body { padding: 0 20px max(34px,env(safe-area-inset-bottom)); }
  .episode-list { grid-template-columns: 1fr; }
  .auth-card,.auth-card.dashboard-card { border-radius: 5px 5px 0 0; }
  .auth-card { padding: 30px 20px max(34px,env(safe-area-inset-bottom)); }
  .account-content { border-left: 0; padding-left: 0; }
  .account-section { padding: 20px; }
  .dashboard-footer { margin-left: 0; }
  .community-layout { padding: 0 10px 12px; }
  .community-rooms { padding: 8px 0; border: 0; }
  .community-main,.moderation-panel { margin: 0; }
}

@media (max-width: 480px) {
  .hero-actions .button { min-height: 48px; }
  .hero-actions .button.glass { flex: 0 0 48px; width: 48px; padding: 0; font-size: 0; }
  .search-grid { grid-template-columns: 1fr; }
  .episode { grid-template-columns: 124px minmax(0,1fr); }
  .auth-card h2 { font-size: 36px; }
  .section-title h3 { font-size: 25px; }
  .discord-link-card { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Sélecteur d’épisodes — cartes cinématographiques et aperçus vidéo */
.detail-modal {
  width: min(1180px,96vw);
  border-radius: 18px;
  background: linear-gradient(155deg,#14171d 0%,#0d0f14 72%);
  box-shadow: 0 44px 140px rgba(0,0,0,.78),0 0 0 1px rgba(255,255,255,.035) inset;
}
.modal-art { overflow: hidden; isolation: isolate; background-color: #090b10; }
.modal-art::after { z-index: 2; pointer-events: none; }
.modal-trailer { position: absolute; z-index: 1; inset: 0; overflow: hidden; background: #08090d; opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.modal-trailer.active { opacity: 1; }
.modal-trailer iframe { position: absolute; left: 50%; top: 50%; width: 100%; height: auto; min-height: 100%; aspect-ratio: 16/9; border: 0; transform: translate(-50%,-50%) scale(1.035); pointer-events: none; }
.modal-trailer > span { position: absolute; z-index: 3; left: 24px; top: 22px; min-height: 29px; padding: 0 11px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(7,8,12,.58); color: rgba(255,255,255,.86); font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; backdrop-filter: blur(10px); }
.modal-trailer > span svg { width: 13px; height: 13px; color: var(--coral-light); }
.episode-zone {
  position: relative;
  margin-top: 38px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 16px;
  background: linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,255,255,.012));
  box-shadow: 0 22px 55px rgba(0,0,0,.22) inset;
}
.episode-zone::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg,transparent,rgba(255,119,96,.62),transparent);
  pointer-events: none;
}
.season-select { margin-bottom: 20px; gap: 20px; }
.episode-heading { min-width: 0; display: flex; align-items: center; gap: 13px; }
.episode-heading-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255,117,91,.26);
  border-radius: 12px;
  background: linear-gradient(145deg,rgba(255,101,79,.2),rgba(255,101,79,.055));
  color: var(--coral-light);
  box-shadow: 0 10px 26px rgba(255,83,61,.1);
}
.episode-heading-icon svg { width: 20px; height: 20px; }
.episode-heading > span:last-child { min-width: 0; display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 10px; }
.episode-heading small { grid-column: 1/-1; margin-bottom: 2px; color: var(--coral-light); font-size: 8px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.episode-heading h3 { font-size: 23px; letter-spacing: -.035em; }
.episode-heading em { color: #747883; font-size: 10px; font-style: normal; white-space: nowrap; }
.season-picker {
  position: relative;
  min-width: 168px;
  height: 48px;
  display: grid;
  align-content: center;
  flex: 0 0 auto;
  padding: 0 40px 0 14px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 11px;
  background: rgba(7,8,11,.58);
  cursor: pointer;
  transition: border-color .2s ease,background .2s ease;
}
.season-picker:hover,.season-picker:focus-within { border-color: rgba(255,111,87,.42); background: rgba(12,14,18,.86); }
.season-picker > span { color: #696d77; font-size: 8px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; pointer-events: none; }
.season-picker select {
  width: 100%;
  height: auto;
  padding: 1px 0 0;
  appearance: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f3f4f6;
  font: 700 12px var(--body);
  cursor: pointer;
}
.season-picker > svg { position: absolute; right: 13px; top: 50%; width: 16px; height: 16px; color: #8e929c; transform: translateY(-50%); pointer-events: none; }
.episode-list {
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 16px;
  max-height: 570px;
  padding: 2px 8px 5px 2px;
  scrollbar-color: rgba(255,255,255,.2) transparent;
}
.episode-list::-webkit-scrollbar { width: 5px; }
.episode-list::-webkit-scrollbar-thumb { border-radius: 99px; background: rgba(255,255,255,.2); }
.episode {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 13px;
  background: linear-gradient(155deg,#151820,#0c0e12);
  box-shadow: 0 13px 30px rgba(0,0,0,.18);
  transition: transform .25s ease,border-color .25s ease,box-shadow .25s ease;
}
.episode:hover,.episode:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(255,112,88,.5);
  background: linear-gradient(155deg,#181b23,#101217);
  box-shadow: 0 19px 38px rgba(0,0,0,.34),0 0 0 1px rgba(255,101,79,.08) inset;
  outline: 0;
}
.episode-thumb { width: 100%; min-height: 0; display: block; aspect-ratio: 16/9; background: radial-gradient(circle at 30% 30%,#292d38,#101217 72%); }
.episode-thumb img { position: absolute; inset: 0; filter: saturate(.72) contrast(1.04) brightness(.82); }
.episode-thumb::after { z-index: 1; background: linear-gradient(180deg,rgba(4,5,8,.02) 40%,rgba(4,5,8,.72) 100%); }
.episode:hover .episode-thumb img { transform: scale(1.055); filter: saturate(1.02) contrast(1.05) brightness(.9); }
.episode-play {
  z-index: 3;
  left: 50%;
  bottom: 50%;
  width: 43px;
  height: 43px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  background: rgba(8,9,12,.68);
  color: white;
  opacity: .82;
  transform: translate(-50%,50%);
  backdrop-filter: blur(10px);
  transition: opacity .22s ease,transform .22s ease,background .22s ease;
}
.episode-play svg { width: 16px; height: 16px; margin-left: 2px; }
.episode:hover .episode-play { opacity: 1; background: var(--coral); transform: translate(-50%,50%) scale(1.08); }
.episode-preview-time {
  position: absolute;
  z-index: 3;
  left: 9px;
  bottom: 8px;
  min-height: 19px;
  display: none;
  align-items: center;
  padding: 0 7px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  background: rgba(5,6,8,.76);
  color: #d7d9de;
  font-size: 8px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}
.episode.preview-ready .episode-preview-time { display: inline-flex; }
.episode-preview-shimmer { position: absolute; z-index: 2; inset: 0; display: none; overflow: hidden; background: rgba(9,10,14,.32); pointer-events: none; }
.episode-preview-shimmer::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg,transparent 30%,rgba(255,255,255,.12) 48%,transparent 66%); transform: translateX(-100%); animation: episode-shimmer 1.25s ease-in-out infinite; }
.episode.preview-loading .episode-preview-shimmer { display: block; }
@keyframes episode-shimmer { to { transform: translateX(100%); } }
.episode-content { min-height: 82px; display: flex; justify-content: space-between; align-items: flex-end; flex-direction: row; gap: 12px; padding: 13px 14px 14px; }
.episode-copy { min-width: 0; display: grid; gap: 5px; }
.episode-number { font-size: 8px; letter-spacing: .16em; }
.episode-title { font-size: 13px; }
.episode-languages { flex: 0 0 auto; align-items: center; justify-content: flex-end; }
.episode-languages small { padding: 4px 6px; border: 1px solid rgba(111,225,173,.12); border-radius: 5px; background: rgba(75,180,132,.07); font-size: 8px; }
.episode-languages > i { width: 24px; height: 24px; display: grid; place-items: center; margin-left: 2px; border-radius: 7px; color: #777b85; transition: color .2s ease,background .2s ease; }
.episode-languages > i svg { width: 13px; height: 13px; }
.episode:hover .episode-languages > i { background: rgba(255,101,79,.1); color: var(--coral-light); }
.episode-loading { grid-column: 1/-1; min-height: 180px; gap: 11px; align-content: center; }
.episode-loading > span { width: 25px; height: 25px; border: 2px solid rgba(255,255,255,.12); border-top-color: var(--coral); border-radius: 50%; animation: player-spin .8s linear infinite; }
.episode-preview-video { position: fixed; left: -4px; top: -4px; width: 2px; height: 2px; opacity: .001; pointer-events: none; }

@media (max-width: 980px) {
  .episode-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 640px) {
  .detail-modal { width: 100%; border-radius: 18px 18px 0 0; }
  .modal-trailer iframe { width: auto; height: 100%; min-width: 100%; min-height: 0; }
  .modal-trailer > span { left: 16px; top: 16px; }
  .episode-zone { margin-top: 30px; padding: 16px 12px 14px; border-radius: 14px; }
  .season-select { align-items: stretch; flex-direction: column; gap: 15px; }
  .season-picker { width: 100%; min-width: 0; }
  .episode-heading h3 { font-size: 21px; }
  .episode-heading em { display: none; }
  .episode-list { grid-template-columns: 1fr; gap: 13px; max-height: 58svh; padding-right: 4px; }
  .episode { display: grid; grid-template-columns: 142px minmax(0,1fr); border-radius: 11px; }
  .episode-thumb { height: 100%; min-height: 91px; aspect-ratio: auto; }
  .episode-content { min-height: 91px; align-items: stretch; flex-direction: column; gap: 8px; padding: 12px; }
  .episode-languages { justify-content: flex-start; }
  .episode-languages > i { margin-left: auto; }
  .episode-play { width: 35px; height: 35px; }
  .episode-preview-time { display: none !important; }
}

/* Profile menu and account settings — calm, human and utilitarian */
.profile-menu {
  position: fixed;
  z-index: 55;
  top: 66px;
  right: var(--page-pad);
  width: min(330px,calc(100vw - 24px));
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 4px;
  background: #121316;
  box-shadow: 0 24px 70px rgba(0,0,0,.48);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-7px);
  transition: opacity .16s ease,transform .16s ease,visibility .16s;
}
.profile-menu.open { opacity: 1; visibility: visible; transform: none; }
.profile-menu-identity { display: flex; align-items: center; gap: 13px; padding: 19px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.profile-menu-avatar { position: relative; width: 48px; height: 48px; flex: 0 0 48px; overflow: visible; display: grid; place-items: center; border-radius: 50%; background: var(--coral); color: white; font-size: 14px; font-weight: 700; }
.profile-menu-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.profile-menu-identity > div { min-width: 0; }
.profile-menu-identity strong,.profile-menu-identity small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-menu-identity strong { color: #f3f2ef; font-size: 14px; }
.profile-menu-identity small { margin-top: 4px; color: #7f8289; font-size: 10px; }
.profile-menu-links { padding: 7px 0; }
.profile-menu-links button,.profile-menu-logout { width: 100%; display: flex; align-items: center; gap: 13px; border: 0; background: transparent; color: #d8d8da; text-align: left; cursor: pointer; }
.profile-menu-links button { min-height: 62px; padding: 9px 18px; }
.profile-menu-links button:hover,.profile-menu-logout:hover { background: rgba(255,255,255,.045); }
.profile-menu-links svg,.profile-menu-logout svg { width: 19px; flex: 0 0 19px; color: #9b9da3; }
.profile-menu-links button:first-child svg { color: var(--coral-light); }
.profile-menu-links button > span { min-width: 0; flex: 1; }
.profile-menu-links strong,.profile-menu-links small { display: block; }
.profile-menu-links strong { font-size: 12px; font-weight: 600; }
.profile-menu-links small { margin-top: 3px; color: #74777f; font-size: 9px; font-weight: 400; }
.profile-menu-links button > b { min-width: 22px; padding: 3px 6px; border-radius: 999px; background: rgba(255,255,255,.07); color: #9b9da3; font-size: 9px; font-weight: 600; text-align: center; }
.profile-menu-logout { min-height: 49px; padding: 0 18px; border-top: 1px solid rgba(255,255,255,.08); color: #bbbcc1; font-size: 11px; }
.profile-menu-logout:hover { color: #ff8f7c; }

.auth-card.dashboard-card { width: min(1180px,calc(100vw - 38px)); padding: 36px 42px 40px; border: 1px solid rgba(255,255,255,.08); background: #0d0f12; }
.account-heading { margin: 0 0 30px; }
.account-heading .eyebrow { margin-bottom: 11px; }
.account-heading h2 { font-size: clamp(36px,4vw,50px); line-height: 1; letter-spacing: -.05em; }
.account-heading .dashboard-copy { max-width: 620px; margin-top: 11px; color: #878990; font-size: 13px; }
.account-layout { grid-template-columns: 260px minmax(0,1fr); gap: 0; min-height: 500px; }
.account-sidebar { position: static; display: flex; align-self: stretch; flex-direction: column; gap: 2px; padding: 4px 22px 4px 0; border: 0; border-right: 1px solid rgba(255,255,255,.08); border-radius: 0; background: transparent; }
.account-nav-heading { padding: 4px 12px 18px; }
.account-nav-heading strong,.account-nav-heading span { display: block; }
.account-nav-heading strong { color: #f0efec; font-family: var(--display); font-size: 15px; }
.account-nav-heading span { margin-top: 5px; color: #6f7279; font-size: 9px; }
.account-sidebar button { min-height: 46px; padding: 0 12px; border-radius: 2px; color: #a6a8ae; font-size: 11px; font-weight: 500; }
.account-sidebar button > span { color: #777a82; }
.account-sidebar button:hover { color: #ececea; background: rgba(255,255,255,.035); }
.account-sidebar button.active { color: var(--coral-light); background: transparent; box-shadow: inset 2px 0 0 var(--coral); }
.account-sidebar button.active > span { color: var(--coral-light); }
.account-sidebar button b { background: rgba(255,255,255,.055); color: #92949b; font-weight: 600; }
.account-sidebar .account-signout { margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); border-radius: 0; color: #909299; }
.account-sidebar .account-signout:hover { background: transparent; color: #ff8d79; }
.account-sidebar .account-signout span { display: grid; place-items: center; }
.account-sidebar .account-signout svg { width: 18px; }
.account-content { padding: 0 0 0 34px; border: 0; }
.account-section { min-height: 500px; padding: 37px 40px; border: 0; border-radius: 2px; background: #17191d; }
.section-title { margin-bottom: 30px; padding-bottom: 22px; border-color: rgba(255,255,255,.09); }
.section-title h3 { margin-top: 6px; font-size: 29px; }
.profile-settings { gap: 14px; }
.email-account-card { min-height: 112px; display: grid; grid-template-columns: 46px minmax(0,1fr) auto; align-items: center; gap: 17px; padding: 24px 26px; border: 1px solid rgba(255,255,255,.09); border-radius: var(--radius-card); background: #1c1e23; }
.email-account-copy { min-width: 0; display: grid; gap: 4px; }
.email-account-copy small { color: #7f828a; font-size: 9px; }
.email-account-copy strong { overflow: hidden; color: #f1f0ed; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.email-account-copy p { margin: 2px 0 0; color: #70737b; font-size: 9px; line-height: 1.5; }
.email-change-start { padding: 8px 0; color: #ff8d79; font-size: 10px; font-weight: 600; white-space: nowrap; }
.email-change-start:hover { color: #ffad9e; }
.email-change-panel { display: block; }
.email-change-card { display: grid; grid-template-columns: minmax(220px,.85fr) minmax(280px,1.15fr); gap: 38px; padding: 28px; border: 1px solid rgba(255,255,255,.09); border-radius: var(--radius-card); background: linear-gradient(135deg,#1c1e23,#17191d); }
.email-change-heading { display: flex; align-items: flex-start; gap: 16px; }
.email-change-icon { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; border: 1px solid rgba(255,101,79,.24); border-radius: 13px; background: rgba(255,101,79,.08); color: #ff8d79; }
.email-change-icon svg { width: 21px; height: 21px; }
.email-change-heading h4,.email-code-card h4 { margin: 7px 0 8px; color: #f0efec; font-family: var(--display); font-size: 20px; letter-spacing: -.025em; }
.email-change-heading p,.email-code-card p { max-width: 360px; margin: 0; color: #858890; font-size: 10px; line-height: 1.65; }
.email-change-fields { min-width: 0; display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; }
.email-change-fields > label { grid-column: 1 / -1; color: #a7a9af; font-size: 9px; font-weight: 600; }
.email-field { min-width: 0; min-height: 46px; grid-column: 1 / -1; display: flex; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-control); background: #0e1014; transition: border-color var(--ease-fast),box-shadow var(--ease-fast); }
.email-field:focus-within { border-color: rgba(255,101,79,.72); box-shadow: 0 0 0 3px rgba(255,101,79,.075); }
.email-field.readonly { background: #15171b; border-color: rgba(255,255,255,.075); }
.email-field svg { width: 15px; flex: 0 0 15px; color: #6f727a; }
.email-field input { min-width: 0; width: 100%; height: 44px; padding: 0; border: 0; outline: 0; background: transparent; color: #f0efec; font: inherit; font-size: 11px; }
.email-field.readonly input { color: #9699a1; cursor: default; }
.email-change-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-top: 5px; }
.email-change-submit { min-height: 38px; padding: 0 16px; background: var(--accent); color: #fff; }
.email-change-submit:disabled,.email-code-controls .button:disabled { opacity: .5; cursor: wait; }
.email-code-card { display: grid; grid-template-columns: minmax(220px,1fr) auto; align-items: center; gap: 22px 30px; padding: 24px 28px; border: 1px solid rgba(255,101,79,.2); border-radius: var(--radius-card); background: rgba(255,101,79,.035); }
.email-code-card > div:first-child strong { color: #d8d9dc; }
.email-code-controls { display: flex; align-items: stretch; gap: 9px; }
.email-code-controls input { width: 150px; min-height: 44px; padding: 0 15px; border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius-control); outline: 0; background: #0e1014; color: #f4f3ef; font: 700 17px/1 var(--display); letter-spacing: .28em; text-align: center; }
.email-code-controls input:focus { border-color: rgba(255,101,79,.72); box-shadow: 0 0 0 3px rgba(255,101,79,.075); }
.email-code-controls .button { min-height: 44px; padding: 0 16px; background: var(--accent); color: #fff; }
.email-code-footer { grid-column: 1 / -1; display: flex; gap: 15px; }
.email-change-message { min-height: 18px; margin: 0 3px; font-size: 10px; }
.profile-settings .account-chip { min-height: 112px; padding: 22px; border-color: rgba(255,255,255,.09); background: #1c1e23; }
.account-avatar { width: 64px; height: 64px; flex-basis: 64px; }
.account-chip strong { max-width: 330px; font-size: 14px; }
.avatar-actions { margin-top: 8px; }
.banner-settings-card { min-height: 150px; display: grid; grid-template-columns: minmax(240px,.9fr) minmax(250px,1.1fr); gap: 22px; padding: 18px; border: 1px solid rgba(255,255,255,.09); border-radius: var(--radius-card); background: #1c1e23; }
.account-banner-preview { position: relative; min-height: 114px; padding: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; background: radial-gradient(circle at 78% 10%,rgba(255,188,163,.28),transparent 34%),radial-gradient(circle at 18% 120%,rgba(125,74,255,.3),transparent 46%),linear-gradient(135deg,#a74354,#713d67 48%,#383a66); color: white; cursor: pointer; }
.account-banner-preview > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.account-banner-placeholder { position: absolute; right: 14px; top: -23px; color: rgba(255,255,255,.1); font-family: serif; font-size: 105px; line-height: 1; }
.account-banner-preview.has-image .account-banner-placeholder { display: none; }
.account-banner-edit { position: absolute; z-index: 1; left: 50%; bottom: 10px; min-height: 28px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; background: rgba(8,9,12,.76); color: #f3f2ef; font-size: 9px; font-weight: 700; opacity: 0; transform: translate(-50%,4px); transition: opacity .18s ease,transform .18s ease; }
.account-banner-edit svg { width: 13px; }
.account-banner-preview:hover .account-banner-edit,.account-banner-preview:focus-visible .account-banner-edit { opacity: 1; transform: translate(-50%,0); }
.banner-settings-copy { align-self: center; min-width: 0; }
.banner-settings-copy h4 { margin: 7px 0 8px; color: #f0efec; font-family: var(--display); font-size: 19px; letter-spacing: -.025em; }
.banner-settings-copy > p:not(.form-message) { max-width: 350px; margin: 0; color: #7f828a; font-size: 10px; line-height: 1.6; }
.banner-message { min-height: 0; margin-top: 6px; font-size: 9px; }
.username-card { display: grid; grid-template-columns: minmax(180px,.8fr) minmax(260px,1.2fr); gap: 30px; padding: 24px 22px; border: 1px solid rgba(255,255,255,.09); border-radius: var(--radius-card); background: linear-gradient(135deg,#1c1e23,#181a1f); }
.username-card-copy { padding-top: 2px; }
.username-kicker { color: var(--accent); font-size: 8px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.username-card-copy h4 { margin: 7px 0 8px; color: #f0efec; font-family: var(--display); font-size: 19px; letter-spacing: -.025em; }
.username-card-copy p { max-width: 330px; margin: 0; color: #7f828a; font-size: 10px; line-height: 1.6; }
.username-field-wrap { min-width: 0; }
.username-field-wrap > label { display: block; margin-bottom: 8px; color: #a7a9af; font-size: 9px; font-weight: 600; }
.username-input-shell { height: 46px; display: flex; align-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-control); background: #0e1014; transition: border-color var(--ease-fast),box-shadow var(--ease-fast); }
.username-input-shell:focus-within { border-color: rgba(255,101,79,.72); box-shadow: 0 0 0 3px rgba(255,101,79,.075); }
.username-input-shell > span { padding-left: 13px; color: var(--accent-hover); font-size: 13px; font-weight: 700; }
.username-input-shell input { min-width: 0; flex: 1; height: 100%; padding: 0 9px 0 4px; border: 0; outline: 0; background: transparent; color: #f0efec; font-size: 13px; }
.username-input-shell input::placeholder { color: #50535a; }
.username-input-shell > small { padding-right: 12px; color: #5f6269; font-size: 8px; font-variant-numeric: tabular-nums; }
.username-field-footer { margin-top: 7px; display: flex; justify-content: space-between; gap: 12px; color: #686b72; font-size: 8px; }
.username-field-footer small { font-size: inherit; }
.username-field-footer span { overflow: hidden; max-width: 190px; color: #777a82; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.username-submit-row { min-height: 40px; margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.username-submit-row .form-message { min-width: 0; flex: 1; font-size: 9px; }
.username-save { min-height: 36px; padding: 0 14px; flex: 0 0 auto; background: var(--accent); color: white; }
.username-save:hover { background: var(--accent-hover); color: white; }
.username-save:disabled { opacity: .42; cursor: not-allowed; transform: none; }
.biography-card { display: grid; grid-template-columns: 46px minmax(150px,.7fr) minmax(280px,1.3fr); align-items: start; gap: 17px; padding: 22px; border: 1px solid rgba(255,255,255,.09); border-radius: var(--radius-card); background: linear-gradient(135deg,#171a20,#121419); }
.biography-card-icon { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(255,101,79,.22); border-radius: 13px; background: rgba(255,101,79,.08); color: #ff8d79; }
.biography-card-icon svg { width: 22px; height: 22px; }
.biography-card-copy h4 { margin: 7px 0 7px; color: #f0efec; font-family: var(--display); font-size: 18px; letter-spacing: -.025em; }
.biography-card-copy p { margin: 0; color: #777b84; font-size: 9px; line-height: 1.55; }
.biography-editor { min-width: 0; }
.biography-editor textarea { width: 100%; min-height: 104px; padding: 13px 14px; resize: vertical; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; outline: 0; background: #0d0f13; color: #ebecef; font: inherit; font-size: 11px; line-height: 1.55; transition: border-color var(--ease-fast),box-shadow var(--ease-fast); }
.biography-editor textarea::placeholder { color: #50535b; }
.biography-editor textarea:focus { border-color: rgba(255,101,79,.66); box-shadow: 0 0 0 3px rgba(255,101,79,.075); }
.biography-editor-footer { margin-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #676b74; font-size: 8px; }
.biography-editor-footer small { font-size: inherit; }
.biography-editor-footer span { color: #7d818a; font-variant-numeric: tabular-nums; }
.biography-submit-row { min-height: 38px; margin-top: 9px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.biography-submit-row .form-message { min-width: 0; flex: 1; font-size: 9px; }
.biography-save { min-height: 36px; padding: 0 13px; display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; background: var(--accent); color: #fff; }
.biography-save svg { width: 14px; height: 14px; }
.biography-save:disabled { opacity: .42; cursor: not-allowed; transform: none; }
.discord-link-card { padding: 20px 22px; border-color: rgba(255,255,255,.09); background: #121418; }
.discord-label { color: #777a82; letter-spacing: .08em; }
.discord-link-copy > p { font-size: 10px; }
.connections-copy { max-width: 590px; margin: -7px 0 26px; color: #8b8d94; font-size: 12px; line-height: 1.6; }
.connections-settings { display: grid; gap: 10px; }
.connections-settings .discord-link-card { min-height: 116px; }
.connections-settings #discordMessage { margin: 0 2px; }
.devices-title { align-items: flex-end; }
.devices-disconnect-all { justify-self: auto; padding: 8px 0; color: #ff8d79; font-size: 10px; font-weight: 600; }
.devices-copy { max-width: 680px; margin: -7px 0 26px; color: #8b8d94; font-size: 12px; line-height: 1.65; }
.devices-list { display: grid; gap: 9px; }
.devices-loading { min-height: 120px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.08); color: #74777f; font-size: 11px; }
.device-item { display: grid; grid-template-columns: 46px minmax(0,1fr) auto; align-items: start; gap: 15px; padding: 18px; border: 1px solid rgba(255,255,255,.085); background: #121418; }
.device-item.current { border-color: rgba(130,219,170,.22); background: rgba(130,219,170,.035); }
.device-icon { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.1); background: #1c1f25; color: #aaadb4; }
.device-item.current .device-icon { border-color: rgba(130,219,170,.24); color: var(--green); }
.device-icon svg { width: 22px; }
.device-details { min-width: 0; }
.device-name { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.device-name h4 { margin: 0; color: #efeeeb; font-family: var(--display); font-size: 14px; }
.device-name span { padding: 4px 7px; border: 1px solid rgba(130,219,170,.24); border-radius: 2px; background: rgba(130,219,170,.08); color: var(--green); font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.device-details > p { margin: 4px 0 13px; color: #777a82; font-size: 10px; }
.device-details dl { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 0; }
.device-details dl div { min-width: 120px; }
.device-details dt,.device-details dd { margin: 0; }
.device-details dt { color: #676a72; font-size: 8px; text-transform: uppercase; letter-spacing: .07em; }
.device-details dd { margin-top: 4px; color: #b4b6bc; font-size: 10px; }
.device-revoke { align-self: center; padding: 8px 10px; border: 1px solid rgba(255,101,79,.24); border-radius: 2px; background: transparent; color: #ff8d79; font-size: 9px; font-weight: 600; cursor: pointer; }
.device-revoke:hover { border-color: var(--coral); background: rgba(255,101,79,.08); }
#devicesMessage { margin-top: 12px; }
.two-factor-panel { min-height: 150px; }
.dashboard-footer,.account-api { display: none !important; }

/* Identité publique dans les discussions */
.community-message { grid-template-columns: 44px minmax(0,1fr); gap: 13px; }
.community-message.mine { grid-template-columns: minmax(0,1fr) 44px; }
.community-message .community-message-avatar,
.community-compose-avatar {
  position: relative;
  width: 42px;
  height: 42px;
  overflow: visible;
  border: 0;
  border-radius: 50%;
  background: #24262c;
  isolation: isolate;
}
.community-avatar-photo,
.community-avatar-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.community-avatar-photo { display: block; object-fit: cover; }
.community-avatar-fallback {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,107,85,.24);
  background: rgba(255,107,85,.1);
  color: var(--coral-light);
  font-size: 12px;
  font-weight: 800;
}
.community-avatar-decoration {
  position: absolute;
  inset: -18%;
  z-index: 2;
  width: 136%;
  height: 136%;
  object-fit: contain;
  pointer-events: none;
}
.community-message-meta strong { max-width: 220px; overflow: hidden; color: #e1e1df; text-overflow: ellipsis; white-space: nowrap; }
.community-message-you {
  padding: 2px 5px;
  border-radius: 2px;
  background: rgba(255,255,255,.06);
  color: #888b93;
  font-size: 7px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

@media (max-width:800px) {
  .profile-menu { top: 58px; right: 12px; }
  .auth-card.dashboard-card { padding: 28px 18px max(28px,env(safe-area-inset-bottom)); }
  .account-heading { margin-bottom: 22px; }
  .account-heading h2 { font-size: 36px; }
  .account-layout { display: block; min-height: 0; }
  .account-sidebar { display: flex; flex-direction: row; gap: 4px; margin-bottom: 14px; padding: 0 0 10px; overflow-x: auto; border: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .account-nav-heading { display: none; }
  .account-sidebar button { min-width: max-content; grid-template-columns: 22px auto auto; padding: 0 12px; }
  .account-sidebar .account-signout { margin: 0 0 0 auto; padding: 0 12px; border: 0; }
  .account-content { padding: 0; }
  .account-section { min-height: 0; padding: 24px 20px; }
  .email-account-card { grid-template-columns: 46px minmax(0,1fr); }
  .email-change-start { grid-column: 2; justify-self: start; }
  .email-change-card { grid-template-columns: 1fr; gap: 24px; }
  .email-code-card { grid-template-columns: 1fr; }
  .email-code-controls { justify-self: start; }
  .username-card { grid-template-columns: 1fr; gap: 20px; }
  .biography-card { grid-template-columns: 46px minmax(0,1fr); }
  .biography-editor { grid-column: 1 / -1; }
  .banner-settings-card { grid-template-columns: 1fr; }
}

@media (max-width:480px) {
  .profile-menu { width: calc(100vw - 24px); }
  .account-heading .dashboard-copy { line-height: 1.5; }
  .account-sidebar .account-signout { font-size: 0; }
  .account-sidebar .account-signout span { margin: 0; }
  .profile-settings .account-chip { align-items: flex-start; }
  .username-card { padding: 20px 16px; }
  .username-field-footer { align-items: flex-start; flex-direction: column; gap: 5px; }
  .username-submit-row { align-items: stretch; flex-direction: column; }
  .username-save { width: 100%; }
  .biography-card { padding: 18px 16px; }
  .biography-submit-row { align-items: stretch; flex-direction: column; }
  .biography-save { width: 100%; justify-content: center; }
  .discord-link-card { padding: 16px; }
  .device-item { grid-template-columns: 40px minmax(0,1fr); padding: 14px; }
  .device-icon { width: 40px; height: 40px; }
  .device-revoke { grid-column: 2; justify-self: start; }
  .device-details dl { display: grid; gap: 9px; }
  .devices-title { align-items: flex-start; flex-direction: column; }
}

/* Kage UI 2026 — tokens and deliberate refinements */
:root {
  --background: #090a0c;
  --surface: #111216;
  --surface-hover: #17191e;
  --text: #f2f1ed;
  --text-muted: #8c8e95;
  --accent: #ff654f;
  --accent-hover: #ff7a66;
  --border: rgba(255,255,255,.10);
  --danger: #ef7267;
  --radius-control: 6px;
  --radius-card: 8px;
  --radius-modal: 12px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --ease-fast: 160ms ease;
  --ease-ui: 220ms cubic-bezier(.2,.7,.2,1);
  --page-pad: clamp(24px,5vw,76px);
}

body { background: var(--background); color: var(--text); }
body::before { display: none; }
::selection { background: rgba(255,101,79,.9); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Navigation */
.topbar {
  height: 68px;
  padding-inline: var(--page-pad);
  background: linear-gradient(180deg,rgba(5,6,8,.82),rgba(5,6,8,.24) 72%,transparent);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: height var(--ease-ui),background var(--ease-ui),border-color var(--ease-ui);
}
.topbar::after { display: none; }
.topbar.scrolled {
  height: 62px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(9,10,12,.94);
  box-shadow: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.topbar .brand img { height: 36px; }
.nav-link { padding: 8px 0; color: rgba(242,241,237,.62); font-size: 12px; font-weight: 500; transition: color var(--ease-fast); }
.nav-link:hover,.nav-link.active { color: var(--text); }
.nav-link.active::after { bottom: 1px; height: 1px; background: var(--accent); }
.nav-actions { gap: 10px; }
.topbar .discord-button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-control);
  background: rgba(255,255,255,.075);
  font-size: 11px;
  font-weight: 600;
  transition: background var(--ease-fast),color var(--ease-fast);
}
.topbar .discord-button:hover { background: rgba(255,255,255,.12); transform: none; }
.icon-button { border-radius: var(--radius-control); transition: background var(--ease-fast),color var(--ease-fast); }
.icon-button:hover { border-color: transparent; background: rgba(255,255,255,.075); }
.topbar-search-label,.topbar-search kbd { display: none; }
.profile { width: 34px; height: 34px; border: 0; background: var(--accent); box-shadow: none; }

/* Cinematic hero */
.hero { height: max(700px,96svh); min-height: 660px; padding-bottom: clamp(104px,13vh,144px); }
.hero-bg { background: radial-gradient(circle at 72% 28%,#18262a 0%,#101116 48%,#090a0d 100%); }
.hero-bg::before { box-shadow: none; }
.hero-image { object-position: center 25%; filter: saturate(.9) contrast(1.04) brightness(.84); }
.hero-bg::after {
  background:
    linear-gradient(90deg,rgba(7,8,10,.97) 0%,rgba(7,8,10,.75) 29%,rgba(7,8,10,.18) 62%,rgba(7,8,10,.05) 100%),
    linear-gradient(0deg,var(--background) 0%,rgba(9,10,12,.76) 11%,transparent 46%,rgba(5,6,8,.22) 100%);
}
.hero-content { width: min(620px,75vw); }
.eyebrow { margin-bottom: var(--space-4); color: rgba(242,241,237,.67); font-size: 9px; letter-spacing: .22em; }
.eyebrow > span { width: 24px; }
.hero h1 { max-width: 760px; margin-bottom: var(--space-4); font-size: clamp(52px,6vw,94px); line-height: .94; letter-spacing: -.06em; }
.hero-meta { gap: 8px 14px; color: rgba(242,241,237,.65); font-size: 11px; }
.hero-meta b { color: #91d9af; font-weight: 600; }
.quality { padding: 0 5px; border-color: rgba(255,255,255,.32); border-radius: 2px; line-height: 17px; }
.hero-copy { max-width: 550px; margin: 18px 0 var(--space-6); color: rgba(242,241,237,.74); font-size: 14px; line-height: 1.65; }
.button { min-height: 42px; padding: 0 18px; border-radius: var(--radius-control); font-size: 12px; transition: background var(--ease-fast),border-color var(--ease-fast),color var(--ease-fast),transform var(--ease-fast); }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button.primary { background: var(--text); color: #0a0b0d; }
.button.primary:hover { background: var(--accent); color: white; }
.button.glass { border-color: rgba(255,255,255,.14); background: rgba(13,15,18,.6); backdrop-filter: none; }
.button.glass:hover { background: rgba(255,255,255,.11); }
.hero-index { right: var(--page-pad); bottom: 90px; display: grid; justify-items: end; gap: 10px; }
.hero-pagination { display: flex; gap: 7px; }
.hero-pagination button { width: 25px; height: 25px; padding: 0; border: 0; background: transparent; color: rgba(255,255,255,.42); cursor: pointer; }
.hero-pagination button::after { content: ""; display: block; width: 100%; height: 2px; background: currentColor; transition: color var(--ease-fast),transform var(--ease-fast); }
.hero-pagination button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hero-pagination button:hover { color: rgba(255,255,255,.75); }
.hero-pagination button.active { color: var(--accent); }
.hero-pagination button.active::after { transform: scaleY(1.5); }
.hero-count { display: flex; align-items: baseline; gap: 5px; color: rgba(255,255,255,.38); font-size: 9px; }
.hero-count b { color: rgba(255,255,255,.8); font-size: 11px; }
.hero-count i { position: static; width: auto; height: auto; background: none; font-style: normal; }
.hero-count i::after { display: none; content: none; }
.hero-progress { position: relative; width: 150px; height: 1px; overflow: hidden; background: rgba(255,255,255,.18); }
.hero-progress::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--hero-progress,16.666%); background: var(--accent); transition: width 360ms ease; }
.scroll-cue { display: none; }

/* Catalogue and content rhythm */
.content { margin-top: 0; padding: var(--space-12) 0 var(--space-16); background: var(--background); }
.status-bar { margin-bottom: var(--space-6); }
.catalogue-heading { max-width: var(--content-max); margin: 0 auto var(--space-12); padding: 0 var(--page-pad); display: flex; align-items: end; justify-content: space-between; gap: var(--space-6); }
.section-kicker { display: block; margin-bottom: 7px; color: var(--accent); font-size: 9px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.catalogue-heading h2 { margin: 0; font-family: var(--display); font-size: clamp(30px,3vw,44px); font-weight: 600; letter-spacing: -.045em; }
.catalogue-search { min-width: min(340px,34vw); height: 42px; padding: 0 12px 0 14px; display: flex; align-items: center; gap: 11px; border: 0; border-bottom: 1px solid rgba(255,255,255,.2); border-radius: 0; background: transparent; color: var(--text-muted); cursor: pointer; transition: border-color var(--ease-fast),color var(--ease-fast); }
.catalogue-search:hover { border-color: var(--accent); color: var(--text); }
.catalogue-search svg { width: 17px; }
.catalogue-search span { flex: 1; text-align: left; font-size: 12px; }
.catalogue-search kbd { border: 0; padding: 0; color: #64676e; }
.row-section { margin-bottom: var(--space-12); }
.section-heading { margin-bottom: var(--space-4); }
.section-heading h2 { font-size: clamp(20px,1.8vw,27px); font-weight: 600; letter-spacing: -.035em; }
.row-controls button { width: 32px; height: 32px; border: 0; border-radius: var(--radius-control); background: rgba(255,255,255,.055); font-size: 14px; transition: background var(--ease-fast),color var(--ease-fast); }
.row-controls button:hover { border-color: transparent; background: rgba(255,255,255,.11); color: var(--text); }
.cards-row { grid-auto-columns: clamp(220px,18vw,278px); gap: var(--space-4); padding-bottom: var(--space-3); }
.anime-card { position: relative; aspect-ratio: auto; overflow: visible; display: block; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--text); }
.anime-card:hover { border-color: transparent; box-shadow: none; transform: none; }
.card-visual { position: relative; aspect-ratio: 16/9; overflow: hidden; display: block; border-radius: var(--radius-card); background: var(--surface); }
.card-art { position: absolute; inset: 0; background-position: center; background-size: cover; transform: scale(1.001); transition: transform var(--ease-ui),filter var(--ease-ui); }
.card-art::before { background: linear-gradient(180deg,transparent 50%,rgba(4,5,7,.64)); opacity: .72; transition: opacity var(--ease-fast); }
.anime-card:hover .card-art { transform: scale(1.035); filter: brightness(.74); }
.anime-card:hover .card-art::before { opacity: 1; }
.card-badge { left: 9px; top: 9px; padding: 4px 6px; border: 0; border-radius: 3px; background: rgba(8,9,11,.76); font-size: 7px; font-weight: 600; }
.age-rating-badge { position: absolute; z-index: 4; right: 9px; top: 9px; min-width: 32px; height: 32px; padding: 0 5px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.45); border-radius: 5px; background: rgba(8,9,11,.84); color: #fff; font-family: var(--display); font-size: 10px; font-weight: 850; letter-spacing: -.02em; line-height: 1; box-shadow: 0 5px 16px rgba(0,0,0,.3); backdrop-filter: blur(7px); }
.age-rating-10 { border-color: rgba(126,222,176,.72); color: #a9efc8; }
.age-rating-12,.age-rating-13 { border-color: rgba(245,194,91,.76); color: #ffd986; }
.age-rating-16 { border-color: rgba(255,137,117,.78); color: #ffab9c; }
.age-rating-18 { border-color: rgba(239,73,86,.88); background: rgba(83,17,24,.9); color: #fff; }
.age-rating-inline { min-width: 29px; height: 23px; padding: 0 6px; display: inline-grid !important; place-items: center; border: 1px solid rgba(255,255,255,.34); border-radius: 4px; color: #f6d27d !important; font-size: 9px !important; font-weight: 800; line-height: 1; }
.card-hover-action { position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--text); color: #0b0c0e; opacity: 0; transform: translate(-50%,-44%) scale(.94); transition: opacity var(--ease-fast),transform var(--ease-fast); }
.card-hover-action svg { width: 16px; fill: currentColor; stroke: none; }
.anime-card:hover .card-hover-action,.anime-card:focus-visible .card-hover-action { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.anime-card.is-loading { opacity: .58; cursor: wait; pointer-events: none; }
.anime-card.is-loading .card-hover-action { opacity: 1; animation: account-delete-pulse .75s ease-in-out infinite alternate; }
.card-info { position: static; display: block; padding: 10px 1px 0; }
.card-info strong { display: block; font-size: 13px; font-weight: 600; letter-spacing: -.012em; }
.card-info span { margin-top: 4px; color: #777a81; font-size: 9px; }
.card-info i { padding: 0 3px; color: #50535a; font-style: normal; }
.card-progress { inset: auto 0 0; height: 2px; background: rgba(255,255,255,.18); }
.rank-wrap { height: auto; align-items: center; }
.rank-wrap .anime-card { height: auto; }
.rank-number { align-self: end; margin-bottom: 28px; font-size: 130px; }

/* Search: tabs first, content second */
.search-panel { background: rgba(8,9,11,.98); backdrop-filter: none; }
.search-shell { height: 94px; margin-top: 5vh; }
.search-shell input { font-size: clamp(26px,3.5vw,44px); font-weight: 500; }
.search-content { margin-top: var(--space-8); display: block; }
.search-categories { position: static; display: flex; gap: var(--space-6); padding: 0 0 var(--space-3); border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.search-categories span { display: none; }
.search-categories button { width: auto; min-width: max-content; min-height: 34px; padding: 0; border: 0; border-radius: 0; background: transparent; color: #777a82; font-size: 11px; font-weight: 500; }
.search-categories button:hover { background: transparent; color: var(--text); }
.search-categories button.active { border: 0; border-bottom: 2px solid var(--accent); background: transparent; color: var(--text); }
.search-results-panel { padding-top: var(--space-8); }
.search-heading { margin-bottom: var(--space-4); }
.search-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: var(--space-6) var(--space-4); }

/* Menus, authentication and account surfaces */
.profile-menu { border-color: var(--border); border-radius: var(--radius-card); background: #121317; box-shadow: 0 18px 52px rgba(0,0,0,.42); }
.profile-menu-links button { min-height: 56px; }
.profile-menu-links button:hover,.profile-menu-logout:hover { background: rgba(255,255,255,.04); }
.profile-menu-links button > b { border-radius: 4px; }
.auth-backdrop,.modal-backdrop { backdrop-filter: blur(8px); }
.auth-card { border-color: var(--border); border-radius: var(--radius-modal); background: #121317; box-shadow: 0 28px 90px rgba(0,0,0,.62); }
.auth-brand { margin-bottom: var(--space-8); }
.auth-card h2 { font-size: 38px; font-weight: 600; }
.auth-intro { max-width: 360px; font-size: 12px; line-height: 1.6; }
.auth-tabs { margin-top: var(--space-6); }
.auth-tabs button { font-weight: 500; }
.auth-discord-button { border: 0; background: #5865f2; }
.auth-discord-button:hover { background: #6874f5; }
.auth-form input { border-color: var(--border); border-radius: var(--radius-control); background: #0b0c0f; }
.detail-modal { border-radius: var(--radius-modal); background: #121317; }
.account-section { border-radius: var(--radius-card); background: #16181c; }
.account-chip,.discord-link-card,.two-factor-setup { border-radius: var(--radius-card); }
.account-sidebar button { border-radius: var(--radius-control); }
.account-sidebar button.active { box-shadow: inset 2px 0 0 var(--accent); }

/* Parental controls */
.parental-control-card { padding: 24px; display: grid; grid-template-columns: 52px minmax(0,1fr) minmax(190px,230px); align-items: center; gap: 20px; border: 1px solid var(--border); border-radius: var(--radius-card); background: #1b1d22; }
.parental-control-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,101,79,.1); color: var(--accent-hover); }
.parental-control-icon svg { width: 25px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.parental-control-label { color: var(--accent); font-size: 8px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.parental-control-copy h4 { margin: 6px 0 0; font-family: var(--display); font-size: 19px; }
.parental-control-copy p { max-width: 500px; margin: 8px 0 0; color: #85888f; font-size: 11px; line-height: 1.6; }
.parental-age-field { display: grid; gap: 8px; }
.parental-age-field > span { color: #777a81; font-size: 9px; }
.parental-age-field select { width: 100%; height: 44px; padding: 0 36px 0 13px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-control); outline: 0; background: #0e1014; color: #f0efec; font: inherit; font-size: 11px; cursor: pointer; }
.parental-age-field select:hover,.parental-age-field select:focus { border-color: rgba(255,101,79,.7); }
.parental-control-note { margin-top: var(--space-5); padding: 16px 18px; border-left: 2px solid var(--accent); background: rgba(255,255,255,.025); }
.parental-control-note strong { color: #dad9d5; font-size: 11px; }
.parental-control-note p { margin: 6px 0 0; color: #70737a; font-size: 9px; line-height: 1.55; }

/* Footer */
body > footer { min-height: 170px; padding-block: var(--space-12); }

@media (max-width: 980px) {
  .search-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .cards-row { grid-auto-columns: clamp(215px,27vw,260px); }
}

@media (max-width: 800px) {
  :root { --page-pad: 18px; }
  .topbar,.topbar.scrolled { height: 58px; padding-inline: 14px; background: rgba(8,9,11,.88); }
  .topbar .brand img { height: 31px; }
  .nav-actions { gap: 6px; }
  .topbar .discord-button,.icon-button,.profile { width: 34px; height: 34px; min-height: 34px; border-radius: var(--radius-control); }
  .hero { height: 88svh; min-height: 590px; padding-bottom: 66px; }
  .hero-image { object-position: 64% center; }
  .hero-bg::after { background: linear-gradient(0deg,var(--background) 0%,rgba(8,9,11,.82) 31%,rgba(8,9,11,.08) 76%),linear-gradient(90deg,rgba(7,8,10,.76),rgba(7,8,10,.08)); }
  .hero-content { width: calc(100% - 36px); margin-inline: 18px; }
  .hero h1 { font-size: clamp(38px,12vw,58px); }
  .hero-copy { margin-block: 14px 20px; font-size: 13px; -webkit-line-clamp: 3; }
  .hero-actions { gap: 8px; overflow: visible; }
  .hero-actions .button { flex: 0 1 auto; width: auto; min-width: 0; padding-inline: 14px; }
  .hero-actions .button.primary { flex: 1 1 160px; }
  .hero-actions .button.glass { flex: 1 1 160px; }
  .hero-index { right: 18px; bottom: 22px; display: block; }
  .hero-pagination { gap: 5px; }
  .hero-pagination button { width: 20px; }
  .hero-count,.hero-progress { display: none; }
  .content { padding-top: var(--space-8); }
  .catalogue-heading { margin-bottom: var(--space-8); align-items: center; }
  .catalogue-heading h2 { font-size: 29px; }
  .catalogue-search { min-width: 42px; width: 42px; height: 42px; padding: 0; justify-content: center; border: 1px solid var(--border); border-radius: var(--radius-control); }
  .catalogue-search span,.catalogue-search kbd { display: none; }
  .row-section { margin-bottom: var(--space-8); }
  .cards-row { grid-auto-columns: minmax(215px,72vw); gap: var(--space-3); }
  .search-content { margin-top: var(--space-6); }
  .search-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--space-6) var(--space-3); }
  .search-categories { gap: 20px; margin-bottom: 0; }
  .search-categories button { border-color: transparent; border-radius: 0; }
  .auth-card,.auth-card.dashboard-card,.detail-modal { border-radius: var(--radius-modal) var(--radius-modal) 0 0; }
}

@media (max-width: 480px) {
  .topbar .brand { max-width: 112px; }
  .topbar .brand img { max-width: 100%; height: 29px; }
  .nav-actions { margin-left: auto; }
  .topbar .discord-button,.icon-button,.profile { width: 32px; height: 32px; min-height: 32px; }
  .topbar .discord-button svg,.icon-button svg { width: 16px; }
  .hero { height: 84svh; min-height: 570px; }
  .hero-content { bottom: auto; }
  .hero h1 { font-size: clamp(34px,11vw,48px); }
  .hero-meta span:nth-of-type(2) { display: none; }
  .hero-copy { max-height: 64px; }
  .hero-actions { width: 100%; }
  .hero-actions .button { min-height: 43px; font-size: 12px; }
  .hero-actions .button.glass { flex: 0 0 48px; width: 48px; padding: 0; font-size: 0; }
  .catalogue-heading { gap: 12px; }
  .catalogue-heading h2 { font-size: 26px; }
  .cards-row { grid-auto-columns: 78vw; }
  .card-info strong { font-size: 13px; }
  .search-grid { grid-template-columns: 1fr; }
  .search-grid .anime-card { aspect-ratio: auto; }
  body > footer { padding-block: var(--space-8); }
}

/* Buttons — clear hierarchy and tactile feedback */
button,
a[class$="-button"] { touch-action: manipulation; }

.button {
  min-height: 44px;
  padding-inline: 19px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: -.005em;
  transition: color var(--ease-fast),background-color var(--ease-fast),border-color var(--ease-fast),box-shadow var(--ease-fast),transform var(--ease-fast);
}
.button svg { transition: transform var(--ease-fast); }
.button .media-action-icon { width: 18px; height: 18px; flex: 0 0 18px; }
.button .media-action-play { fill: currentColor; stroke: currentColor; }
.button .media-action-details { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(1px) scale(.985); }
.button:focus-visible { outline-offset: 3px; }
.button:disabled,
.button.disabled {
  cursor: not-allowed;
  opacity: .46;
  box-shadow: none;
  transform: none;
}

.button.primary {
  border-color: rgba(255,255,255,.10);
  background: var(--accent);
  color: #fff;
  box-shadow: inset 0 1px rgba(255,255,255,.16),0 5px 15px rgba(0,0,0,.2);
}
.button.primary:hover {
  border-color: rgba(255,255,255,.18);
  background: var(--accent-hover);
  box-shadow: inset 0 1px rgba(255,255,255,.2),0 7px 18px rgba(0,0,0,.26);
}
.button.primary:hover svg { transform: translateX(2px); }
.button.primary:active { background: #ed5945; box-shadow: inset 0 2px 4px rgba(80,10,0,.18); }

.button.glass,
.button.outline {
  border-color: rgba(255,255,255,.15);
  background: rgba(17,19,23,.78);
  color: #e9e8e4;
  box-shadow: inset 0 1px rgba(255,255,255,.035);
  backdrop-filter: none;
}
.button.glass:hover,
.button.outline:hover {
  border-color: rgba(255,255,255,.28);
  background: #202228;
  color: #fff;
}
.button.outline { margin-top: 0; }

.danger-button {
  border-color: rgba(239,114,103,.38);
  background: rgba(239,114,103,.10);
  color: #ff9d94;
  box-shadow: none;
}
.danger-button:hover { border-color: rgba(239,114,103,.66); background: rgba(239,114,103,.17); color: #ffc0ba; }

.hero-actions { gap: 9px; }
.hero-actions .button.primary { min-width: 116px; }
.hero-actions .button.glass { color: rgba(255,255,255,.86); }

.icon-button,
.row-controls button,
.catalogue-search,
.circle-button,
.modal-close,
.player-close,
.community-close,
.copy-secret,
.source-button,
.logout-button,
.profile-menu-links button,
.profile-menu-logout {
  transition: color var(--ease-fast),background-color var(--ease-fast),border-color var(--ease-fast),box-shadow var(--ease-fast),transform var(--ease-fast);
}
.icon-button:active,
.row-controls button:active,
.catalogue-search:active,
.circle-button:active,
.modal-close:active,
.player-close:active,
.community-close:active { transform: scale(.94); }

.icon-button { color: rgba(255,255,255,.72); }
.icon-button:hover { background: rgba(255,255,255,.10); color: #fff; }
.profile { transition: background-color var(--ease-fast),box-shadow var(--ease-fast),transform var(--ease-fast); }
.profile:hover { background: var(--accent-hover); box-shadow: 0 0 0 3px rgba(255,101,79,.13); transform: translateY(-1px); }
.profile:active { transform: scale(.95); }

.row-controls button {
  border: 1px solid rgba(255,255,255,.08);
  background: #131519;
  color: #a8abb2;
}
.row-controls button:hover { border-color: rgba(255,255,255,.18); background: #202228; color: #fff; transform: translateY(-1px); }

.catalogue-search { border-bottom-color: rgba(255,255,255,.18); }
.catalogue-search:hover { border-bottom-color: var(--accent); color: #fff; }
.catalogue-search:hover svg { color: var(--accent-hover); transform: scale(1.06); }
.catalogue-search svg { transition: color var(--ease-fast),transform var(--ease-fast); }

.circle-button {
  border-color: rgba(255,255,255,.2);
  border-radius: 7px;
  background: rgba(13,15,18,.76);
  color: #fff;
}
.circle-button:hover { border-color: rgba(255,255,255,.38); background: #24262c; transform: translateY(-1px); }
.circle-button.saved { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 1px rgba(255,255,255,.16); }
.heart-icon { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.list-button { display: inline-grid; place-items: center; }
.list-button .heart-icon { width: 20px; height: 20px; transition: fill var(--ease-fast),stroke var(--ease-fast),transform var(--ease-fast); }
.list-button:hover .heart-icon { transform: scale(1.08); }
.list-button.saved .heart-icon { fill: currentColor; stroke: currentColor; transform: scale(1.04); }
.profile-menu-links .heart-icon { fill: none; stroke: currentColor; }
.profile-menu-links #profileMenuWatchlist:hover .heart-icon { color: #ff8b79; transform: scale(1.06); }

/* Full catalogue — filterable, progressively loaded library */
.catalogue-page { display: none; min-height: 100svh; padding: 132px var(--page-pad) var(--space-16); background: var(--background); }
body.catalogue-view .hero,
body.catalogue-view .content,
body.catalogue-view .upcoming-page { display: none; }
body.catalogue-view .catalogue-page { display: block; }
body.catalogue-view .topbar { height: 62px; border-bottom: 1px solid rgba(255,255,255,.07); background: rgba(9,10,12,.96); }
body.catalogue-view .topbar-search {
  width: min(270px,25vw);
  min-width: 190px;
  height: 36px;
  padding: 0 10px 0 12px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: var(--radius-control);
  background: rgba(255,255,255,.045);
}
body.catalogue-view .topbar-search:hover { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.075); }
body.catalogue-view .topbar-search svg { width: 16px; flex: 0 0 auto; }
body.catalogue-view .topbar-search-label { min-width: 0; flex: 1; display: block; overflow: hidden; color: #92959c; font-size: 11px; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
body.catalogue-view .topbar-search:hover .topbar-search-label { color: var(--text); }
body.catalogue-view .topbar-search kbd { display: block; flex: 0 0 auto; border: 0; padding: 0; color: #60636a; font-size: 9px; }
.catalogue-page-intro { max-width: var(--content-max); margin: 0 auto var(--space-12); display: flex; align-items: end; justify-content: space-between; gap: var(--space-10); }
.catalogue-page-intro h1 { margin: 0; max-width: 780px; font-family: var(--display); font-size: clamp(48px,6.2vw,92px); font-weight: 600; line-height: .9; letter-spacing: -.065em; text-wrap: balance; }
.catalogue-page-intro p { max-width: 390px; margin: 0 0 5px; color: var(--text-muted); font-size: 13px; line-height: 1.65; }
.catalogue-browser { max-width: var(--content-max); margin: 0 auto; display: grid; grid-template-columns: 220px minmax(0,1fr); gap: clamp(32px,5vw,76px); align-items: start; }
.catalogue-filters { position: sticky; top: 88px; max-height: calc(100dvh - 112px); padding-right: var(--space-5); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; border-right: 1px solid var(--border); scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: rgba(255,101,79,.72) rgba(255,255,255,.055); }
.catalogue-filters::-webkit-scrollbar { width: 7px; }
.catalogue-filters::-webkit-scrollbar-track { border-radius: 999px; background: rgba(255,255,255,.045); }
.catalogue-filters::-webkit-scrollbar-thumb { border: 2px solid #0d0f12; border-radius: 999px; background: rgba(255,101,79,.78); }
.catalogue-filters::-webkit-scrollbar-thumb:hover { background: #ff806b; }
.catalogue-filter-heading { position: sticky; z-index: 2; top: 0; margin-bottom: var(--space-6); padding: 3px 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: linear-gradient(180deg,#0d0f12 72%,rgba(13,15,18,0)); }
.catalogue-filter-heading strong { font-family: var(--display); font-size: 18px; }
.catalogue-filter-heading button { padding: 0; border: 0; background: transparent; color: #70737a; font-size: 9px; cursor: pointer; }
.catalogue-filter-heading button:hover { color: var(--accent); }
.catalogue-filters fieldset { margin: 0 0 var(--space-6); padding: 0; border: 0; }
.catalogue-filters legend { margin-bottom: 10px; color: #686b72; font-size: 9px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.catalogue-filters label { min-height: 29px; display: flex; align-items: center; gap: 9px; color: #9b9da3; font-size: 11px; cursor: pointer; transition: color var(--ease-fast); }
.catalogue-filters label:hover { color: var(--text); }
.catalogue-filters input { position: absolute; opacity: 0; pointer-events: none; }
.catalogue-filters label span::before { content: ""; width: 6px; height: 6px; margin-right: 9px; display: inline-block; border: 1px solid #555860; border-radius: 50%; vertical-align: 1px; transition: background var(--ease-fast),border-color var(--ease-fast),box-shadow var(--ease-fast); }
.catalogue-filters input:checked + span { color: #f1f0ec; }
.catalogue-filters input:checked + span::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 3px rgba(255,101,79,.12); }
.catalogue-filters input:focus-visible + span { outline: 1px solid var(--accent); outline-offset: 4px; }
.catalogue-results { min-width: 0; }
.catalogue-results-heading { min-height: 32px; margin-bottom: var(--space-5); padding-bottom: var(--space-3); display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--border); }
.catalogue-results-heading strong { font-size: 12px; font-weight: 600; }
.catalogue-results-heading span { color: #65686f; font-size: 9px; }
.catalogue-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: var(--space-8) var(--space-4); }
.catalogue-anime-card { min-width: 0; padding: 0; display: block; border: 0; background: transparent; color: var(--text); text-align: left; cursor: pointer; content-visibility: auto; contain-intrinsic-size: auto 360px; }
.catalogue-card-visual { position: relative; aspect-ratio: 2/3; overflow: hidden; display: block; border-radius: var(--radius-card); background: linear-gradient(145deg,#1b1e24,#111318); }
.catalogue-card-visual::after { content: attr(data-glyph); position: absolute; right: 8px; bottom: -16px; color: rgba(255,255,255,.07); font-family: serif; font-size: 72px; }
.catalogue-card-visual img { position: relative; z-index: 1; width: 100%; height: 100%; display: block; object-fit: cover; image-rendering: auto; backface-visibility: hidden; transform: translateZ(0) scale(1.001); transition: transform var(--ease-ui),filter var(--ease-ui); }
.catalogue-card-visual .card-badge,.catalogue-card-visual .card-hover-action { z-index: 2; }
.catalogue-card-visual .age-rating-badge,.upcoming-poster .age-rating-badge { z-index: 4; }
.catalogue-anime-card:hover img { transform: scale(1.035); filter: brightness(.72); }
.catalogue-anime-card:hover .card-hover-action,.catalogue-anime-card:focus-visible .card-hover-action { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.catalogue-load-status { min-height: 84px; display: grid; place-items: center; color: var(--text-muted); font-size: 11px; }
.catalogue-sentinel { width: 100%; height: 1px; }

/* Weekly releases — latest episodes from the last seven days */
.weekly-page { display: none; min-height: 100svh; padding: 138px var(--page-pad) var(--space-16); background: radial-gradient(circle at 82% 3%,rgba(255,101,79,.09),transparent 25%),var(--background); }
body.weekly-view .hero,
body.weekly-view .content,
body.weekly-view .catalogue-page,
body.weekly-view .upcoming-page,
body.weekly-view .about-page { display: none; }
body.weekly-view .weekly-page { display: block; }
body.weekly-view .topbar { height: 62px; border-bottom: 1px solid rgba(255,255,255,.07); background: rgba(9,10,12,.96); }
.weekly-intro { max-width: var(--content-max); margin: 0 auto var(--space-10); padding-bottom: var(--space-8); display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-8); border-bottom: 1px solid var(--border); }
.weekly-intro-copy { max-width: 760px; }
.weekly-kicker { margin-bottom: var(--space-4); display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.weekly-kicker svg { width: 15px; height: 15px; stroke-width: 1.9; }
.weekly-intro h1 { margin: 0; font-family: var(--display); font-size: clamp(46px,6vw,82px); font-weight: 600; line-height: .95; letter-spacing: -.06em; text-wrap: balance; }
.weekly-intro p { max-width: 650px; margin: var(--space-5) 0 0; color: var(--text-muted); font-size: 14px; line-height: 1.65; }
.weekly-range { min-width: 230px; padding: 15px 17px; display: flex; align-items: center; gap: 12px; border: 1px solid rgba(255,255,255,.085); border-radius: var(--radius-control); background: rgba(255,255,255,.025); }
.weekly-range > span { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; background: rgba(255,101,79,.1); color: var(--accent); }
.weekly-range svg { width: 18px; height: 18px; }
.weekly-range small,.weekly-range strong { display: block; }
.weekly-range small { color: #696c73; font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.weekly-range strong { margin-top: 4px; color: #dadadd; font-size: 11px; font-weight: 600; }
.weekly-status { max-width: var(--content-max); min-height: 180px; margin: 0 auto; display: grid; place-items: center; color: var(--text-muted); font-size: 12px; }
.weekly-status.error { min-height: 90px; color: #e9a49d; }
.weekly-days { max-width: var(--content-max); margin: 0 auto; }
.weekly-day { margin-bottom: var(--space-12); }
.weekly-day-heading { margin-bottom: var(--space-5); padding-bottom: var(--space-3); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.weekly-day-heading > div { display: flex; align-items: center; gap: 10px; }
.weekly-day-heading > div > span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255,101,79,.1); }
.weekly-day-heading h2 { margin: 0; font-family: var(--display); font-size: 25px; font-weight: 600; letter-spacing: -.035em; text-transform: capitalize; }
.weekly-day-heading small { color: #666970; font-size: 10px; }
.weekly-skeletons { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: var(--space-8) var(--space-4); }
.weekly-skeletons i { aspect-ratio: 2/3; border-radius: var(--radius-card); background: linear-gradient(100deg,#121419 20%,#1a1d23 48%,#121419 76%); background-size: 200% 100%; animation: upcoming-loading 1.25s linear infinite; }

/* Upcoming releases — editorial calendar */
.upcoming-page { display: none; min-height: 100svh; padding: 148px var(--page-pad) var(--space-16); background: var(--background); }
body.upcoming-view .hero,
body.upcoming-view .content,
body.upcoming-view .catalogue-page { display: none; }
body.upcoming-view .upcoming-page { display: block; }
body.upcoming-view .topbar { height: 62px; border-bottom: 1px solid rgba(255,255,255,.07); background: rgba(9,10,12,.96); }
.upcoming-intro { max-width: var(--content-max); margin: 0 auto var(--space-8); display: flex; align-items: end; justify-content: space-between; gap: var(--space-8); }
.upcoming-intro-copy { position: relative; max-width: 700px; padding-left: var(--space-6); }
.upcoming-intro-copy::before { content: ""; position: absolute; inset: 4px auto 4px 0; width: 2px; background: var(--accent); }
.upcoming-intro h1 { max-width: 670px; margin: 0; font-family: var(--display); font-size: clamp(44px,5.4vw,78px); font-weight: 600; line-height: .98; letter-spacing: -.055em; text-wrap: balance; }
.upcoming-intro p { max-width: 560px; margin: var(--space-4) 0 0; color: var(--text-muted); font-size: 14px; line-height: 1.65; }
.upcoming-note { flex: 0 0 auto; padding-bottom: 6px; display: flex; align-items: center; gap: 9px; color: #777a82; font-size: 10px; }
.upcoming-pulse { width: 6px; height: 6px; border-radius: 50%; background: #79c99a; box-shadow: 0 0 0 3px rgba(121,201,154,.1); }
.upcoming-toolbar { max-width: var(--content-max); margin: 0 auto var(--space-10); display: flex; justify-content: center; gap: var(--space-6); overflow-x: auto; border-bottom: 1px solid var(--border); scrollbar-width: none; }
.upcoming-toolbar::-webkit-scrollbar { display: none; }
.upcoming-toolbar button { position: relative; min-height: 42px; flex: 0 0 auto; padding: 0 1px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; background: transparent; color: #777a82; font-size: 12px; font-weight: 500; cursor: pointer; transition: color var(--ease-fast); }
.upcoming-toolbar button > svg { width: 15px; height: 15px; stroke-width: 1.8; }
.upcoming-toolbar button::after { content: ""; position: absolute; inset: auto 0 -1px; height: 2px; background: var(--accent); opacity: 0; transform: scaleX(.65); transition: opacity var(--ease-fast),transform var(--ease-fast); }
.upcoming-toolbar button:hover { color: var(--text); }
.upcoming-toolbar button.active { color: var(--text); }
.upcoming-toolbar button.active::after { opacity: 1; transform: scaleX(1); }
.upcoming-status { max-width: var(--content-max); min-height: 150px; margin: 0 auto; display: grid; place-items: center; color: var(--text-muted); font-size: 12px; }
.upcoming-status.error { min-height: 80px; color: #e9a49d; }
.upcoming-months { max-width: var(--content-max); margin: 0 auto; }
.upcoming-month { margin-bottom: var(--space-12); }
.upcoming-month-heading { margin-bottom: var(--space-4); padding-bottom: var(--space-3); display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--border); }
.upcoming-month-heading h2 { margin: 0; font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: -.035em; text-transform: capitalize; }
.upcoming-month-heading span { color: #666970; font-size: 10px; }
.upcoming-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: var(--space-8) var(--space-4); }
.upcoming-grid.game-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.upcoming-card { min-width: 0; display: block; color: var(--text); }
.upcoming-poster { position: relative; aspect-ratio: 2/3; overflow: hidden; display: block; border-radius: var(--radius-card); background: var(--surface); }
.game-card .upcoming-poster { aspect-ratio: 460/215; }
.upcoming-poster::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(0deg,rgba(5,6,8,.72),transparent); opacity: .5; transition: opacity var(--ease-fast); }
.upcoming-poster img { width: 100%; height: 100%; display: block; object-fit: cover; transform: scale(1.001); transition: transform var(--ease-ui),filter var(--ease-ui); }
.upcoming-poster-empty { width: 100%; height: 100%; display: grid; place-items: center; background: #17191e; color: #454850; font-family: var(--display); font-size: 44px; }
.upcoming-date { position: absolute; z-index: 2; left: 10px; bottom: 10px; padding: 5px 7px; border-radius: 3px; background: rgba(8,9,11,.82); color: #f1f0ec; font-size: 9px; font-weight: 600; backdrop-filter: blur(5px); }
.upcoming-arrow { position: absolute; z-index: 2; right: 10px; top: 10px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(8,9,11,.75); color: #fff; font-size: 13px; opacity: 0; transform: translateY(4px); transition: opacity var(--ease-fast),transform var(--ease-fast); }
a.upcoming-card:hover .upcoming-poster img { transform: scale(1.035); filter: brightness(.82); }
a.upcoming-card:hover .upcoming-poster::after { opacity: .9; }
a.upcoming-card:hover .upcoming-arrow,
a.upcoming-card:focus-visible .upcoming-arrow { opacity: 1; transform: translateY(0); }
.upcoming-card-copy { display: block; padding: 11px 1px 0; }
.upcoming-card-copy strong { overflow: hidden; display: -webkit-box; color: #ecebe7; font-size: 13px; font-weight: 600; line-height: 1.35; letter-spacing: -.012em; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.upcoming-card-copy > span { overflow: hidden; margin-top: 5px; display: block; color: #787b82; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.upcoming-card-copy small { margin-top: 4px; display: block; color: #5e6168; font-size: 9px; }
.upcoming-retry { min-height: 40px; margin: 0 auto; padding: 0 16px; display: block; border: 1px solid var(--border); border-radius: var(--radius-control); background: var(--surface); color: var(--text); cursor: pointer; }
.upcoming-retry:hover { border-color: rgba(255,255,255,.25); background: var(--surface-hover); }
.upcoming-skeletons { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: var(--space-4); }
.upcoming-skeletons i { aspect-ratio: 2/3; border-radius: var(--radius-card); background: linear-gradient(100deg,#121419 20%,#1a1d23 48%,#121419 76%); background-size: 200% 100%; animation: upcoming-loading 1.25s linear infinite; }
@keyframes upcoming-loading { to { background-position: -200% 0; } }

/* About Kage — community and Discord */
.about-page { display: none; min-height: 100svh; padding: 138px var(--page-pad) var(--space-16); overflow: hidden; background: radial-gradient(circle at 82% 10%,rgba(88,101,242,.13),transparent 30%),var(--background); }
body.about-view .hero,
body.about-view .content,
body.about-view .catalogue-page,
body.about-view .upcoming-page { display: none; }
body.about-view .about-page { display: block; }
body.about-view .topbar { height: 62px; border-bottom: 1px solid rgba(255,255,255,.07); background: rgba(9,10,12,.96); }
.about-hero { position: relative; max-width: var(--content-max); min-height: 320px; margin: 0 auto var(--space-10); padding: clamp(36px,6vw,76px); display: flex; align-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.09); border-radius: var(--radius-card); background: linear-gradient(125deg,#151820 0%,#11131a 56%,#17182b 100%); }
.about-hero::before { content: ""; position: absolute; width: 420px; height: 420px; right: -100px; top: -220px; border: 1px solid rgba(255,255,255,.06); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.018),0 0 0 140px rgba(255,255,255,.012); }
.about-hero-copy { position: relative; z-index: 1; max-width: 780px; }
.about-hero h1 { margin: var(--space-3) 0 var(--space-5); font-family: var(--display); font-size: clamp(48px,6vw,86px); font-weight: 600; line-height: .92; letter-spacing: -.065em; text-wrap: balance; }
.about-hero h1 em { color: var(--accent); font-style: normal; }
.about-hero p { max-width: 650px; margin: 0; color: #9a9ca3; font-size: 14px; line-height: 1.75; }
.about-kanji { position: absolute; right: clamp(28px,7vw,100px); bottom: -55px; color: rgba(255,255,255,.035); font-family: serif; font-size: clamp(210px,25vw,380px); line-height: 1; user-select: none; }
.about-grid { max-width: var(--content-max); margin: 0 auto; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.35fr); gap: var(--space-5); }
.about-card { min-width: 0; padding: clamp(26px,3.2vw,44px); border: 1px solid rgba(255,255,255,.085); border-radius: var(--radius-card); background: #111318; }
.about-card h2 { margin: var(--space-3) 0 var(--space-4); font-family: var(--display); font-size: clamp(23px,2.5vw,34px); font-weight: 600; line-height: 1.08; letter-spacing: -.035em; }
.about-card p { margin: 0; color: #8c8f96; font-size: 12px; line-height: 1.75; }
.about-card-kicker { color: #6e7179; font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.about-card-icon { width: 42px; height: 42px; margin-bottom: var(--space-6); display: grid; place-items: center; border: 1px solid rgba(255,101,79,.25); border-radius: var(--radius-control); background: rgba(255,101,79,.08); color: var(--accent); }
.about-card-icon svg { width: 20px; }
.about-discord-card { grid-row: span 2; padding: clamp(30px,4vw,54px); background: radial-gradient(circle at 95% 5%,rgba(88,101,242,.22),transparent 34%),#13151c; }
.about-discord-heading { display: flex; align-items: center; gap: var(--space-4); }
.about-discord-heading h2 { margin-bottom: 0; }
.about-discord-icon { width: 52px; height: 52px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 14px; background: #5865f2; box-shadow: 0 16px 35px rgba(88,101,242,.2); }
.about-discord-icon img { width: 27px; }
.about-discord-card > p { margin-top: var(--space-6); font-size: 13px; }
.about-discord-features { margin: var(--space-7) 0; padding: 0; display: grid; gap: 12px; list-style: none; }
.about-discord-features li { min-height: 44px; padding: 0 14px; display: flex; align-items: center; gap: 11px; border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius-control); background: rgba(255,255,255,.025); color: #bfc1c7; font-size: 11px; }
.about-discord-features svg { width: 17px; color: #8790ff; }
.about-discord-cta { min-height: 52px; padding: 0 18px; display: flex; align-items: center; gap: 11px; border-radius: var(--radius-control); background: #5865f2; color: #fff; font-size: 11px; font-weight: 700; transition: background var(--ease-fast),transform var(--ease-fast),box-shadow var(--ease-fast); }
.about-discord-cta:hover { background: #6874f5; box-shadow: 0 12px 30px rgba(88,101,242,.2); transform: translateY(-2px); }
.about-discord-cta img { width: 21px; }
.about-discord-cta svg { width: 17px; margin-left: auto; }
.about-legal { max-width: var(--content-max); margin: var(--space-6) auto 0; display: flex; align-items: center; justify-content: center; gap: 8px; color: #666970; font-size: 10px; text-align: center; }
.about-legal svg { width: 14px; flex: 0 0 auto; }

@media (max-width: 1100px) {
  .catalogue-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .weekly-skeletons { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .upcoming-grid,.upcoming-skeletons { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .upcoming-grid.game-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 800px) {
  .topbar,.topbar.scrolled,body.weekly-view .topbar,body.upcoming-view .topbar,body.catalogue-view .topbar,body.about-view .topbar { height: 94px; padding: 0 14px 34px; }
  body.catalogue-view .topbar-search { width: 34px; min-width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border-color: transparent; background: transparent; }
  body.catalogue-view .topbar-search-label,body.catalogue-view .topbar-search kbd { display: none; }
  .topbar nav { position: absolute; inset: auto 14px 0; height: 34px; display: flex; justify-content: flex-start; gap: 24px; transform: none; }
  .topbar .nav-link { min-height: 34px; padding: 6px 0 8px; gap: 6px; font-size: 11px; }
  .topbar .nav-link svg { width: 14px; height: 14px; }
  .topbar .nav-link.active::after { bottom: 4px; }
  .catalogue-page { padding: 132px 18px var(--space-12); }
  .catalogue-page-intro { margin-bottom: var(--space-8); display: block; }
  .catalogue-page-intro h1 { font-size: clamp(43px,12vw,67px); }
  .catalogue-page-intro p { margin-top: var(--space-5); }
  .catalogue-browser { display: block; }
  .catalogue-filters { position: static; max-height: none; margin: 0 -18px var(--space-8); padding: 0 18px 13px; display: flex; gap: var(--space-5); overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; border-right: 0; border-bottom: 1px solid var(--border); scrollbar-gutter: auto; scrollbar-width: thin; scrollbar-color: rgba(255,101,79,.75) rgba(255,255,255,.055); scroll-snap-type: x proximity; }
  .catalogue-filters::-webkit-scrollbar { display: block; width: auto; height: 6px; }
  .catalogue-filters::-webkit-scrollbar-track { margin-inline: 18px; border-radius: 999px; background: rgba(255,255,255,.045); }
  .catalogue-filters::-webkit-scrollbar-thumb { border: 0; border-radius: 999px; background: rgba(255,101,79,.78); }
  .catalogue-filter-heading { position: static; scroll-snap-align: start; background: none; }
  .catalogue-filter-heading { flex: 0 0 126px; align-content: start; flex-wrap: wrap; }
  .catalogue-filter-heading strong,.catalogue-filter-heading button { width: 100%; }
  .catalogue-filters fieldset { flex: 0 0 150px; margin: 0; scroll-snap-align: start; }
  .catalogue-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--space-6) var(--space-3); }
  .cards-row { grid-auto-columns: minmax(145px,43vw); }
  .weekly-page { padding: 132px 18px var(--space-12); }
  .weekly-intro { display: block; }
  .weekly-range { width: fit-content; margin-top: var(--space-6); }
  .weekly-skeletons { grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--space-6) var(--space-3); }
  .upcoming-page { padding: 138px 18px var(--space-12); }
  .upcoming-intro { display: block; }
  .upcoming-intro-copy { padding-left: var(--space-4); }
  .upcoming-intro h1 { font-size: clamp(38px,10vw,56px); }
  .upcoming-note { margin: var(--space-5) 0 0 var(--space-4); }
  .upcoming-grid,.upcoming-skeletons { grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--space-6) var(--space-3); }
  .upcoming-grid.game-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .about-page { padding: 132px 18px var(--space-12); }
  .about-hero { min-height: 0; padding: 42px 28px; }
  .about-hero h1 { font-size: clamp(43px,12vw,65px); }
  .about-kanji { right: -12px; bottom: -35px; font-size: 210px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-discord-card { grid-row: auto; }
}

@media (max-width: 520px) {
  .catalogue-page { padding-top: 124px; }
  .catalogue-page-intro h1 { font-size: 43px; }
  .catalogue-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--space-6) 10px; }
  .catalogue-anime-card .card-info strong { font-size: 12px; }
  .catalogue-anime-card .card-info span { font-size: 8px; }
  .cards-row { grid-auto-columns: minmax(135px,43vw); }
  .weekly-page { padding-top: 124px; }
  .weekly-intro { margin-bottom: var(--space-8); }
  .weekly-intro h1 { font-size: 43px; }
  .weekly-intro p { font-size: 12px; }
  .weekly-range { width: 100%; }
  .weekly-skeletons { grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--space-6) 10px; }
  .weekly-day-heading h2 { font-size: 21px; }
  .upcoming-page { padding-top: 128px; }
  .upcoming-intro { margin-bottom: var(--space-6); }
  .upcoming-intro h1 { font-size: 39px; }
  .upcoming-intro p { font-size: 12px; }
  .upcoming-toolbar { margin-bottom: var(--space-8); gap: clamp(10px,4vw,var(--space-5)); }
  .upcoming-toolbar button { gap: 5px; font-size: 11px; }
  .upcoming-toolbar button > svg { width: 14px; height: 14px; }
  .upcoming-grid,.upcoming-skeletons { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .upcoming-grid.game-grid { grid-template-columns: 1fr; }
  .upcoming-month { margin-bottom: var(--space-10); }
  .upcoming-month-heading h2 { font-size: 21px; }
  .about-page { padding-top: 124px; }
  .about-hero { padding: 34px 22px; }
  .about-hero h1 { font-size: 42px; }
  .about-hero p { font-size: 12px; }
  .about-card { padding: 24px 20px; }
  .about-discord-heading { align-items: flex-start; }
  .about-discord-icon { width: 44px; height: 44px; border-radius: 12px; }
  .about-discord-icon img { width: 23px; }
  .upcoming-card-copy strong { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .weekly-skeletons i,.upcoming-skeletons i { animation: none; }
  .upcoming-poster img,.upcoming-arrow { transition: none; }
  html { scroll-behavior: auto; }
}

.modal-close,
.player-close,
.community-close {
  border-color: rgba(255,255,255,.10);
  border-radius: 7px;
  background: rgba(11,12,15,.82);
  color: rgba(255,255,255,.78);
}
.modal-close:hover,
.player-close:hover,
.community-close:hover { border-color: rgba(255,255,255,.22); background: #24262c; color: #fff; }

.text-button { padding: 4px 1px; color: #a4a6ad; font-weight: 550; text-underline-offset: 4px; transition: color var(--ease-fast); }
.text-button:hover { color: #fff; text-decoration-thickness: 1px; }
.text-button.danger { color: #f08a7f; }
.text-button.danger:hover { color: #ffaaa1; }

.auth-discord-button {
  min-height: 46px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 7px;
  background: #5865f2;
  font-size: 12px;
  font-weight: 650;
  box-shadow: inset 0 1px rgba(255,255,255,.12);
}
.auth-discord-button:hover { border-color: rgba(255,255,255,.16); background: #6571f4; box-shadow: inset 0 1px rgba(255,255,255,.16),0 7px 18px rgba(0,0,0,.2); transform: translateY(-1px); }
.auth-discord-button:active { transform: translateY(1px) scale(.99); }

.auth-qr-button {
  width: 100%; min-height: 46px; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid rgba(255,255,255,.11); border-radius: 7px; background: #1b1d22; color: #f2f2f3;
  font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; transition: border-color var(--ease-fast),background var(--ease-fast),transform var(--ease-fast);
}
.auth-qr-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; }
.auth-qr-button:hover { border-color: rgba(255,255,255,.23); background: #24272e; transform: translateY(-1px); }
.auth-qr-button:active { transform: translateY(1px) scale(.99); }
.auth-browse-button { width: 100%; min-height: 58px; margin-top: 18px; padding: 10px 13px; display: grid; grid-template-columns: 22px minmax(0,1fr) 17px; align-items: center; gap: 11px; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; background: rgba(255,255,255,.025); color: #b9bbc1; font: inherit; text-align: left; cursor: pointer; transition: border-color .18s ease,background .18s ease,transform .18s ease; }
.auth-browse-button:hover { border-color: rgba(255,139,116,.34); background: rgba(255,105,82,.065); transform: translateY(-1px); }
.auth-browse-button > svg { width: 18px; height: 18px; color: #ff8d78; }
.auth-browse-button > svg:last-child { width: 14px; color: #777a82; }
.auth-browse-button strong,.auth-browse-button small { display: block; }
.auth-browse-button strong { color: #ececef; font-size: 11px; }
.auth-browse-button small { margin-top: 3px; color: #777a82; font-size: 8px; }

/* Wide public profile and shared playlists */
.public-profile-shell { padding: 24px; }
.public-profile-card { width: min(1120px,calc(100vw - 48px)); max-height: calc(100dvh - 48px); overflow: hidden; border-radius: 24px; background: #121318; }
.public-profile-card > .modal-close { z-index: 20; right: 20px; top: 20px; }
.public-profile-shell.playlist-view-open .public-profile-card > .modal-close { display: none; }
.public-profile-content { min-height: min(720px,calc(100dvh - 48px)); }
.public-profile-layout { position: relative; z-index: 2; min-height: inherit; display: grid; grid-template-columns: minmax(330px,390px) minmax(0,1fr); }
/* Keep the emperor artwork decorative on full profiles: the generic effect scales
   from the complete modal height and otherwise grows over the playlist cards. */
.public-profile-card[data-profile-effect="emperor"] .public-profile-effect-layer::before {
  left: 0;
  right: 0;
  bottom: -1%;
  width: 100%;
  height: 78%;
  max-height: none;
  background-position: center bottom;
  background-size: 100% auto;
  opacity: 0;
  transform: translateX(-6%) scale(.97);
  animation-name: public-profile-emperor-character-arrival;
}
.public-profile-card[data-profile-effect="emperor"] .public-profile-effect-layer::after {
  left: 0;
  right: 0;
  bottom: -1%;
  width: 100%;
  height: 70%;
  max-height: none;
  background-position: center bottom;
  background-size: cover;
  transform-origin: 50% 100%;
}
@keyframes public-profile-emperor-character-arrival {
  0%,8% { opacity: 0; transform: translateX(-6%) scale(.97); }
  20%,74% { opacity: .88; transform: translateX(0) scale(1); }
  86% { opacity: .82; transform: translateX(1%) scale(1.01); }
  100% { opacity: 0; transform: translateX(5%) scale(1.025); }
}
.public-profile-overview { min-width: 0; max-height: calc(100dvh - 48px); overflow-y: auto; border-right: 1px solid rgba(255,255,255,.075); background: linear-gradient(160deg,#1a1c23 0%,#15161b 65%,#171611 100%); }
.public-profile-card,.public-profile-overview,.public-profile-playlists { scrollbar-width: none; -ms-overflow-style: none; }
.public-profile-card::-webkit-scrollbar,.public-profile-overview::-webkit-scrollbar,.public-profile-playlists::-webkit-scrollbar { display: none; width: 0; height: 0; }
.public-profile-overview .public-profile-hero { height: 238px; }
.public-profile-overview .public-profile-banner { bottom: 64px; }
.public-profile-overview .public-profile-avatar { left: 34px; width: 118px; height: 118px; }
.public-profile-overview .public-profile-body { padding: 8px 34px 38px; }
.public-profile-overview .public-profile-identity h2 { font-size: 31px; }
.public-profile-overview .public-profile-biography { margin-top: 20px; }
.public-profile-overview .public-profile-stats { margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.07); }
.public-profile-playlists { min-width: 0; max-height: calc(100dvh - 48px); overflow-y: auto; padding: 52px 42px 42px; background: radial-gradient(circle at 85% 0,rgba(255,105,78,.08),transparent 32%),#0f1014; }
.public-profile-playlists > header { margin-bottom: 28px; padding-bottom: 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; border-bottom: 1px solid rgba(255,255,255,.08); }
.public-profile-playlists > header span { color: #ff806a; font-size: 9px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.public-profile-playlists > header h2 { margin: 6px 0 5px; font-family: var(--display); font-size: clamp(27px,3vw,38px); letter-spacing: -.035em; }
.public-profile-playlists > header p { max-width: 520px; margin: 0; color: #797c85; font-size: 11px; line-height: 1.5; }
.public-profile-playlists > header > button,.profile-playlist-empty button { min-height: 40px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid rgba(255,128,106,.32); border-radius: 9px; background: rgba(255,103,78,.1); color: #ffc0b5; font: inherit; font-size: 10px; font-weight: 750; cursor: pointer; white-space: nowrap; }
.public-profile-playlists > header > button:hover,.profile-playlist-empty button:hover { background: #ff7058; color: #fff; }
.public-profile-playlists > header button svg,.profile-playlist-empty button svg { width: 15px; height: 15px; }
.profile-playlist-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.profile-playlist-card { min-width: 0; padding: 18px; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; background: linear-gradient(145deg,rgba(255,255,255,.045),rgba(255,255,255,.018)); box-shadow: 0 14px 35px rgba(0,0,0,.17); transition: transform .2s ease,border-color .2s ease; }
.profile-playlist-card:hover { transform: translateY(-2px); border-color: rgba(255,124,101,.25); }
.profile-playlist-card-top { min-width: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.profile-playlist-card-top > div { min-width: 0; }
.profile-playlist-card h3 { overflow: hidden; margin: 8px 0 0; color: #f3f1ee; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.profile-playlist-card > p { min-height: 32px; margin: 8px 0 14px; overflow: hidden; color: #8b8e97; font-size: 10px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.profile-playlist-visibility { display: inline-flex; align-items: center; gap: 5px; color: #82858e; font-size: 8px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.profile-playlist-visibility.public { color: #75d4a0; }
.profile-playlist-visibility.private { color: #b29cdb; }
.profile-playlist-visibility svg { width: 12px; height: 12px; }
.profile-playlist-menu { flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.08); border-radius: 8px; background: rgba(0,0,0,.17); color: #8c8f98; cursor: pointer; }
.profile-playlist-menu:hover { border-color: rgba(255,128,106,.3); color: #fff; }
.profile-playlist-menu svg { width: 13px; height: 13px; }
.profile-playlist-covers { height: 148px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 5px; overflow: hidden; border-radius: 10px; background: #0b0c0f; }
.profile-playlist-covers.cover-count-1 { height: 190px; display: flex; justify-content: center; background: radial-gradient(circle at 50% 35%,#292c34 0,#14161b 58%,#0b0c0f 100%); }
.profile-playlist-covers.cover-count-2 { height: 180px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.profile-playlist-covers.cover-count-3 { height: 160px; grid-template-columns: repeat(3,minmax(0,1fr)); }
.profile-playlist-cover { position: relative; min-width: 0; padding: 0; overflow: hidden; border: 0; background: #22242b; cursor: pointer; }
.profile-playlist-covers.cover-count-1 .profile-playlist-cover { width: 100%; }
.profile-playlist-cover img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .25s ease; }
.profile-playlist-covers.cover-count-1 .profile-playlist-cover img { width: min(52%,150px); margin: auto; box-shadow: 0 0 36px rgba(0,0,0,.42); }
.profile-playlist-cover:hover img { transform: scale(1.07); }
.profile-playlist-cover-fallback { width: 100%; height: 100%; display: grid; place-items: center; color: #ff8b77; font-family: var(--display); font-size: 22px; }
.profile-playlist-more { position: absolute; right: 6px; bottom: 6px; min-width: 28px; height: 22px; padding: 0 7px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(7,8,11,.82); color: #fff; font-size: 9px; font-weight: 800; backdrop-filter: blur(7px); }
.profile-playlist-covers.empty { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; color: #575a63; font-size: 9px; }
.profile-playlist-covers.empty svg { width: 25px; height: 25px; }
.profile-playlist-card footer { margin-top: 13px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #696c75; font-size: 8px; }
.profile-playlist-card footer > span,.profile-playlist-card footer button { display: inline-flex; align-items: center; gap: 5px; }
.profile-playlist-card footer button { padding: 0; border: 0; background: none; color: #aaaeb7; font: inherit; font-weight: 700; cursor: pointer; }
.profile-playlist-card footer button:hover { color: #ff917d; }
.profile-playlist-card footer svg { width: 12px; height: 12px; }
.profile-playlist-empty { grid-column: 1/-1; min-height: 330px; padding: 30px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 9px; border: 1px dashed rgba(255,255,255,.11); border-radius: 16px; color: #737680; text-align: center; }
.profile-playlist-empty > svg { width: 38px; height: 38px; margin-bottom: 7px; color: #ff7a63; }
.profile-playlist-empty strong { color: #e3e1de; font-size: 14px; }
.profile-playlist-empty span { margin-bottom: 10px; font-size: 10px; }
.profile-playlist-editor { grid-column: 1/-1; padding: 24px; border: 1px solid rgba(255,255,255,.09); border-radius: 16px; background: #17191f; }
.profile-playlist-editor > header { margin-bottom: 20px; display: flex; align-items: flex-start; justify-content: space-between; }
.profile-playlist-editor > header small { color: #ff806a; font-size: 8px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.profile-playlist-editor > header h3 { margin: 5px 0 0; font-size: 19px; }
.profile-playlist-editor > header button { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 8px; background: #24262d; color: #a7a9af; cursor: pointer; }
.profile-playlist-editor > header svg { width: 15px; }
.profile-playlist-editor > label:not(.profile-playlist-public) { display: block; margin-top: 13px; color: #9b9da5; font-size: 9px; font-weight: 700; }
.profile-playlist-editor input[type="text"],.profile-playlist-editor > label > input:not([type]),.profile-playlist-editor textarea { width: 100%; margin-top: 7px; padding: 11px 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; outline: 0; background: #0e0f13; color: #eee; font: inherit; font-size: 11px; }
.profile-playlist-editor textarea { resize: vertical; }
.profile-playlist-editor input:focus,.profile-playlist-editor textarea:focus { border-color: rgba(255,121,97,.55); }
.profile-playlist-editor fieldset { margin: 18px 0 0; padding: 0; border: 0; }
.profile-playlist-editor legend { width: 100%; display: flex; justify-content: space-between; color: #9b9da5; font-size: 9px; font-weight: 700; }
.profile-playlist-editor legend span { color: #5f626b; }
.profile-playlist-picker { max-height: 190px; margin-top: 8px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; overflow-y: auto; }
.profile-playlist-picker label { min-width: 0; cursor: pointer; }
.profile-playlist-picker input { position: absolute; opacity: 0; pointer-events: none; }
.profile-playlist-picker label > span { min-height: 45px; padding: 6px; display: flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.07); border-radius: 8px; background: #101116; color: #8e9199; }
.profile-playlist-picker input:checked + span { border-color: rgba(255,119,94,.44); background: rgba(255,105,78,.09); color: #f0eeeb; }
.profile-playlist-picker img { width: 30px; height: 33px; border-radius: 4px; object-fit: cover; }
.profile-playlist-picker b { min-width: 0; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.profile-playlist-picker > p { grid-column: 1/-1; margin: 8px 0; color: #666973; font-size: 9px; }
.profile-playlist-choice-fallback { width: 30px; height: 33px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 4px; background: #292c34; color: #ff9a87; font-style: normal; font-weight: 800; }
.profile-playlist-add { min-height: 38px; margin-top: 10px; padding: 0 14px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(255,119,94,.35); border-radius: 8px; background: rgba(255,105,78,.1); color: #ffb5a8; font: inherit; font-size: 9px; font-weight: 800; cursor: pointer; }
.profile-playlist-add:hover { background: #ff735a; color: #fff; }
.profile-playlist-add svg { width: 14px; }
.profile-playlist-catalog { margin-top: 14px; padding: 16px; border: 1px solid rgba(255,119,94,.22); border-radius: 12px; background: #0e0f13; }
.profile-playlist-catalog > header { display: flex; align-items: center; justify-content: space-between; }
.profile-playlist-catalog > header small { color: #ff806a; font-size: 8px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.profile-playlist-catalog > header h4 { margin: 3px 0 0; color: #eee; font-size: 15px; }
.profile-playlist-catalog > header button { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 7px; background: #24262d; color: #aaa; cursor: pointer; }
.profile-playlist-catalog > header svg { width: 14px; }
.profile-playlist-catalog-tools { margin-top: 13px; display: grid; grid-template-columns: 1fr 36px; gap: 6px; }
.profile-playlist-catalog-tools input { min-width: 0; padding: 10px 11px; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; outline: 0; background: #17191f; color: #eee; font: inherit; font-size: 10px; }
.profile-playlist-catalog-tools input:focus { border-color: rgba(255,121,97,.55); }
.profile-playlist-catalog-tools button { border: 0; border-radius: 8px; background: #ff735a; color: #fff; cursor: pointer; }
.profile-playlist-catalog-tools svg { width: 14px; }
.profile-playlist-catalog-status { min-height: 14px; margin: 7px 1px 3px; display: block; color: #686b74; font-size: 8px; }
.profile-playlist-catalog-results { max-height: 290px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; overflow-y: auto; }
.profile-playlist-catalog-results > p { grid-column: 1/-1; color: #777a83; font-size: 9px; }
.profile-playlist-catalog-card { min-width: 0; padding: 0 0 8px; overflow: hidden; border: 1px solid rgba(255,255,255,.07); border-radius: 8px; background: #17191f; color: #ddd; text-align: left; cursor: pointer; }
.profile-playlist-catalog-card > span { width: 100%; aspect-ratio: 2/2.65; display: grid; place-items: center; overflow: hidden; background: #24262d; color: #ff9a87; font-size: 18px; font-weight: 800; }
.profile-playlist-catalog-card img { width: 100%; height: 100%; object-fit: cover; }
.profile-playlist-catalog-card b,.profile-playlist-catalog-card small { margin: 6px 7px 0; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-playlist-catalog-card b { font-size: 8px; }
.profile-playlist-catalog-card small { color: #ff907c; font-size: 7px; font-weight: 800; }
.profile-playlist-catalog-card:hover,.profile-playlist-catalog-card.added { border-color: rgba(255,119,94,.5); }
.profile-playlist-catalog-card.added small { color: #6dd59a; }
.profile-playlist-public { margin-top: 18px; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.profile-playlist-public > input { width: 17px; height: 17px; accent-color: #ff735a; }
.profile-playlist-public > span { display: grid; grid-template-columns: 18px 1fr; align-items: center; column-gap: 5px; }
.profile-playlist-public svg { grid-row: 1/3; width: 16px; color: #ff8974; }
.profile-playlist-public b { color: #dedfe2; font-size: 10px; }
.profile-playlist-public small { color: #70737c; font-size: 8px; }
.profile-playlist-message { min-height: 15px; margin: 10px 0 0; color: #ff9a87; font-size: 9px; }
.profile-playlist-actions { display: flex; justify-content: flex-end; gap: 8px; }
.profile-playlist-actions button { min-height: 36px; padding: 0 13px; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; background: #21232a; color: #b5b7bd; font: inherit; font-size: 9px; font-weight: 750; cursor: pointer; }
.profile-playlist-actions button.primary { border-color: #ff735a; background: #ff735a; color: #fff; }
.profile-playlist-actions button.danger { margin-right: auto; color: #f58d82; }
.profile-playlist-actions button:disabled { opacity: .55; cursor: wait; }

.profile-playlist-viewer { position: fixed; z-index: 140; inset: 0; display: grid; place-items: center; padding: 24px; }
.profile-playlist-viewer-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(3,4,7,.84); backdrop-filter: blur(13px); cursor: default; }
.profile-playlist-viewer > article { position: relative; z-index: 1; width: min(900px,100%); max-height: min(780px,calc(100dvh - 48px)); padding: 30px; overflow-y: auto; border: 1px solid rgba(255,255,255,.1); border-radius: 22px; background: radial-gradient(circle at 88% 0,rgba(255,105,78,.13),transparent 34%),#121318; box-shadow: 0 30px 90px rgba(0,0,0,.62); }
.profile-playlist-viewer > article > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.profile-playlist-viewer > article > header span { display: inline-flex; align-items: center; gap: 7px; color: #ff806a; font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.profile-playlist-viewer > article > header span svg { width: 14px; height: 14px; }
.profile-playlist-viewer > article > header h2 { margin: 7px 0 0; font-family: var(--display); font-size: clamp(28px,4vw,42px); letter-spacing: -.04em; }
.profile-playlist-viewer > article > header p { max-width: 600px; margin: 8px 0 0; color: #898c95; font-size: 11px; line-height: 1.55; }
.profile-playlist-viewer > article > header > button { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: #202229; color: #b5b7bd; cursor: pointer; }
.profile-playlist-viewer > article > header > button:hover { background: #2a2c34; color: #fff; }
.profile-playlist-viewer > article > header > button svg { width: 16px; height: 16px; }
.profile-playlist-viewer-count { margin: 22px 0 12px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); color: #70737d; font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.profile-playlist-viewer-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 14px; }
.profile-playlist-viewer-item { min-width: 0; padding: 0 0 10px; overflow: hidden; border: 1px solid rgba(255,255,255,.075); border-radius: 11px; background: #191b21; color: #eee; text-align: left; cursor: pointer; transition: transform .2s ease,border-color .2s ease,background .2s ease; }
.profile-playlist-viewer-item:hover { transform: translateY(-3px); border-color: rgba(255,122,98,.45); background: #202229; }
.profile-playlist-viewer-poster { position: relative; width: 100%; aspect-ratio: 2/2.75; display: grid; place-items: center; overflow: hidden; background: #262932; color: #ff8d79; }
.profile-playlist-viewer-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.profile-playlist-viewer-item:hover img { transform: scale(1.045); }
.profile-playlist-viewer-poster > i { font-style: normal; font-size: 26px; font-weight: 850; }
.profile-playlist-viewer-poster > b { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(5,6,9,.42); opacity: 0; transition: opacity .2s ease; }
.profile-playlist-viewer-item:hover .profile-playlist-viewer-poster > b { opacity: 1; }
.profile-playlist-viewer-poster > b svg { width: 27px; height: 27px; fill: #fff; }
.profile-playlist-viewer-item > strong,.profile-playlist-viewer-item > small { margin: 8px 10px 0; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-playlist-viewer-item > strong { font-size: 10px; }
.profile-playlist-viewer-item > small { margin-top: 4px; color: #747781; font-size: 8px; }
.profile-playlist-viewer-empty { grid-column: 1/-1; min-height: 240px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; color: #686b74; }
.profile-playlist-viewer-empty svg { width: 34px; height: 34px; color: #ff7a63; }
.profile-playlist-viewer-empty strong { color: #b8bac0; font-size: 12px; }

@media (max-width: 820px) {
  .public-profile-shell { padding: 10px; align-items: end; }
  .public-profile-card { width: calc(100vw - 20px); max-height: calc(100dvh - 10px); overflow-y: auto; border-radius: 20px 20px 0 0; }
  .public-profile-card > .modal-close { position: fixed; top: max(14px,env(safe-area-inset-top)); right: max(14px,env(safe-area-inset-right)); }
  .public-profile-layout { display: block; }
  .public-profile-card[data-profile-effect="emperor"] .public-profile-effect-layer::before { right: 0; bottom: 0; width: min(108%,620px); height: min(32%,350px); opacity: 0; }
  .public-profile-card[data-profile-effect="emperor"] .public-profile-effect-layer::after { left: 0; right: 0; bottom: 0; width: 100%; height: min(36%,380px); opacity: 0; background-position: center bottom; background-size: cover; }
  .public-profile-overview,.public-profile-playlists { max-height: none; overflow: visible; }
  .public-profile-overview { border-right: 0; }
  .public-profile-playlists { padding: 34px 22px max(34px,env(safe-area-inset-bottom)); }
  .public-profile-playlists > header { align-items: flex-start; }
  .profile-playlist-viewer-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 520px) {
  .public-profile-overview .public-profile-hero { height: 190px; }
  .public-profile-overview .public-profile-banner { bottom: 52px; }
  .public-profile-overview .public-profile-avatar { left: 22px; width: 96px; height: 96px; }
  .public-profile-overview .public-profile-body { padding: 6px 22px 30px; }
  .public-profile-playlists > header { display: grid; }
  .public-profile-playlists > header > button { width: fit-content; }
  .profile-playlist-grid { grid-template-columns: 1fr; }
  .profile-playlist-picker { grid-template-columns: 1fr; }
  .profile-playlist-catalog-results { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .profile-playlist-viewer { padding: 10px; align-items: end; }
  .profile-playlist-viewer > article { max-height: calc(100dvh - 10px); padding: 22px 18px max(24px,env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; }
  .profile-playlist-viewer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
}
.qr-login-panel { display: grid; justify-items: center; gap: 18px; text-align: center; }
.qr-login-panel .verification-copy { max-width: 360px; margin: 0; line-height: 1.6; }
.qr-login-card { width: 236px; margin: 0; padding: 14px; border-radius: 8px; background: #fff; color: #25272d; box-shadow: 0 18px 45px rgba(0,0,0,.3); }
.qr-login-card img { width: 208px; height: 208px; display: block; object-fit: contain; }
.qr-login-card figcaption { min-height: 30px; padding-top: 9px; font-size: 9px; font-weight: 650; line-height: 1.45; }

.qr-scanner-shell { position: fixed; z-index: 110; inset: 0; display: grid; place-items: center; padding: 18px; opacity: 0; visibility: hidden; transition: opacity .18s ease,visibility .18s; }
.qr-scanner-shell.open { opacity: 1; visibility: visible; }
.qr-scanner-backdrop { position: absolute; inset: 0; background: rgba(2,3,5,.84); backdrop-filter: blur(10px); }
.qr-scanner-dialog { position: relative; z-index: 1; width: min(500px,100%); padding: 34px; border: 1px solid var(--border); border-radius: var(--radius-modal); background: #121317; box-shadow: 0 28px 90px rgba(0,0,0,.62); }
.qr-scanner-dialog .eyebrow { margin: 0 0 10px; }
.qr-scanner-dialog h2 { margin: 0; font-family: var(--display); font-size: 34px; font-weight: 600; letter-spacing: -.04em; }
.qr-scanner-intro { margin: 10px 0 22px; color: #8c8f96; font-size: 12px; line-height: 1.55; }
.qr-video-frame { position: relative; width: min(100%,420px); aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius-card); background: #08090b; }
.qr-video-frame video { width: 100%; height: 100%; display: block; object-fit: cover; }
.qr-target { position: absolute; inset: 14%; border: 2px solid rgba(255,255,255,.9); border-radius: 12px; box-shadow: 0 0 0 999px rgba(0,0,0,.28); }
.qr-scanner-message { min-height: 18px; margin: 13px 0; color: #a8abb2; font-size: 11px; text-align: center; }
.qr-scanner-dialog > .button { width: 100%; }

@media (max-width: 520px) {
  .qr-login-card { width: 216px; }
  .qr-login-card img { width: 188px; height: 188px; }
  .qr-scanner-dialog { padding: 28px 18px max(24px,env(safe-area-inset-bottom)); }
  .qr-scanner-dialog h2 { font-size: 30px; }
}

.copy-secret { font-weight: 600; }
.copy-secret:hover { border-color: rgba(255,255,255,.2); background: #24272e; }
.source-button:hover,
.source-button.active { border-color: var(--accent); background: var(--accent); color: white; }
.source-button:active { transform: scale(.97); }

.profile-menu-links button:hover { padding-left: 20px; background: rgba(255,255,255,.045); color: #fff; }
.profile-menu-links button:first-child:hover svg { color: var(--accent-hover); }
.profile-menu-logout:hover { background: rgba(239,114,103,.055); color: #ff9d94; }

@media (max-width: 800px) {
  .hero-actions .button { min-height: 44px; }
  .row-controls button:hover,.profile:hover { transform: none; }
  .footer-actions { width: 100%; margin-left: 0; flex-wrap: wrap; }
  .parental-control-card { grid-template-columns: 46px minmax(0,1fr); padding: 19px; }
  .parental-control-icon { width: 46px; height: 46px; }
  .parental-age-field { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .hero-actions .button { min-height: 43px; }
  .hero-actions .button.glass { flex-basis: 48px; }
  .footer-actions > a { width: 100%; justify-content: center; }
}

/* Mobile hardening — safe areas, small screens and touch interaction */
html,body { width: 100%; max-width: 100%; }
img,video,iframe { max-width: 100%; }

@media (hover: none), (pointer: coarse) {
  button,a,select,input { touch-action: manipulation; }
  .anime-card:hover,.catalogue-anime-card:hover { transform: none; }
  .anime-card:hover .card-art,.catalogue-anime-card:hover img { transform: none; filter: none; }
  .card-hover-action,.upcoming-arrow { display: none; }
}

@media (max-width: 800px) {
  html { scroll-padding-top: calc(104px + env(safe-area-inset-top)); }
  body { min-width: 0; overscroll-behavior-x: none; }
  .topbar,
  .topbar.scrolled,
  body.weekly-view .topbar,
  body.upcoming-view .topbar,
  body.catalogue-view .topbar,
  body.about-view .topbar {
    height: calc(94px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) max(14px,env(safe-area-inset-right)) 34px max(14px,env(safe-area-inset-left));
  }
  .topbar nav { left: max(14px,env(safe-area-inset-left)); right: max(14px,env(safe-area-inset-right)); overflow-x: auto; scrollbar-width: none; }
  .topbar nav::-webkit-scrollbar { display: none; }
  .nav-actions { min-width: 0; }
  .icon-button,.profile { min-width: 40px; min-height: 40px; }
  .profile-menu { top: calc(100px + env(safe-area-inset-top)); right: max(12px,env(safe-area-inset-right)); max-height: calc(100dvh - 116px - env(safe-area-inset-top)); overflow-y: auto; }
  .hero { height: 100dvh; min-height: 590px; padding-bottom: max(92px,calc(72px + env(safe-area-inset-bottom))); }
  .hero-content { bottom: max(86px,calc(68px + env(safe-area-inset-bottom))); }
  .hero-copy { max-height: 64px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
  .catalogue-heading { padding-inline: max(18px,env(safe-area-inset-left)); }
  .section-heading,.cards-row { padding-left: max(18px,env(safe-area-inset-left)); padding-right: max(18px,env(safe-area-inset-right)); }
  .cards-row { grid-auto-columns: minmax(132px,43vw); overscroll-behavior-inline: contain; }
  .catalogue-page { padding: calc(132px + env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(48px,calc(32px + env(safe-area-inset-bottom))) max(18px,env(safe-area-inset-left)); }
  .weekly-page { padding: calc(132px + env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(48px,calc(32px + env(safe-area-inset-bottom))) max(18px,env(safe-area-inset-left)); }
  .upcoming-page { padding: calc(138px + env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(48px,calc(32px + env(safe-area-inset-bottom))) max(18px,env(safe-area-inset-left)); }
  .about-page { padding: calc(132px + env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(48px,calc(32px + env(safe-area-inset-bottom))) max(18px,env(safe-area-inset-left)); }
  .catalogue-filters { overscroll-behavior-inline: contain; }
  .catalogue-grid,.weekly-skeletons,.upcoming-grid,.upcoming-skeletons { min-width: 0; }
  .catalogue-anime-card,.upcoming-card { min-width: 0; }
  .search-panel { padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
  .search-shell { margin-top: 12px; }
  .search-close { display: grid; top: max(12px,env(safe-area-inset-top)); right: max(12px,env(safe-area-inset-right)); }
  .search-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .modal-shell,.auth-shell,.qr-scanner-shell { min-height: 100dvh; }
  .detail-modal { max-height: calc(100dvh - env(safe-area-inset-top)); }
  .auth-card,.auth-card.dashboard-card { max-height: calc(100dvh - env(safe-area-inset-top)); }
  .account-layout,.account-content,.account-section,.profile-settings,.account-chip,.discord-link-card { min-width: 0; max-width: 100%; }
  .account-chip strong,.discord-identity b { max-width: min(55vw,330px); }
  .account-sidebar { overscroll-behavior-inline: contain; }
  .account-sidebar button { min-height: 46px; }
  .parental-age-field select,
  .auth-form input,
  .verification-row input,
  .season-select select,
  .player-toolbar select,
  .community-composer textarea { font-size: 16px; }
  .community-page { min-height: 100dvh; padding-top: env(safe-area-inset-top); }
  .community-topbar { min-height: 58px; padding-inline: max(14px,env(safe-area-inset-right)); }
  .community-layout { padding-bottom: max(12px,env(safe-area-inset-bottom)); }
  .community-composer { padding-bottom: max(11px,env(safe-area-inset-bottom)); }
  .player-stage { width: 100%; height: 100dvh; max-height: 100dvh; }
  .player-close { top: max(12px,env(safe-area-inset-top)); right: max(12px,env(safe-area-inset-right)); }
  .kage-controls { padding-bottom: max(12px,env(safe-area-inset-bottom)); }
  .qr-scanner-shell { padding: max(18px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left)); }
  .qr-scanner-dialog { max-height: calc(100dvh - 36px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); overflow-y: auto; }
  .toast { bottom: max(18px,calc(10px + env(safe-area-inset-bottom))); width: max-content; max-width: calc(100vw - 28px); text-align: center; }
  footer { padding-left: max(22px,env(safe-area-inset-left)); padding-right: max(22px,env(safe-area-inset-right)); padding-bottom: max(38px,calc(24px + env(safe-area-inset-bottom))); }
}

@media (max-width: 480px) {
  .brand img,.topbar .brand img { max-width: 104px; height: auto; }
  .topbar { gap: 8px; }
  .topbar nav { gap: 20px; }
  .hero-content { width: calc(100% - 28px); margin-inline: 14px; }
  .hero h1 { font-size: clamp(31px,11.5vw,46px); }
  .hero-actions .button { padding-inline: 11px; }
  .catalogue-heading { gap: 10px; }
  .cards-row { grid-auto-columns: minmax(126px,42.5vw); gap: 10px; }
  .rank-wrap { min-width: 76vw; }
  .catalogue-page-intro h1,.weekly-intro h1,.upcoming-intro h1 { overflow-wrap: anywhere; }
  .catalogue-grid,.weekly-skeletons,.upcoming-grid,.upcoming-skeletons { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .upcoming-grid.game-grid { grid-template-columns: 1fr; }
  .catalogue-filter-heading { flex-basis: 116px; }
  .catalogue-filters fieldset { flex-basis: 140px; }
  .search-shell { padding-right: 52px; }
  .search-shell input { min-width: 0; font-size: 23px; }
  .detail-modal,.auth-card,.auth-card.dashboard-card { width: 100%; }
  .modal-art { height: min(42dvh,270px); }
  .modal-meta { flex-wrap: wrap; }
  .modal-actions { flex-wrap: wrap; }
  .modal-actions .button { min-width: 130px; }
  .episode { grid-template-columns: minmax(96px,34vw) minmax(0,1fr); }
  .account-heading h2 { font-size: 32px; }
  .account-section { padding: 20px 15px; }
  .section-title { margin-bottom: 22px; }
  .email-change-card,.email-code-card { padding: 20px 16px; }
  .email-change-heading { display: block; }
  .email-account-card { padding: 20px 16px; }
  .email-account-copy p { display: none; }
  .email-change-start { grid-column: 1 / -1; }
  .email-change-icon { margin-bottom: 14px; }
  .email-change-fields { display: grid; grid-template-columns: 1fr; }
  .email-change-actions { display: grid; grid-template-columns: 1fr; }
  .email-change-submit { width: 100%; }
  .email-code-controls { width: 100%; display: grid; grid-template-columns: 1fr; }
  .email-code-controls input { width: 100%; }
  .profile-settings .account-chip { flex-direction: column; }
  .account-chip strong,.discord-identity b { max-width: calc(100vw - 92px); }
  .parental-control-card { padding: 16px; gap: 14px; }
  .parental-control-copy h4 { font-size: 17px; }
  .two-factor-actions { padding-left: 0; }
  .discord-link-card { grid-template-columns: 38px minmax(0,1fr); }
  .footer-actions { gap: 8px; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .topbar,.topbar.scrolled,body.weekly-view .topbar,body.upcoming-view .topbar,body.catalogue-view .topbar,body.about-view .topbar { height: calc(58px + env(safe-area-inset-top)); padding-bottom: 0; }
  .topbar nav { position: static; height: auto; margin-left: 10px; }
  .hero { min-height: 520px; }
  .hero-content { bottom: max(34px,env(safe-area-inset-bottom)); max-width: 62vw; }
  .hero-copy { display: none; }
  .catalogue-page,.weekly-page,.upcoming-page,.about-page { padding-top: calc(86px + env(safe-area-inset-top)); }
  .detail-modal,.auth-card,.auth-card.dashboard-card { max-height: 100dvh; border-radius: 0; }
  .modal-art { height: 55dvh; }
  .player-toolbar { min-height: 70px; }
}

/* Android download */
.download-section {
  isolation: isolate;
  position: relative;
  width: min(calc(100% - (var(--page-pad) * 2)),var(--content-max));
  min-height: 650px;
  margin: var(--space-16) auto 0;
  padding: clamp(56px,7vw,96px) clamp(28px,6vw,88px);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0,1.02fr) minmax(310px,.78fr);
  align-items: center;
  gap: clamp(42px,7vw,110px);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  background:
    linear-gradient(125deg,rgba(255,255,255,.025),transparent 38%),
    radial-gradient(circle at 88% 42%,rgba(255,101,79,.11),transparent 38%),
    #0d0e11;
  box-shadow: 0 36px 100px rgba(0,0,0,.32);
}
.download-section::before {
  content: "KAGE";
  position: absolute;
  z-index: -1;
  left: -20px;
  bottom: -75px;
  color: rgba(255,255,255,.018);
  font-family: var(--display);
  font-size: clamp(150px,22vw,330px);
  font-weight: 800;
  letter-spacing: -.09em;
  line-height: .8;
  pointer-events: none;
}
.download-glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(3px); pointer-events: none; }
.download-glow-one { top: -160px; right: 20%; width: 360px; height: 360px; background: radial-gradient(circle,rgba(255,101,79,.12),transparent 68%); }
.download-glow-two { left: -120px; bottom: -180px; width: 410px; height: 410px; background: radial-gradient(circle,rgba(117,91,255,.065),transparent 68%); }
.download-copy { position: relative; z-index: 2; max-width: 620px; }
.download-kicker { margin-bottom: 22px; display: inline-flex; align-items: center; gap: 9px; color: var(--accent); font-size: 10px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; }
.download-kicker svg { width: 15px; height: 15px; }
.download-copy h2 { margin: 0; font-family: var(--display); font-size: clamp(48px,6vw,82px); font-weight: 650; letter-spacing: -.065em; line-height: .91; }
.download-copy h2 em { color: var(--accent); font-style: normal; }
.download-copy > p { max-width: 540px; margin: 26px 0 0; color: #a3a5ac; font-size: clamp(14px,1.35vw,17px); line-height: 1.72; }
.download-benefits { margin: 32px 0 0; padding: 0; display: grid; gap: 15px; list-style: none; }
.download-benefits li { display: flex; align-items: center; gap: 13px; color: #9698a0; font-size: 12px; }
.download-benefits li > svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--accent); stroke-width: 1.7; }
.download-benefits strong { color: #e7e6e2; font-weight: 600; }
.download-actions { margin-top: 36px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.download-button {
  min-width: min(100%,310px);
  min-height: 66px;
  padding: 10px 14px 10px 11px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 34px rgba(255,72,47,.2),inset 0 1px rgba(255,255,255,.18);
  transition: transform var(--ease-fast),background var(--ease-fast),box-shadow var(--ease-fast);
}
.download-button:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 19px 40px rgba(255,72,47,.27),inset 0 1px rgba(255,255,255,.2); }
.download-button:active { transform: translateY(0) scale(.99); }
.download-button-icon { width: 43px; height: 43px; flex: 0 0 43px; display: grid; place-items: center; border-radius: 7px; background: rgba(0,0,0,.14); }
.download-button-icon svg { width: 20px; height: 20px; }
.download-button > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.download-button small { font-size: 9px; font-weight: 550; letter-spacing: .04em; opacity: .8; }
.download-button strong { font-size: 14px; font-weight: 700; }
.download-button-arrow { width: 19px; margin-left: auto; opacity: .76; }
.download-compatibility { display: inline-flex; align-items: center; gap: 7px; color: #777a82; font-size: 10px; white-space: nowrap; }
.download-compatibility svg { width: 15px; height: 15px; color: #6fd39a; }
.download-visual { position: relative; min-height: 510px; display: grid; place-items: center; }
.download-orbit { position: absolute; border: 1px solid rgba(255,255,255,.075); border-radius: 50%; }
.orbit-one { width: 470px; height: 470px; }
.orbit-two { width: 350px; height: 350px; border-color: rgba(255,101,79,.12); }
.download-orbit::after { content: ""; position: absolute; top: 50%; left: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 18px var(--accent); }
.orbit-two::after { top: 11%; left: auto; right: 17%; width: 5px; height: 5px; background: #fff; box-shadow: 0 0 15px rgba(255,255,255,.75); }
.download-phone-shadow { position: absolute; bottom: 2px; width: 250px; height: 55px; border-radius: 50%; background: rgba(0,0,0,.68); filter: blur(18px); transform: rotate(-4deg); }
.download-phone {
  position: relative;
  z-index: 2;
  width: 246px;
  padding: 7px;
  border: 1px solid rgba(255,255,255,.23);
  border-radius: 35px;
  background: linear-gradient(145deg,#3b3d43 0%,#101115 16%,#050608 82%,#292b31 100%);
  box-shadow: -25px 32px 70px rgba(0,0,0,.62),inset 0 0 0 1px rgba(255,255,255,.06);
  transform: rotate(3.5deg);
}
.download-phone-screen { position: relative; aspect-ratio: 390/844; overflow: hidden; border-radius: 28px; background: #08090c; }
.download-phone-screen::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); pointer-events: none; }
.download-phone-screen img { width: 100%; height: 100%; display: block; object-fit: cover; }
.download-phone-camera { position: absolute; top: 8px; left: 50%; width: 10px; height: 10px; border: 2px solid #202227; border-radius: 50%; background: #050608; box-shadow: 0 0 0 2px rgba(0,0,0,.32); transform: translateX(-50%); }
.download-phone-button { position: absolute; right: -4px; width: 3px; border-radius: 0 3px 3px 0; background: #52545b; }
.phone-volume { top: 105px; height: 55px; }
.phone-power { top: 183px; height: 70px; }
.download-version-card { position: absolute; z-index: 3; right: -10px; bottom: 58px; min-width: 168px; padding: 11px 14px 11px 11px; display: flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.11); border-radius: 10px; background: rgba(19,20,24,.9); box-shadow: 0 18px 40px rgba(0,0,0,.42); backdrop-filter: blur(14px); }
.download-version-card > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(111,211,154,.12); color: #6fd39a; }
.download-version-card svg { width: 15px; height: 15px; }
.download-version-card div { display: grid; gap: 3px; }
.download-version-card small { color: #74777f; font-size: 8px; text-transform: uppercase; letter-spacing: .09em; }
.download-version-card strong { color: #eeeDE9; font-size: 11px; font-weight: 650; }

@media (max-width: 980px) {
  .download-section { grid-template-columns: minmax(0,1fr) 280px; gap: 34px; padding-inline: clamp(28px,5vw,54px); }
  .download-copy h2 { font-size: clamp(46px,7vw,66px); }
  .download-phone { width: 220px; }
  .download-visual { min-height: 480px; }
  .orbit-one { width: 390px; height: 390px; }
  .orbit-two { width: 300px; height: 300px; }
  .download-version-card { right: -2px; }
}

@media (max-width: 760px) {
  .download-section { width: calc(100% - 28px); min-height: 0; margin-top: 52px; padding: 48px 22px 28px; grid-template-columns: 1fr; gap: 38px; border-radius: 14px; }
  .download-copy { text-align: center; }
  .download-kicker { margin-bottom: 18px; }
  .download-copy h2 { font-size: clamp(43px,13vw,64px); }
  .download-copy > p { margin-inline: auto; font-size: 13px; }
  .download-benefits { width: max-content; max-width: 100%; margin: 28px auto 0; text-align: left; }
  .download-benefits li { align-items: flex-start; }
  .download-actions { justify-content: center; }
  .download-compatibility { width: 100%; justify-content: center; }
  .download-visual { min-height: 490px; }
  .download-phone { width: min(228px,66vw); }
  .download-version-card { right: max(0px,calc(50% - 165px)); bottom: 48px; }
  .orbit-one { width: min(410px,105vw); height: min(410px,105vw); }
  .orbit-two { width: min(310px,80vw); height: min(310px,80vw); }
}

@media (max-width: 420px) {
  .download-section { padding-inline: 17px; }
  .download-actions,.download-button { width: 100%; }
  .download-button { min-width: 0; }
  .download-benefits li { font-size: 11px; line-height: 1.5; }
  .download-visual { min-height: 455px; }
  .download-phone { width: min(214px,68vw); }
  .download-version-card { right: -4px; bottom: 42px; min-width: 155px; }
}

@media (prefers-reduced-motion: reduce) {
  .download-button { transition: none; }
}

/* Page de codes événementiels */
.topbar-code-button { min-height: 35px; padding: 0 13px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(255,145,65,.3); border-radius: 999px; background: linear-gradient(135deg,rgba(255,111,38,.14),rgba(139,74,211,.11)); color: #ffd2a3; font-size: 9px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.2); transition: border-color .18s ease,background .18s ease,transform .18s ease; }
.topbar-code-button:hover { border-color: rgba(255,164,89,.62); background: linear-gradient(135deg,rgba(255,111,38,.23),rgba(139,74,211,.19)); transform: translateY(-1px); }
.topbar-code-button svg { width: 15px; height: 15px; }
.code-redemption-page { position: fixed; z-index: 180; inset: 0; min-height: 100dvh; padding: max(26px,env(safe-area-inset-top)) max(28px,env(safe-area-inset-right)) max(26px,env(safe-area-inset-bottom)) max(28px,env(safe-area-inset-left)); overflow-y: auto; display: grid; place-items: center; background: radial-gradient(circle at 76% 25%,rgba(104,48,156,.23),transparent 29%),radial-gradient(circle at 17% 80%,rgba(255,87,31,.13),transparent 31%),linear-gradient(145deg,#08070b,#100b17 54%,#08090d); opacity: 0; visibility: hidden; transform: scale(1.015); transition: opacity .3s ease,visibility .3s ease,transform .35s ease; }
.code-redemption-page.open { opacity: 1; visibility: visible; transform: none; }
.code-redemption-page::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .32; background-image: radial-gradient(circle,rgba(255,255,255,.55) 0 1px,transparent 1.5px); background-size: 93px 93px; background-position: 17px 31px; mask-image: linear-gradient(to bottom,#000,transparent 72%); }
.code-redemption-sky { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.code-redemption-sky > i { position: absolute; right: 9vw; top: 8vh; width: clamp(110px,15vw,210px); height: clamp(110px,15vw,210px); border-radius: 50%; background: radial-gradient(circle at 37% 32%,#fff5c9,#ffca70 62%,#ec7c3e); box-shadow: 0 0 55px rgba(255,157,66,.3); opacity: .86; }
.code-redemption-sky > span { position: absolute; right: 11vw; top: 7vh; color: rgba(31,17,39,.28); font-family: serif; font-size: clamp(100px,14vw,195px); line-height: 1; transform: rotate(8deg); }
.code-redemption-sky > b { position: absolute; width: 27px; height: 12px; border-top: 4px solid rgba(205,169,226,.38); border-radius: 50%; animation: halloween-bat 5s ease-in-out infinite; }
.code-redemption-sky > b::after { content: ""; position: absolute; left: 19px; top: -4px; width: 27px; height: 12px; border-top: 4px solid rgba(205,169,226,.38); border-radius: 50%; transform: scaleX(-1); }
.code-redemption-sky > b:nth-of-type(1) { left: 12%; top: 19%; }
.code-redemption-sky > b:nth-of-type(2) { left: 42%; top: 12%; animation-delay: -1.7s; transform: scale(.65); }
.code-redemption-sky > b:nth-of-type(3) { right: 27%; bottom: 18%; animation-delay: -3.1s; transform: scale(.8); }
.code-redemption-close { position: fixed; z-index: 3; right: max(24px,env(safe-area-inset-right)); top: max(22px,env(safe-area-inset-top)); width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.11); border-radius: 50%; background: rgba(13,10,17,.72); color: #c4bacb; cursor: pointer; backdrop-filter: blur(10px); }
.code-redemption-close:hover { border-color: rgba(255,148,71,.45); color: #fff; }
.code-redemption-content { position: relative; z-index: 1; width: min(1010px,100%); display: grid; grid-template-columns: minmax(0,1.08fr) minmax(300px,.72fr); align-items: center; gap: clamp(45px,8vw,110px); }
.code-redemption-copy { min-width: 0; }
.code-redemption-kicker { display: inline-flex; align-items: center; gap: 8px; color: #ef9a5f; font-size: 9px; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
.code-redemption-kicker svg { width: 17px; height: 17px; }
.code-redemption-copy h2 { margin: 19px 0 21px; color: #f2eff4; font-family: var(--display); font-size: clamp(47px,6vw,78px); line-height: .98; letter-spacing: -.055em; }
.code-redemption-copy h2 em { color: transparent; background: linear-gradient(90deg,#ff8b40,#c77aff); -webkit-background-clip: text; background-clip: text; font-style: normal; }
.code-redemption-copy > p { max-width: 570px; margin: 0; color: #918999; font-size: 13px; line-height: 1.75; }
.code-redemption-form { max-width: 570px; margin-top: 34px; }
.code-redemption-form > label { display: block; margin-bottom: 9px; color: #b8afbd; font-size: 9px; font-weight: 700; }
.code-redemption-form > div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; padding: 5px; border: 1px solid rgba(255,153,84,.2); border-radius: 11px; background: rgba(5,5,8,.67); box-shadow: 0 18px 50px rgba(0,0,0,.27),inset 0 1px rgba(255,255,255,.035); }
.code-redemption-form input { min-width: 0; height: 48px; padding: 0 13px; border: 0; outline: 0; background: transparent; color: #fff5eb; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.code-redemption-form input::placeholder { color: #554c59; }
.code-redemption-form button { min-height: 48px; padding: 0 18px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,180,110,.16); border-radius: 7px; background: linear-gradient(135deg,#e75c2d,#8d4ac1); color: #fff; font-size: 10px; font-weight: 850; cursor: pointer; box-shadow: 0 8px 22px rgba(140,50,70,.28); }
.code-redemption-form button:hover { filter: brightness(1.12); }
.code-redemption-form button:disabled { opacity: .55; cursor: wait; }
.code-redemption-form button svg { width: 15px; height: 15px; }
.code-redemption-form > p { min-height: 18px; margin: 8px 2px 0; color: #ff947d; font-size: 9px; }
.code-redemption-success { max-width: 570px; margin-top: 34px; padding: 17px; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 12px; border: 1px solid rgba(255,150,76,.25); border-radius: 11px; background: rgba(255,113,44,.075); }
.code-redemption-success > svg { width: 30px; height: 30px; color: #ff9c54; }
.code-redemption-success strong,.code-redemption-success span { display: block; }
.code-redemption-success strong { color: #f3ece7; font-size: 11px; }
.code-redemption-success span { margin-top: 3px; color: #887f8d; font-size: 8px; }
.code-redemption-success button { min-height: 34px; padding: 0 11px; border: 1px solid rgba(255,158,88,.32); border-radius: 7px; background: transparent; color: #ffae72; font-size: 8px; font-weight: 800; cursor: pointer; }
.code-reward-card { position: relative; aspect-ratio: .78; min-height: 430px; padding: 34px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid rgba(255,166,96,.2); border-radius: 22px; background: radial-gradient(circle at 62% 24%,rgba(255,184,93,.28),transparent 25%),radial-gradient(circle at 22% 72%,rgba(127,65,174,.35),transparent 40%),linear-gradient(160deg,#211229,#0e0a13 65%); box-shadow: 0 35px 100px rgba(0,0,0,.48),inset 0 1px rgba(255,255,255,.06); transform: rotate(2deg); }
.code-reward-card::before { content: "影"; position: absolute; right: -15px; top: 50px; color: rgba(255,255,255,.035); font-family: serif; font-size: 210px; line-height: 1; }
.code-reward-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg,transparent 35%,rgba(255,255,255,.055) 49%,transparent 63%); background-size: 230% 100%; animation: halloween-card-shine 4.8s ease-in-out infinite; pointer-events: none; }
.code-reward-moon { position: absolute; right: 30px; top: 30px; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,184,89,.13); color: #ffc064; box-shadow: 0 0 28px rgba(255,140,54,.2); }
.code-reward-moon svg { width: 30px; height: 30px; }
.code-reward-label { position: relative; color: #b78fc8; font-size: 8px; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
.code-reward-card > strong { position: relative; width: fit-content; margin-top: 13px; font-family: var(--display); font-size: clamp(44px,5vw,67px); line-height: 1; letter-spacing: -.06em; }
.code-reward-card > p { position: relative; margin: 10px 0 22px; color: #b5a9ba; font-size: 12px; }
.code-reward-card > small { position: relative; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.08); color: #776d7c; font-size: 7px; font-weight: 800; letter-spacing: .12em; }
@keyframes halloween-bat { 50% { margin-top: -10px; transform: translateX(18px) rotate(-8deg); } }
@keyframes halloween-card-shine { 0%,52% { background-position: 130% 0; } 82%,100% { background-position: -130% 0; } }

@media (max-width: 1100px) {
  .topbar-code-button { width: 38px; height: 38px; padding: 0; justify-content: center; }
  .topbar-code-button span { display: none; }
  .guest-login-button { width: 38px; height: 38px; padding: 0; justify-content: center; }
  .guest-login-button span { display: none; }
}
@media (max-width: 760px) {
  .nav-actions { gap: 8px; }
  .code-redemption-page { align-items: start; padding: max(76px,calc(54px + env(safe-area-inset-top))) 18px max(30px,env(safe-area-inset-bottom)); }
  .code-redemption-content { grid-template-columns: 1fr; gap: 42px; }
  .code-redemption-copy { text-align: center; }
  .code-redemption-copy > p,.code-redemption-form,.code-redemption-success { margin-inline: auto; }
  .code-redemption-copy h2 { font-size: clamp(43px,13vw,64px); }
  .code-reward-card { width: min(380px,92vw); min-height: 420px; margin-inline: auto; transform: none; }
}
@media (max-width: 480px) {
  .topbar-code-button { width: 36px; min-height: 36px; height: 36px; }
  .code-redemption-close { width: 38px; height: 38px; right: 14px; top: max(12px,env(safe-area-inset-top)); }
  .code-redemption-form > div { grid-template-columns: 1fr; }
  .code-redemption-form button { justify-content: center; }
  .code-redemption-success { grid-template-columns: 34px minmax(0,1fr); text-align: left; }
  .code-redemption-success button { grid-column: 1 / -1; }
  .code-reward-card { min-height: 360px; padding: 26px; }
}

/* Aperçu du profil connecté dans la page Halloween */
.code-reward-card.code-profile-preview { aspect-ratio: auto; min-height: 486px; padding: 0; display: block; overflow: hidden; transform: rotate(1deg); }
.code-profile-loading { min-height: 486px; display: grid; place-items: center; color: #8f8395; font-size: 10px; }
.code-profile-reward-label { position: absolute; z-index: 5; right: 17px; top: 17px; min-height: 28px; padding: 0 9px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255,173,101,.3); border-radius: 999px; background: rgba(17,10,20,.7); color: #ffc183; font-size: 7px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; backdrop-filter: blur(9px); }
.code-profile-reward-label svg { width: 12px; height: 12px; }
.code-profile-banner { position: relative; height: 166px; overflow: hidden; background: radial-gradient(circle at 74% 30%,rgba(255,172,83,.24),transparent 28%),radial-gradient(circle at 18% 110%,rgba(134,72,191,.46),transparent 48%),linear-gradient(135deg,#2b132f,#100b18); }
.code-profile-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,transparent 50%,rgba(9,7,12,.58)); }
.code-profile-banner > img { width: 100%; height: 100%; display: block; object-fit: cover; }
.code-profile-banner > span { position: absolute; right: 24px; top: -23px; color: rgba(255,255,255,.045); font-family: serif; font-size: 150px; line-height: 1; transform: rotate(8deg); }
.code-profile-banner.has-image > span { display: none; }
.code-profile-avatar { position: absolute; z-index: 4; left: 28px; top: 112px; width: 104px; height: 104px; isolation: isolate; filter: drop-shadow(0 10px 19px rgba(0,0,0,.42)); }
.code-profile-avatar > img:not(.code-profile-decoration),.code-profile-avatar > span { position: absolute; inset: 0; width: 100%; height: 100%; border: 5px solid #130e17; border-radius: 50%; }
.code-profile-avatar > img:not(.code-profile-decoration) { object-fit: cover; }
.code-profile-avatar > span { display: grid; place-items: center; background: linear-gradient(145deg,#5c2c67,#24152c); color: #ffad70; font-family: var(--display); font-size: 34px; font-weight: 800; }
.code-profile-decoration { position: absolute; z-index: 2; left: 50%; top: 50%; width: 137%; height: 137%; max-width: none; object-fit: contain; transform: translate(-50%,-50%); pointer-events: none; }
.code-profile-body { padding: 61px 28px 25px; }
.code-profile-name { min-width: 0; display: flex; align-items: baseline; white-space: nowrap; }
.code-profile-name > strong { min-width: 0; overflow: hidden; font-family: var(--display); font-size: clamp(30px,3.2vw,41px); line-height: 1.08; letter-spacing: -.05em; text-overflow: ellipsis; }
.code-profile-name > em { flex: 0 0 auto; color: #847889; font-family: var(--display); font-size: 17px; font-style: normal; font-weight: 600; }
.code-profile-badges { min-height: 31px; margin-top: 9px; display: flex; align-items: center; gap: 6px; }
.code-profile-badges > span:not(.profile-badge) { color: #706575; font-size: 8px; }
.code-profile-badges .profile-badge-tooltip { display: none; }
.code-profile-divider { height: 1px; margin: 15px 0; background: rgba(255,255,255,.075); }
.code-profile-stats { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; }
.code-profile-stats > span { min-width: 0; padding: 12px; border: 1px solid rgba(255,255,255,.07); border-radius: 9px; background: rgba(8,7,11,.44); }
.code-profile-stats small,.code-profile-stats strong { display: block; }
.code-profile-stats small { color: #786d7d; font-size: 6px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.code-profile-stats strong { margin-top: 5px; overflow: hidden; color: #d8d0da; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.code-profile-member-since { position: relative; padding-left: 39px !important; }
.code-profile-member-since > svg { position: absolute; left: 12px; top: 13px; width: 17px; height: 17px; color: #ff856f; }
.code-profile-body > p { margin: 13px 0 0; display: flex; align-items: center; justify-content: center; gap: 6px; color: #a77c9f; font-size: 7px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.code-profile-body > p svg { width: 12px; height: 12px; color: #ff964f; }

@media (max-width: 760px) {
  .code-reward-card.code-profile-preview { width: min(410px,92vw); min-height: 470px; transform: none; }
}
@media (max-width: 480px) {
  .code-reward-card.code-profile-preview { min-height: 448px; padding: 0; }
  .code-profile-banner { height: 145px; }
  .code-profile-avatar { left: 22px; top: 96px; width: 94px; height: 94px; }
  .code-profile-body { padding: 56px 21px 22px; }
  .code-profile-name > strong { font-size: 31px; }
  .code-profile-name > em { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  [data-username-effect="sakura"]::before,[data-username-effect="sakura"]::after { display: none; }
  [data-username-effect="halloween"]::before,[data-username-effect="halloween"]::after { opacity: .9; animation: none; }
  [data-username-effect="emperor"],[data-username-effect="emperor"]::before,[data-username-effect="emperor"]::after { animation: none; }
  [data-username-effect="emperor"]::before { transform: translateX(-50%); }
  [data-username-effect="blueyyyy"]::before,[data-username-effect="blueyyyy"]::after { animation: none; transform: translateY(-50%); }
  [data-profile-effect="blueyyyy"] > .profile-effect-layer::before,[data-profile-effect="blueyyyy"] > .profile-effect-option-layer::before,.public-profile-card[data-profile-effect="blueyyyy"] .public-profile-effect-layer::before,.code-profile-preview[data-profile-effect="blueyyyy"] > .code-profile-effect-layer::before { left: 66%; top: 30%; opacity: .85; animation: none; transform: rotate(-12deg); }
  :is([data-profile-effect="emperor"] > .profile-effect-layer,[data-profile-effect="emperor"] > .profile-effect-option-layer,.public-profile-card[data-profile-effect="emperor"] .public-profile-effect-layer,.code-profile-preview[data-profile-effect="emperor"] > .code-profile-effect-layer),:is([data-profile-effect="emperor"] > .profile-effect-layer,[data-profile-effect="emperor"] > .profile-effect-option-layer,.public-profile-card[data-profile-effect="emperor"] .public-profile-effect-layer,.code-profile-preview[data-profile-effect="emperor"] > .code-profile-effect-layer)::before,:is([data-profile-effect="emperor"] > .profile-effect-layer,[data-profile-effect="emperor"] > .profile-effect-option-layer,.public-profile-card[data-profile-effect="emperor"] .public-profile-effect-layer,.code-profile-preview[data-profile-effect="emperor"] > .code-profile-effect-layer)::after { animation: none; }
  :is([data-profile-effect="emperor"] > .profile-effect-layer,[data-profile-effect="emperor"] > .profile-effect-option-layer,.public-profile-card[data-profile-effect="emperor"] .public-profile-effect-layer,.code-profile-preview[data-profile-effect="emperor"] > .code-profile-effect-layer)::before { opacity: .9; transform: none; }
  :is([data-profile-effect="emperor"] > .profile-effect-layer,[data-profile-effect="emperor"] > .profile-effect-option-layer,.public-profile-card[data-profile-effect="emperor"] .public-profile-effect-layer,.code-profile-preview[data-profile-effect="emperor"] > .code-profile-effect-layer) i { opacity: .75; animation: none; }
  .profile-emperor-explosions span { opacity: .42; animation: none; transform: translate(-50%,-50%) scale(.86); }
}

/* Annonce de collaboration */
.collaboration-banner {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  min-height: 32px;
  padding: 0 max(16px,env(safe-area-inset-right)) 0 max(16px,env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-bottom: 1px solid rgba(255,255,255,.13);
  background: linear-gradient(90deg,#3d20a3 0%,#6843d7 48%,#2749bb 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .01em;
  text-align: center;
  box-shadow: 0 6px 22px rgba(15,8,50,.26);
  transition: filter var(--ease-fast);
}
.collaboration-banner strong { font-weight: 800; }
.collaboration-banner svg { width: 13px; height: 13px; flex: 0 0 auto; transition: transform var(--ease-fast); }
.collaboration-banner:hover { filter: brightness(1.12); }
.collaboration-banner:hover svg { transform: translate(2px,-2px); }
.topbar { top: 32px; }
.profile-menu { margin-top: 32px; }

@media (max-width: 800px) {
  .collaboration-banner {
    min-height: calc(35px + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
    font-size: 10px;
  }
  .topbar { top: calc(35px + env(safe-area-inset-top)); }
  .profile-menu { margin-top: 35px; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .collaboration-banner { min-height: 28px; padding-top: 0; }
  .topbar { top: 28px; }
  .profile-menu { margin-top: 28px; }
}
.admin-shell { position: fixed; z-index: 2000; inset: 0; display: none; grid-template-columns: 245px minmax(0,1fr); background: #090a0e; color: #f4f2ef; font-family: Inter,sans-serif; }
.admin-shell.open { display: grid; }
.admin-sidebar { min-width: 0; display: flex; flex-direction: column; padding: 25px 17px 18px; border-right: 1px solid #202229; background: #0d0f14; }
.admin-brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 23px; }
.admin-brand img { width: 35px; height: 35px; border-radius: 9px; object-fit: cover; }
.admin-brand span,.admin-secure-state span,.admin-sidebar-foot > span:last-child { display: grid; gap: 2px; }
.admin-brand strong { font: 800 17px/1 Archivo,sans-serif; letter-spacing: .16em; }
.admin-brand small,.admin-sidebar-foot small { color: #666a74; font-size: 9px; }
.admin-secure-state { display: flex; align-items: center; gap: 10px; margin: 0 2px 22px; padding: 11px; border: 1px solid rgba(99,221,166,.16); border-radius: 8px; background: rgba(53,181,125,.06); }
.admin-secure-state > svg { width: 16px; color: #6cdaa8; }
.admin-secure-state strong { color: #b8e9d3; font-size: 9px; }
.admin-secure-state small { color: #5f776d; font-size: 8px; }
.admin-sidebar nav { display: grid; gap: 5px; }
.admin-sidebar nav::before { content: "CATÉGORIES"; padding: 0 10px 7px; color: #4f525b; font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.admin-sidebar nav button { min-height: 42px; display: flex; align-items: center; gap: 11px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: #737781; font: 600 10px Inter,sans-serif; text-align: left; cursor: pointer; }
.admin-sidebar nav button svg { width: 16px; }
.admin-sidebar nav button:hover { color: #d6d7da; background: #15171d; }
.admin-sidebar nav button.active { background: linear-gradient(90deg,rgba(255,101,79,.15),rgba(255,101,79,.045)); color: #ff8977; box-shadow: inset 2px 0 #ff6b55; }
.admin-sidebar-foot { margin-top: auto; display: flex; align-items: center; gap: 9px; padding: 15px 8px 0; border-top: 1px solid #202229; }
.admin-avatar { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg,#f16b56,#76312a); font-size: 10px; font-weight: 800; }
.admin-sidebar-foot strong { overflow: hidden; max-width: 145px; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.admin-main { min-width: 0; overflow-y: auto; }
.admin-topbar { position: sticky; z-index: 3; top: 0; min-height: 105px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 34px; border-bottom: 1px solid #202229; background: rgba(12,14,18,.94); backdrop-filter: blur(18px); }
.admin-eyebrow { color: #ff7965; font-size: 8px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.admin-topbar h1 { margin: 5px 0 3px; font: 700 clamp(22px,3vw,30px)/1.05 Archivo,sans-serif; letter-spacing: -.035em; }
.admin-topbar p { margin: 0; color: #70737c; font-size: 9px; }
.admin-top-actions { display: flex; align-items: center; gap: 8px; }
.admin-top-actions > span { display: inline-flex; align-items: center; gap: 6px; margin-right: 8px; color: #717780; font-size: 8px; }
.admin-top-actions > span i { width: 6px; height: 6px; border-radius: 50%; background: #65dca5; box-shadow: 0 0 9px rgba(101,220,165,.6); }
.admin-top-actions button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #292c34; border-radius: 7px; background: #14161c; color: #9498a2; cursor: pointer; }
.admin-top-actions button:hover { border-color: #454954; color: white; }
.admin-top-actions svg { width: 15px; }
.admin-content { max-width: 1350px; margin: 0 auto; padding: 25px 34px 45px; }
.admin-tab-panel { display: none; }
.admin-tab-panel.active { display: block; animation: admin-in .18s ease; }
@keyframes admin-in { from { opacity: 0; transform: translateY(4px); } }
.admin-metric-row { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.admin-metric-row article { min-width: 0; display: flex; align-items: center; gap: 13px; padding: 17px; border: 1px solid #24262e; border-radius: 9px; background: #111319; }
.admin-metric-icon { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; }
.admin-metric-icon svg { width: 17px; }.admin-metric-icon.coral { color:#ff806b;background:rgba(255,107,85,.1) }.admin-metric-icon.green { color:#69dda8;background:rgba(78,202,145,.09) }.admin-metric-icon.red { color:#ff6570;background:rgba(255,74,86,.09) }.admin-metric-icon.violet { color:#a990ff;background:rgba(130,97,255,.1) }
.admin-metric-row article div { min-width: 0; display: grid; }.admin-metric-row small { color: #666a74; font-size: 8px; text-transform: uppercase; }.admin-metric-row strong { margin: 2px 0; font: 700 23px Archivo,sans-serif; }.admin-metric-row em { overflow: hidden; color: #555962; font-size: 7px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.admin-card { border: 1px solid #24262e; border-radius: 9px; background: #111319; }
.admin-users-card > header { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 19px; border-bottom: 1px solid #24262e; }
.admin-users-card h2,.admin-section-heading h2 { margin: 0 0 4px; font: 700 16px Archivo,sans-serif; }.admin-users-card header p,.admin-section-heading p { margin: 0; color: #666a74; font-size: 8px; }
.admin-search { width: min(280px,35vw); height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid #2a2d35; border-radius: 6px; background: #0c0e12; }.admin-search svg { width: 14px; color: #656974; }.admin-search input { width: 100%; border: 0; outline: 0; background: transparent; color: white; font: 9px Inter,sans-serif; }
.admin-user-list { min-height: 250px; }
.admin-user-list-head,.admin-user-row { display: grid; grid-template-columns: minmax(190px,1.45fr) minmax(120px,.75fr) minmax(110px,.65fr) minmax(155px,.8fr); align-items: center; gap: 14px; padding: 12px 19px; }
.admin-user-list-head { color: #50545e; font-size: 7px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }.admin-user-row { min-height: 64px; border-top: 1px solid #1f2128; }.admin-user-row:hover { background: #14171d; }
.admin-user-id { min-width: 0; display: flex; align-items: center; gap: 10px; }.admin-user-id > span { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: #292c34; color: #b8bbc2; font-size: 10px; font-weight: 800; }.admin-user-id img { width:100%;height:100%;object-fit:cover }.admin-user-id div { min-width: 0; display: grid; gap: 3px; }.admin-user-id strong,.admin-user-id small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.admin-user-id strong { font-size: 9px; }.admin-user-id small { color: #5f626c; font-size: 8px; }
.admin-role,.admin-status { justify-self: start; padding: 4px 7px; border-radius: 4px; background: #24272e; color: #858993; font-size: 7px; font-weight: 800; text-transform: uppercase; }.admin-role.admin { color:#e9bb62;background:rgba(233,187,98,.1) }.admin-role.moderator { color:#ff846f;background:rgba(255,107,85,.1) }.admin-status { display:inline-flex;align-items:center;gap:5px;color:#70dca9;background:rgba(77,191,137,.08) }.admin-status::before { content:"";width:5px;height:5px;border-radius:50%;background:currentColor }.admin-status.banned { color:#ff6871;background:rgba(255,70,82,.09) }.admin-status.warned{color:#ffb84d;background:rgba(255,174,52,.09)}
.admin-user-actions { display:flex;justify-content:flex-end;gap:6px }.admin-user-actions button { min-height: 29px; padding: 0 10px; border: 1px solid #30333c; border-radius: 5px; background: transparent; color: #898d96; font: 700 8px Inter,sans-serif; cursor:pointer }.admin-user-actions button:hover { color:white;border-color:#575b66 }.admin-user-actions .ban { color:#ff7767;border-color:rgba(255,107,85,.25);background:rgba(255,107,85,.055) }.admin-user-actions .unban { color:#75dbaa;border-color:rgba(75,200,143,.25) }.admin-user-actions button:disabled { opacity:.35;cursor:not-allowed }
.admin-loading,.admin-empty { min-height: 250px; display:grid;place-items:center;align-content:center;gap:8px;color:#646872;font-size:9px }.admin-loading svg { width:18px;animation:spin 1s linear infinite }
.admin-section-heading { display:flex;justify-content:space-between;margin:5px 0 20px }.admin-section-heading span { display:block;margin-bottom:5px;color:#ff7965;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.12em }
.admin-stats-grid { display:grid;grid-template-columns:repeat(2,1fr);gap:13px }.admin-stats-grid article { position:relative;min-height:155px;padding:24px;border:1px solid #24262e;border-radius:9px;background:linear-gradient(145deg,#12141a,#0e1015) }.admin-stats-grid article > svg { position:absolute;right:22px;top:22px;width:22px;color:#ff7965 }.admin-stats-grid span,.admin-stats-grid strong,.admin-stats-grid small { display:block }.admin-stats-grid span { color:#737781;font-size:9px }.admin-stats-grid strong { margin:16px 0 7px;font:700 36px Archivo,sans-serif }.admin-stats-grid small { color:#555963;font-size:8px }
.admin-charts-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-top:13px }.admin-chart-card { min-width:0;padding:19px;border:1px solid #24262e;border-radius:9px;background:#111319 }.admin-chart-card>header { min-height:54px;display:flex;align-items:flex-start;justify-content:space-between;gap:14px }.admin-chart-card header span { color:#ff7965;font-size:7px;font-weight:800;letter-spacing:.12em;text-transform:uppercase }.admin-chart-card h3 { margin:4px 0;font:700 14px Archivo,sans-serif }.admin-chart-card header p { margin:0;color:#5d616b;font-size:8px }.admin-chart-card header>b { padding:5px 8px;border-radius:5px;background:rgba(255,107,85,.08);color:#ff806b;font-size:7px }.admin-chart-tabs { display:flex;padding:3px;border-radius:6px;background:#0b0d11 }.admin-chart-tabs button { height:25px;padding:0 8px;border:0;border-radius:4px;background:transparent;color:#5f636d;font:700 7px Inter,sans-serif;cursor:pointer }.admin-chart-tabs button.active { background:#24272e;color:#e3e4e6 }.admin-chart { height:190px;display:flex;align-items:flex-end;gap:3px;margin-top:13px;padding:13px 4px 23px;border-bottom:1px solid #292c33;background:repeating-linear-gradient(to top,transparent 0,transparent 39px,rgba(255,255,255,.035) 40px) }.admin-chart-column { position:relative;height:100%;min-width:0;flex:1;display:flex;align-items:flex-end }.admin-chart-bar { width:100%;min-height:2px;border-radius:3px 3px 1px 1px;background:linear-gradient(180deg,#ff806b,#9f4036);opacity:.82;transition:height .28s ease,opacity .15s }.admin-chart-column:hover .admin-chart-bar { opacity:1;filter:brightness(1.15) }.admin-chart.violet .admin-chart-bar { background:linear-gradient(180deg,#a58cff,#654cc7) }.admin-chart-column>span { position:absolute;left:50%;bottom:-18px;color:#4f535d;font-size:6px;transform:translateX(-50%);white-space:nowrap }.admin-chart-column>em { position:absolute;z-index:2;left:50%;bottom:calc(var(--height) + 5px);display:none;padding:4px 6px;border:1px solid #343740;border-radius:4px;background:#090b0f;color:#e6e7e9;font-size:7px;font-style:normal;white-space:nowrap;transform:translateX(-50%) }.admin-chart-column:hover>em { display:block }.admin-chart-empty { width:100%;align-self:center;color:#555963;font-size:8px;text-align:center }
.admin-security-card { display:flex;align-items:center;gap:17px;margin-top:13px;padding:21px;border:1px solid rgba(89,211,154,.16);border-radius:9px;background:rgba(56,174,119,.045) }.admin-security-card > span { width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:rgba(83,207,148,.1);color:#69dba6 }.admin-security-card svg{width:20px}.admin-security-card div{flex:1}.admin-security-card small{color:#69dba6;font-size:8px;text-transform:uppercase}.admin-security-card h3{margin:4px 0;font-size:11px}.admin-security-card p{margin:0;color:#637169;font-size:8px;line-height:1.5}.admin-security-card b{padding:6px 9px;border-radius:4px;background:rgba(83,207,148,.1);color:#6edbab;font-size:7px;letter-spacing:.1em}
.admin-audit-list { display:grid;gap:8px }.admin-audit-row { display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px 16px;border:1px solid #24262e;border-radius:8px;background:#111319 }.admin-audit-row > span { width:36px;height:36px;display:grid;place-items:center;border-radius:8px;background:rgba(255,107,85,.08);color:#ff806b }.admin-audit-row svg{width:16px}.admin-audit-row div{min-width:0}.admin-audit-row strong,.admin-audit-row small{display:block}.admin-audit-row strong{font-size:9px}.admin-audit-row small{margin-top:4px;color:#666a74;font-size:8px;white-space:normal}.admin-audit-row time{color:#555963;font-size:8px}
.admin-dialog,.ban-notice { position:fixed;z-index:2100;inset:0;display:none;place-items:center;padding:20px }.admin-dialog.open,.ban-notice.open { display:grid }.admin-dialog-backdrop { position:absolute;inset:0;background:rgba(4,5,7,.82);backdrop-filter:blur(8px) }.admin-ban-card { position:relative;width:min(465px,100%);padding:27px;border:1px solid #30333c;border-radius:12px;background:#111319;box-shadow:0 30px 90px #000 }.admin-dialog-close{position:absolute;right:16px;top:16px;width:31px;height:31px;display:grid;place-items:center;border:1px solid #2d3038;border-radius:6px;background:#191b21;color:#8d9199;cursor:pointer}.admin-dialog-close svg{width:14px}.admin-danger-icon{width:41px;height:41px;display:grid;place-items:center;margin-bottom:14px;border-radius:9px;background:rgba(255,86,74,.1);color:#ff7462}.admin-danger-icon svg{width:20px}.admin-ban-card>small{color:#ff7462;font-size:8px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.admin-ban-card h2{margin:5px 0 7px;font:700 22px Archivo,sans-serif}.admin-ban-card>p{margin:0 0 19px;color:#767a84;font-size:9px}.admin-ban-card label:not(.admin-permanent-toggle){position:relative;display:grid;gap:7px;margin-top:13px;color:#a4a7ad;font-size:8px;font-weight:700}.admin-ban-card textarea,.admin-ban-card select{width:100%;border:1px solid #30333c;border-radius:6px;outline:0;background:#0b0d11;color:#e9e9eb;font:9px Inter,sans-serif}.admin-ban-card textarea{padding:11px;resize:vertical;line-height:1.5}.admin-ban-card select{height:38px;padding:0 10px}.admin-ban-card textarea:focus,.admin-ban-card select:focus{border-color:#845149}.admin-ban-card label>span:not(.admin-permanent-toggle span){position:absolute;right:8px;bottom:8px;color:#555963;font-size:7px}.admin-permanent-toggle{display:flex;align-items:center;gap:11px;margin:16px 0;padding:12px;border:1px solid rgba(255,92,80,.15);border-radius:7px;background:rgba(255,92,80,.035);cursor:pointer}.admin-permanent-toggle input{position:absolute;opacity:0}.admin-permanent-toggle>span{position:relative;width:30px;height:17px;border-radius:999px;background:#30333b;transition:.2s}.admin-permanent-toggle>span::after{content:"";position:absolute;width:11px;height:11px;left:3px;top:3px;border-radius:50%;background:#858993;transition:.2s}.admin-permanent-toggle input:checked+span{background:#9e3f35}.admin-permanent-toggle input:checked+span::after{left:16px;background:#fff}.admin-permanent-toggle div{display:grid;gap:2px}.admin-permanent-toggle strong{color:#d9dadd;font-size:8px}.admin-permanent-toggle small{color:#666a74;font-size:7px}.admin-form-message{min-height:12px!important;margin:0!important;color:#ff8573!important}.admin-dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:13px}.admin-dialog-actions button{height:35px;padding:0 14px;border:1px solid #30333c;border-radius:6px;background:transparent;color:#999da5;font:700 8px Inter,sans-serif;cursor:pointer}.admin-dialog-actions button.danger{display:inline-flex;align-items:center;gap:7px;border-color:#d45342;background:#cf4d3d;color:#fff}.admin-dialog-actions svg{width:13px}
.admin-manage-icon { width:41px;height:41px;display:grid;place-items:center;margin-bottom:14px;border-radius:9px;background:rgba(126,102,255,.1);color:#a993ff }.admin-manage-icon svg{width:20px}.admin-manage-section{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:18px 0;padding:14px;border:1px solid #2b2e36;border-radius:8px;background:#0d0f14}.admin-manage-section>div{display:grid;gap:4px}.admin-manage-section strong{color:#dedfe2;font-size:9px}.admin-manage-section small{max-width:310px;color:#656973;font-size:7px;line-height:1.45}.admin-switch{position:relative;flex:0 0 auto;cursor:pointer}.admin-switch input{position:absolute;opacity:0}.admin-switch span{position:relative;width:34px;height:19px;display:block;border-radius:999px;background:#30333b;transition:.2s}.admin-switch span::after{content:"";position:absolute;left:3px;top:3px;width:13px;height:13px;border-radius:50%;background:#858993;transition:.2s}.admin-switch input:checked+span{background:#765ff0}.admin-switch input:checked+span::after{left:18px;background:#fff}.admin-badge-manager>header{display:grid;gap:3px;margin-bottom:9px}.admin-badge-manager header strong{font-size:9px}.admin-badge-manager header small{color:#656973;font-size:7px}.admin-badge-manager>div{display:grid;grid-template-columns:repeat(2,1fr);gap:7px}.admin-badge-manager button{min-height:36px;display:flex;align-items:center;gap:8px;padding:0 10px;border:1px solid #2c2f37;border-radius:6px;background:#0d0f14;color:#777b85;font:700 8px Inter,sans-serif;cursor:pointer}.admin-badge-manager button svg{width:14px}.admin-badge-manager button:hover{border-color:#555966;color:#ddd}.admin-badge-manager button.active{border-color:rgba(167,143,255,.42);background:rgba(126,99,255,.1);color:#b9a8ff}.admin-badge-manager button:disabled,.admin-switch input:disabled+span{opacity:.45;cursor:wait}.admin-user-actions .manage{color:#b29fff;border-color:rgba(153,126,255,.27);background:rgba(126,99,255,.055)}
.admin-warning-icon{width:41px;height:41px;display:grid;place-items:center;margin-bottom:14px;border-radius:9px;background:rgba(255,174,58,.1);color:#ffb642}.admin-warning-icon svg{width:21px}.admin-warn-card>small{color:#ffb642}.admin-dialog-actions button.warning{display:inline-flex;align-items:center;gap:7px;border-color:#c77725;background:#b96518;color:#fff}.admin-user-actions .warn{color:#ffc15a;border-color:rgba(255,178,61,.3);background:rgba(255,171,48,.065)}
.ban-notice { z-index:3000;background:radial-gradient(circle at 50% 0,rgba(164,45,37,.2),transparent 43%),#08090c }.ban-notice-card{width:min(470px,100%);text-align:center}.ban-notice-logo{width:64px;height:64px;display:grid;place-items:center;margin:0 auto 20px;border:1px solid rgba(255,100,79,.2);border-radius:17px;background:rgba(255,100,79,.07);box-shadow:0 0 50px rgba(255,80,65,.08)}.ban-notice-logo img{width:42px;height:42px;border-radius:9px}.ban-notice-card>small{color:#ff715d;font-size:8px;font-weight:800;letter-spacing:.2em}.ban-notice-card h2{margin:8px 0 7px;font:700 30px Archivo,sans-serif;letter-spacing:-.04em}.ban-notice-card>p{color:#777b84;font-size:9px;line-height:1.6}.ban-notice-card>div{margin:22px 0;padding:15px;border:1px solid #252831;border-radius:8px;background:#101218;text-align:left}.ban-notice-card>div span,.ban-notice-card>div strong{display:block}.ban-notice-card>div span{margin-bottom:6px;color:#5e626c;font-size:7px;font-weight:800;text-transform:uppercase;letter-spacing:.12em}.ban-notice-card>div strong{color:#d7d8db;font-size:10px;line-height:1.55}.ban-notice-help{padding:0 25px}.ban-notice-card>button{height:38px;display:inline-flex;align-items:center;gap:7px;margin-top:15px;padding:0 15px;border:1px solid #383b44;border-radius:6px;background:transparent;color:#b8bbc1;font:700 8px Inter,sans-serif;cursor:pointer}.ban-notice-card>button:hover{border-color:#ff6856;color:#fff}.ban-notice-card>button svg{width:14px}.ban-notice-card>#banDeleteMessage{color:#ff7a68}
.warning-notice{position:fixed;z-index:4000;inset:0;display:none;place-items:center;overflow:auto;padding:24px;background:radial-gradient(circle at 50% 38%,rgba(197,39,24,.24),transparent 35%),repeating-linear-gradient(135deg,rgba(255,178,61,.018) 0 18px,transparent 18px 36px),rgba(5,6,8,.985);backdrop-filter:blur(18px)}.warning-notice.open{display:grid;animation:warning-backdrop-pulse 2.4s ease-in-out infinite}.warning-notice-card{position:relative;width:min(680px,100%);padding:48px 54px 42px;overflow:hidden;border:1px solid rgba(255,101,70,.38);border-radius:18px;background:linear-gradient(155deg,rgba(32,18,17,.98),rgba(12,13,17,.99) 52%);box-shadow:0 38px 120px #000,0 0 0 1px rgba(255,179,64,.06) inset,0 0 80px rgba(207,50,29,.15);text-align:center}.warning-notice-card::before{content:"";position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,transparent,#ffb440,#ff5e46,#ffb440,transparent);animation:warning-scan 2s linear infinite}.warning-notice-signal{width:92px;height:92px;display:grid;place-items:center;margin:0 auto 24px;border:1px solid rgba(255,116,75,.48);border-radius:50%;background:radial-gradient(circle,rgba(255,102,62,.2),rgba(255,82,54,.06));color:#ff7657;box-shadow:0 0 0 12px rgba(255,94,55,.035),0 0 60px rgba(255,68,39,.22);animation:warning-signal 1.15s ease-in-out infinite}.warning-notice-signal svg{width:44px;height:44px;stroke-width:1.8}.warning-notice-card>small{color:#ffb24b;font-size:10px;font-weight:900;letter-spacing:.24em}.warning-notice-card h2{margin:10px 0 12px;color:#fff;font:750 clamp(30px,5vw,48px) Archivo,sans-serif;letter-spacing:-.05em}.warning-notice-card>p{max-width:520px;margin:0 auto;color:#a9abb2;font-size:13px;line-height:1.75}.warning-notice-card>p strong{color:#fff}.warning-notice-reason{margin:27px 0 19px;padding:18px 20px;border:1px solid rgba(255,177,62,.18);border-radius:10px;background:rgba(255,173,54,.045);text-align:left}.warning-notice-reason span,.warning-notice-reason strong{display:block}.warning-notice-reason span{margin-bottom:7px;color:#d88d30;font-size:8px;font-weight:900;letter-spacing:.14em;text-transform:uppercase}.warning-notice-reason strong{color:#eee0d3;font-size:12px;line-height:1.65}.warning-notice-lock{display:flex;align-items:center;justify-content:center;gap:8px!important;color:#747780!important;font-size:9px!important}.warning-notice-lock svg{width:14px;height:14px;color:#ff8065}.warning-notice-card>button{min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:9px;margin-top:22px;padding:0 24px;border:1px solid #e46b3f;border-radius:8px;background:linear-gradient(135deg,#d35b34,#a93627);color:#fff;font:800 10px Inter,sans-serif;letter-spacing:.02em;box-shadow:0 12px 32px rgba(174,49,30,.28);cursor:pointer;transition:transform .18s ease,filter .18s ease}.warning-notice-card>button:hover{transform:translateY(-2px);filter:brightness(1.1)}.warning-notice-card>button:disabled{opacity:.55;cursor:wait;transform:none}.warning-notice-card>button svg{width:17px;height:17px}.warning-notice-card>#warningNoticeMessage{min-height:16px;margin-top:10px;color:#ff8b70;font-size:9px}.warning-notice-card.shake{animation:warning-shake .34s ease}
@keyframes warning-backdrop-pulse{50%{background-color:rgba(27,5,4,.985)}}@keyframes warning-signal{50%{transform:scale(1.06);box-shadow:0 0 0 18px rgba(255,94,55,.025),0 0 78px rgba(255,68,39,.32)}}@keyframes warning-scan{from{transform:translateX(-35%)}to{transform:translateX(35%)}}@keyframes warning-shake{20%,60%{transform:translateX(-6px)}40%,80%{transform:translateX(6px)}}
@media(max-width:650px){.warning-notice{padding:12px}.warning-notice-card{padding:34px 20px 28px;border-radius:14px}.warning-notice-signal{width:76px;height:76px;margin-bottom:20px}.warning-notice-signal svg{width:36px;height:36px}.warning-notice-card h2{font-size:31px}.warning-notice-card>p{font-size:11px}.warning-notice-card>button{width:100%}}
@media(prefers-reduced-motion:reduce){.warning-notice.open,.warning-notice-card::before,.warning-notice-signal{animation:none}}
@media(max-width:900px){.admin-shell{grid-template-columns:72px minmax(0,1fr)}.admin-sidebar{padding-inline:10px}.admin-brand span,.admin-secure-state span,.admin-sidebar nav span,.admin-sidebar-foot>span:last-child,.admin-sidebar nav::before{display:none}.admin-brand{justify-content:center;padding-inline:0}.admin-secure-state{justify-content:center;padding:10px}.admin-sidebar nav button{justify-content:center;padding:0}.admin-sidebar-foot{justify-content:center}.admin-metric-row{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){.admin-shell{grid-template-columns:1fr}.admin-sidebar{position:fixed;z-index:5;left:0;right:0;bottom:0;height:64px;display:block;padding:8px 10px;border:0;border-top:1px solid #262933}.admin-brand,.admin-secure-state,.admin-sidebar-foot{display:none}.admin-sidebar nav{grid-template-columns:repeat(3,1fr);gap:4px}.admin-sidebar nav button{height:47px;display:grid;place-items:center;align-content:center;gap:2px}.admin-sidebar nav span{display:block;font-size:6px}.admin-main{padding-bottom:64px}.admin-topbar{min-height:88px;padding:16px}.admin-topbar p,.admin-top-actions>span{display:none}.admin-content{padding:15px}.admin-metric-row{grid-template-columns:1fr 1fr;gap:8px}.admin-metric-row article{padding:12px}.admin-metric-icon{display:none}.admin-user-list-head{display:none}.admin-user-row{grid-template-columns:minmax(0,1fr) auto;padding:13px}.admin-user-row>.admin-role{display:none}.admin-user-row>.admin-status{grid-column:2}.admin-user-actions{grid-column:1/-1}.admin-search{width:100%}.admin-users-card>header{align-items:stretch;flex-direction:column}.admin-stats-grid,.admin-charts-grid{grid-template-columns:1fr}.admin-chart-card>header{align-items:stretch;flex-direction:column}.admin-security-card b{display:none}.admin-audit-row{grid-template-columns:32px 1fr}.admin-audit-row time{grid-column:2}.admin-ban-card{padding:22px}.admin-dialog-actions{display:grid;grid-template-columns:1fr 1fr}.admin-dialog-actions button{padding:0 7px}}

/* Lucide icon language shared by the whole administration console. */
.admin-eyebrow,.admin-users-card h2,.admin-chart-card header span,.admin-badge-manager header strong { display:flex;align-items:center;gap:6px }
.admin-eyebrow svg { width:11px;height:11px;stroke-width:2.4 }
.admin-users-card h2 svg { width:17px;height:17px;color:#ff7965;stroke-width:1.9 }
.admin-section-heading { align-items:center;gap:12px }
.admin-heading-icon { width:35px;height:35px;padding:8px;border:1px solid rgba(255,107,85,.18);border-radius:8px;background:rgba(255,107,85,.07);color:#ff806b;stroke-width:1.8 }
.admin-chart-card header span svg { width:11px;height:11px;stroke-width:2.2 }
.admin-chart-tabs button { display:inline-flex;align-items:center;gap:4px }
.admin-chart-tabs button svg { width:10px;height:10px }
.admin-role,.admin-status { display:inline-flex;align-items:center;gap:5px }
.admin-role svg,.admin-status svg { width:10px;height:10px;stroke-width:2.2 }
.admin-role .badge-symbol-image { width:14px;height:14px }
.admin-status::before { display:none }
.admin-user-actions button { display:inline-flex;align-items:center;justify-content:center;gap:5px }
.admin-user-actions button svg { width:11px;height:11px;stroke-width:2.2 }
.admin-user-actions button:hover svg { transform:scale(1.08) }
.admin-loading svg,.admin-empty svg { width:19px;height:19px;color:#777c87;stroke-width:1.7 }
.admin-loading svg { animation:spin 1s linear infinite }
.admin-empty span,.admin-loading span { display:block }
.admin-dialog-actions button { display:inline-flex;align-items:center;justify-content:center;gap:6px }
.admin-manage-section>svg { width:18px;height:18px;flex:0 0 auto;color:#a993ff }
.admin-manage-section>div { flex:1 }
.admin-badge-manager header strong svg { width:14px;height:14px;color:#a993ff }
.admin-badge-manager button svg { stroke-width:1.9;transition:transform .16s ease }
.admin-badge-manager button .badge-option-icon { width:18px;height:18px;flex:0 0 auto;object-fit:contain;transition:transform .16s ease;filter:drop-shadow(0 2px 4px rgba(0,0,0,.28)) }
.admin-badge-manager button:hover .badge-option-icon,.admin-badge-manager button.active .badge-option-icon { transform:scale(1.1) }
.admin-badge-manager button:hover svg,.admin-badge-manager button.active svg { transform:scale(1.1) }

/* Consentements d’inscription, documents juridiques et newsletter. */
.footer-legal-button { padding:8px 5px;border:0;background:transparent;color:#92959d;font:600 10px Inter,sans-serif;cursor:pointer }
.footer-legal-button:hover { color:#fff;text-decoration:underline }
.auth-consents { display:grid;gap:10px;padding:13px;border:1px solid #2b2e35;border-radius:5px;background:rgba(255,255,255,.02) }
.auth-form .auth-consent { display:grid;grid-template-columns:18px minmax(0,1fr);align-items:start;gap:9px;color:#999ca4;font-size:10px;line-height:1.55;cursor:pointer }
.auth-form .auth-consent input { width:16px;height:16px;margin-top:1px;padding:0;accent-color:var(--coral) }
.auth-consent button { padding:0;border:0;background:none;color:#ff927f;font:inherit;text-decoration:underline;cursor:pointer }
.auth-consent b { color:#777b84;font-size:8px;font-weight:700;text-transform:uppercase;white-space:nowrap }
.auth-consent.required b { color:#ff927f }
.legal-shell { position:fixed;z-index:2400;inset:0;display:grid;place-items:center;padding:20px;opacity:0;visibility:hidden;transition:.2s }
.legal-shell.open { opacity:1;visibility:visible }
.legal-backdrop { position:absolute;inset:0;background:rgba(2,3,5,.86);backdrop-filter:blur(12px) }
.legal-card { position:relative;width:min(760px,100%);max-height:min(86vh,850px);overflow-y:auto;padding:36px 42px 42px;border:1px solid #30333b;border-radius:9px;background:#111319;box-shadow:0 35px 120px #000 }
.legal-card header { padding-right:35px;border-bottom:1px solid #292c33 }
.legal-card header>span { display:flex;align-items:center;gap:7px;color:#ff806b;font-size:9px;font-weight:800;letter-spacing:.12em;text-transform:uppercase }
.legal-card header svg { width:14px }
.legal-card h2 { margin:8px 0 6px;font:700 clamp(27px,4vw,38px)/1.05 Archivo,sans-serif;letter-spacing:-.04em }
.legal-card header p { margin:0 0 22px;color:#71757e;font-size:10px }
.legal-content { padding-top:8px }
.legal-content h3 { margin:24px 0 7px;color:#e2e3e5;font-size:13px }
.legal-content p { margin:0;color:#92959d;font-size:11px;line-height:1.75 }
.admin-newsletter-form { display:grid;gap:16px;max-width:760px;padding:24px }
.admin-newsletter-form label { display:grid;gap:8px;color:#a4a7ad;font-size:9px;font-weight:700 }
.admin-newsletter-form input,.admin-newsletter-form textarea { width:100%;padding:12px;border:1px solid #30333c;border-radius:6px;outline:0;background:#0b0d11;color:#e9e9eb;font:10px/1.55 Inter,sans-serif }
.admin-newsletter-form input { height:42px }.admin-newsletter-form textarea { resize:vertical }
.admin-newsletter-form input:focus,.admin-newsletter-form textarea:focus { border-color:#845149 }
.admin-newsletter-form>button { width:fit-content;min-height:39px;display:inline-flex;align-items:center;gap:8px;padding:0 16px;border:0;border-radius:6px;background:#d85a47;color:#fff;font:700 9px Inter,sans-serif;cursor:pointer }
.admin-newsletter-form>button:disabled { opacity:.55;cursor:wait }.admin-newsletter-form>button svg { width:14px }
@media(max-width:650px){.admin-sidebar nav{grid-template-columns:repeat(4,1fr)}.legal-card{padding:30px 20px 34px}.footer-actions>.footer-legal-button{width:100%}}

.profile-badge[data-tone="custom"],.profile-badge-visibility-icon[data-tone="custom"],.community-profile-badge[data-tone="custom"],.watch-chat-badge[data-tone="custom"] { color: var(--badge-custom,#ff7059); }
.profile-badge[data-tone="custom"] .badge-symbol { filter: drop-shadow(0 0 7px color-mix(in srgb,var(--badge-custom,#ff7059) 55%,transparent)); }
.profile-customization-badges { min-height: 28px; display: flex; align-items: center; gap: 7px; margin-top: 8px; }
.profile-customization-badges .profile-badge { width: 23px; height: 25px; }
/* The detail tabs intentionally override the older episode section spacing below. */
.detail-content-tabs + .episode-zone { margin-top: 18px; }
@media(max-width:600px){.detail-content-tabs{width:100%}.detail-content-tabs button{flex:1;justify-content:center;padding:0 8px}.anime-comment-replies{padding-left:8px}.anime-comment-reply{grid-template-columns:28px minmax(0,1fr)}.anime-comment-reply .anime-comment-avatar{width:28px;height:28px}}
