:root {
  --bg: #0a0a0a;
  --bg2: #161616;
  --card: #1d1d1d;
  --accent: #ff9000;
  --accent-soft: #ff90002e;
  --text: #ffffff;
  --muted: #9b9b9b;
  --radius: 14px;
}
html[data-theme="light"] {
  --bg: #f4f4f6;
  --bg2: #ffffff;
  --card: #ececef;
  --text: #14141a;
  --muted: #6b6b76;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(1200px 600px at 80% -200px, var(--accent-soft), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: "Poppins", system-ui, sans-serif;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
::selection { background: var(--accent); color: #fff; }

/* Topbar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 26px;
  padding: 14px 32px;
  background: linear-gradient(180deg, rgba(7,7,11,.96), rgba(7,7,11,.6) 70%, transparent);
  backdrop-filter: blur(10px);
}
.brand { font-size: 25px; font-weight: 800; letter-spacing: -.5px; cursor: pointer; user-select: none; color: #fff; }
.brand span { background: var(--accent); color: #000; padding: 1px 8px; border-radius: 7px; margin-left: 2px; }
.nav { display: flex; gap: 4px; }
.nav-btn {
  background: none; border: none; color: var(--muted);
  font-size: 15px; font-family: inherit; padding: 8px 14px; border-radius: 10px; cursor: pointer;
  transition: .18s; position: relative;
}
.nav-btn:hover { color: var(--text); }
.nav-btn.active { color: var(--text); }
.nav-btn.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--accent); border-radius: 2px;
}
.search-wrap { margin-left: auto; display: flex; gap: 10px; align-items: center; }
#searchInput {
  background: #ffffff10; border: 1px solid #ffffff1f; color: var(--text); font-family: inherit;
  padding: 10px 16px; border-radius: 22px; width: 230px; outline: none; transition: .2s;
}
#searchInput:focus { border-color: var(--accent); width: 280px; background: #ffffff16; }
#searchInput::placeholder { color: var(--muted); }
#settingsBtn {
  background: #ffffff10; border: 1px solid #ffffff1f; color: var(--text);
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 17px; transition: .18s;
}
#settingsBtn:hover { transform: rotate(45deg); border-color: var(--accent); }

/* Content */
main { padding: 0 0 70px; }
.banner {
  margin: 24px 32px 0;
  background: var(--bg2); border: 1px solid var(--accent);
  border-radius: var(--radius); padding: 16px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.banner button {
  background: var(--accent); color: #fff; border: none;
  padding: 10px 20px; border-radius: 9px; cursor: pointer; font-weight: 600; font-family: inherit;
}

/* Hero */
.hero {
  position: relative; height: 70vh; min-height: 440px; max-height: 640px;
  display: flex; align-items: flex-end;
  padding: 0 48px 56px; margin-bottom: 10px;
  background-size: cover; background-position: center top;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(7,7,11,.95) 0%, rgba(7,7,11,.55) 45%, transparent 75%),
    linear-gradient(0deg, var(--bg) 2%, transparent 45%);
}
.hero-content { max-width: 620px; animation: fadeUp .6s ease; }
.hero-tag { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }
.hero h1 { font-size: clamp(30px, 5vw, 56px); font-weight: 800; line-height: 1.05; margin-bottom: 16px; text-shadow: 0 4px 30px #000a; }
.hero-meta { display: flex; gap: 14px; align-items: center; color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.hero-meta .star { color: #ffd54a; font-weight: 700; }
.hero p { color: #d6d6dd; font-size: 15px; line-height: 1.55; margin-bottom: 24px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-btns { display: flex; gap: 12px; }
.btn {
  font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  border: none; border-radius: 10px; padding: 13px 28px; display: inline-flex; align-items: center; gap: 9px;
  transition: .18s;
}
.btn-play { background: var(--accent); color: #fff; }
.btn-play:hover { transform: translateY(-2px); box-shadow: 0 8px 22px var(--accent-soft); }
.btn-ghost { background: var(--card); color: var(--text); border: 1px solid #ffffff1f; backdrop-filter: blur(4px); }
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); }
.hero-dots { position: absolute; bottom: 24px; right: 48px; display: flex; gap: 8px; }
.hero-dots span { width: 9px; height: 9px; border-radius: 50%; background: #ffffff40; cursor: pointer; transition: .2s; }
.hero-dots span.on { background: var(--accent); width: 24px; border-radius: 5px; }

/* Rows */
#rows, #grid { padding: 0 32px; }
.row { margin-bottom: 38px; }
.row-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.row h2 { font-size: 20px; font-weight: 700; }
.row-wrap { position: relative; }
.row-scroll {
  display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px 12px;
  scroll-behavior: smooth; scrollbar-width: none;
}
.row-scroll::-webkit-scrollbar { display: none; }
.row-arrow {
  position: absolute; top: 0; bottom: 18px; width: 52px; z-index: 4;
  border: none; cursor: pointer; color: #fff; font-size: 26px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s;
}
.row-wrap:hover .row-arrow { opacity: 1; }
.row-arrow.left { left: -16px; background: linear-gradient(90deg, var(--bg) 30%, transparent); justify-content: flex-start; padding-left: 6px; }
.row-arrow.right { right: -16px; background: linear-gradient(270deg, var(--bg) 30%, transparent); justify-content: flex-end; padding-right: 6px; }

/* Cards */
.card {
  flex: 0 0 auto; width: 172px; cursor: pointer;
  border-radius: 12px; overflow: hidden; background: var(--card);
  transition: transform .22s cubic-bezier(.2,.7,.3,1), box-shadow .22s;
  position: relative;
}
.card:hover { transform: translateY(-6px) scale(1.04); box-shadow: 0 16px 40px #000b; z-index: 5; }
.card .poster { position: relative; }
.card img { width: 100%; height: 258px; object-fit: cover; display: block; background: #20202c; }
.card .overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(0deg, #000c, #0006 50%, transparent);
  opacity: 0; transition: .22s;
}
.card:hover .overlay { opacity: 1; }
.card .play-icon {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 20px;
  transform: scale(.7); transition: .22s;
  box-shadow: 0 6px 20px #000a;
}
.card:hover .play-icon { transform: scale(1); }
.card .meta { padding: 9px 11px 11px; }
.card .meta .t { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .meta .y { font-size: 12px; color: var(--muted); margin-top: 2px; }
.card .badge {
  position: absolute; top: 9px; right: 9px;
  background: #000b; color: #ffd54a; font-size: 11px; font-weight: 700;
  padding: 4px 8px; border-radius: 7px; backdrop-filter: blur(4px);
}
.card .progress-bar {
  position: absolute; bottom: 0; left: 0; height: 4px; background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.card .card-remove {
  position: absolute; top: 7px; left: 7px; z-index: 5;
  width: 26px; height: 26px; border: none; border-radius: 50%;
  background: #000b; color: #fff; font-size: 14px; line-height: 1;
  display: grid; place-items: center; cursor: pointer;
  opacity: 0; transition: opacity .22s, background .15s;
}
.card:hover .card-remove { opacity: 1; }
.card .card-remove:hover { background: var(--accent); }

/* Grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; padding-top: 24px; }
.grid .card { width: 100%; }
.grid .card img { height: 280px; }
.browse-grid { padding-top: 6px; }

/* Live Sports cards */
.sports-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); padding-top: 6px; }
.sport-card {
  background: var(--card); border: 1px solid #ffffff14; border-radius: var(--radius);
  padding: 14px 16px 16px; cursor: pointer; transition: .15s; display: flex; flex-direction: column; gap: 12px;
}
.sport-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 14px 34px #0009; }
.sport-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 20px; }
.live-badge { color: #ff3b3b; font-size: 11px; font-weight: 800; letter-spacing: .5px; animation: livePulse 1.6s ease-in-out infinite; }
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.sport-time { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.sport-viewers { color: var(--muted); font-size: 11px; }
.sport-teams { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sport-team { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.sport-team span { font-size: 12.5px; font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.sport-logo { width: 44px; height: 44px; object-fit: contain; }
.sport-vs { color: var(--muted); font-size: 12px; font-weight: 700; flex-shrink: 0; }
.sport-title-only { font-size: 14px; font-weight: 700; text-align: center; line-height: 1.35; }
.sport-league { color: var(--muted); font-size: 11.5px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Infinite-scroll sentinel */
.inf-sentinel { height: 60px; display: flex; align-items: center; justify-content: center; margin: 4px 32px 30px; }
.inf-sentinel.loading::after {
  content: ""; width: 30px; height: 30px; border: 3px solid #ffffff20;
  border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite;
}

/* Skeleton */
.skel-row { margin-bottom: 38px; padding: 0 32px; }
.skel-row .bar { width: 200px; height: 22px; border-radius: 6px; margin-bottom: 16px; }
.skel-cards { display: flex; gap: 14px; overflow: hidden; }
.skel-card { flex: 0 0 auto; width: 172px; height: 258px; border-radius: 12px; }
.shimmer { background: linear-gradient(100deg, #1a1a25 30%, #26263380 50%, #1a1a25 70%); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* Loader */
.loader { margin: 60px auto; width: 44px; height: 44px; border: 4px solid #ffffff20; border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Inline pages (watch / manga) */
.page { max-width: 1100px; margin: 0 auto; padding: 22px 32px 70px; animation: fadeUp .35s ease; }
#watchView { max-width: 1600px; }
.back-btn {
  background: var(--card); color: var(--text); border: 1px solid #ffffff1f;
  padding: 9px 18px; border-radius: 9px; cursor: pointer; font-family: inherit;
  font-size: 14px; font-weight: 600; margin-bottom: 18px; transition: .15s;
}
.back-btn:hover { background: var(--accent); color: #000; border-color: var(--accent); }

/* Modal (settings only) */
.modal { position: fixed; inset: 0; z-index: 210; background: #000e; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-inner { background: var(--bg2); border: 1px solid #ffffff12; border-radius: 16px; width: min(1040px, 96vw); max-height: 94vh; overflow: auto; padding: 20px; position: relative; box-shadow: 0 30px 80px #000; }
.close { position: absolute; top: 14px; right: 16px; background: #ffffff1c; border: none; color: #fff; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 16px; z-index: 5; transition: .15s; }
.close:hover { background: var(--accent); color: #000; transform: rotate(90deg); }
.player-frame { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 12px; overflow: hidden; }
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-title { margin-top: 16px; font-size: 20px; font-weight: 700; }
.episode-picker { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.episode-picker select { background: var(--card); color: var(--text); border: 1px solid #ffffff1f; padding: 10px 14px; border-radius: 9px; min-width: 170px; font-family: inherit; }

/* Source switcher */
.failover-notice { margin-top: 12px; padding: 10px 14px; border-radius: 9px; background: #ffd54a18; border: 1px solid #ffd54a55; color: #ffd54a; font-size: 13px; }
.src-hint { color: var(--muted); font-size: 13px; margin-top: 16px; }
.source-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.src-tab { background: var(--card); color: var(--text); border: 1px solid #ffffff1f; padding: 8px 16px; border-radius: 9px; cursor: pointer; font-size: 13px; font-family: inherit; transition: .15s; }
.src-tab:hover { border-color: var(--accent); }
.src-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }

/* Manga reader */
.manga-modal { width: min(1100px, 96vw); }
.manga-head { display: flex; gap: 22px; margin-bottom: 8px; }
.manga-cover { width: 180px; min-width: 180px; height: 270px; object-fit: cover; border-radius: 12px; background: #20202c; box-shadow: 0 8px 24px #0008; }
.manga-info h2 { font-size: 26px; font-weight: 800; margin-bottom: 8px; padding-right: 40px; }
.manga-status { color: var(--accent); font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.manga-desc { color: #c9c9d2; font-size: 14px; line-height: 1.6; max-height: 170px; overflow: auto; }
.chap-h { margin: 22px 0 12px; font-size: 18px; }
.chapter-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.chap-item {
  display: flex; flex-direction: column; gap: 3px; text-align: left;
  background: var(--card); border: 1px solid #ffffff14; color: var(--text);
  padding: 10px 14px; border-radius: 9px; cursor: pointer; font-family: inherit; transition: .15s;
}
.chap-item:hover { border-color: var(--accent); transform: translateX(3px); }
.chap-item.reading { border-color: var(--accent); background: var(--accent-soft); }
.chap-name { font-size: 13.5px; font-weight: 600; }
.chap-group { font-size: 11.5px; color: var(--muted); }
.chap-badge { display: inline-block; margin-left: 8px; background: var(--accent); color: #000; font-size: 9.5px; font-weight: 800; padding: 1px 6px; border-radius: 5px; vertical-align: middle; letter-spacing: .5px; }
.chap-badge-downloadable { background: transparent; color: var(--muted); border: 1px solid #ffffff2e; }

.reader-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 0; position: sticky; top: 60px; background: var(--bg); z-index: 4; }
.reader-bar.bottom { position: static; padding: 18px 0 4px; justify-content: center; }
.reader-bar select { background: var(--card); color: var(--text); border: 1px solid #ffffff1f; padding: 9px 12px; border-radius: 9px; font-family: inherit; max-width: 280px; flex: 1; min-width: 140px; }
.rbtn { background: var(--card); color: var(--text); border: 1px solid #ffffff1f; padding: 9px 16px; border-radius: 9px; cursor: pointer; font-family: inherit; font-size: 13.5px; transition: .15s; white-space: nowrap; }
.rbtn:hover { border-color: var(--accent); background: var(--accent-soft); }

.reader-pages.strip { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.reader-pages.strip img { width: 100%; max-width: 800px; height: auto; display: block; }
.reader-pages.paged { position: relative; display: flex; justify-content: center; }
.reader-pages.paged img { max-width: 100%; max-height: 82vh; height: auto; cursor: pointer; user-select: none; border-radius: 6px; }
.page-count { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); background: #000c; color: #fff; padding: 5px 14px; border-radius: 16px; font-size: 13px; }

/* Settings view */
.settings-view { max-width: 640px; }
.settings-h1 { margin-bottom: 18px; }
.settings-section {
  background: var(--bg2); border: 1px solid #ffffff12; border-radius: 14px;
  padding: 18px 20px; margin-bottom: 16px;
}
.settings-section h3 { font-size: 15px; margin-bottom: 4px; }
.settings-section label { display: block; font-size: 13px; color: var(--muted); margin: 16px 0 6px; }
.settings-section label.check { display: flex; align-items: center; gap: 8px; color: var(--text); margin-top: 12px; }
.settings-section input[type=text],
.settings-section select {
  width: 100%; background: var(--card); border: 1px solid #ffffff1f; color: var(--text);
  padding: 11px 14px; border-radius: 9px; font-family: inherit; font-size: 14px;
}
.settings-section input[type=color] { width: 60px; height: 40px; border: 1px solid #ffffff1f; border-radius: 9px; background: var(--card); cursor: pointer; padding: 4px; }
.settings-section .hint { font-size: 12px; color: var(--muted); margin-top: 14px; line-height: 1.5; }

.theme-swatches { display: flex; gap: 14px; }
.theme-swatch { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; font-size: 12px; color: var(--muted); }
.theme-preview { width: 64px; height: 44px; border-radius: 8px; border: 2px solid transparent; transition: .15s; }
.theme-preview-dark { background: #0a0a0a; border-color: #ffffff1f; }
.theme-preview-light { background: #f4f4f6; border-color: #00000014; }
.theme-swatch.selected .theme-preview { border-color: var(--accent); }
.theme-swatch.selected { color: var(--text); }

.shortcuts-table { width: 100%; margin-top: 12px; font-size: 13px; border-collapse: collapse; }
.shortcuts-table td { padding: 6px 0; border-top: 1px solid #ffffff0f; color: var(--text); }
.shortcuts-table td:first-child { white-space: nowrap; padding-right: 16px; width: 1%; }
.shortcuts-table kbd { background: var(--card); border: 1px solid #ffffff1f; border-radius: 5px; padding: 2px 6px; font-size: 11.5px; font-family: inherit; }

.settings-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.downloads-list { margin-top: 8px; display: flex; flex-direction: column; gap: 10px; }
.downloads-list .hint { margin: 0; }
.download-manga { background: var(--card); border: 1px solid #ffffff14; border-radius: 9px; padding: 10px 12px; }
.download-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: 13px; }
.download-manga-head { padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid #ffffff14; }

.save { margin-top: 8px; background: var(--accent); color: #fff; border: none; padding: 13px 0; width: 100%; border-radius: 9px; font-weight: 700; cursor: pointer; font-family: inherit; transition: .15s; font-size: 15px; }
.save:hover { filter: brightness(1.1); }

.hidden { display: none !important; }

/* Profile button (topbar) */
.profile-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid #ffffff1f;
  cursor: pointer; font-family: inherit; font-weight: 700; font-size: 15px;
  color: #fff; display: grid; place-items: center; transition: .18s; flex: none;
}
.profile-btn:hover { border-color: #fff; transform: scale(1.06); }

/* "Who's watching?" screen */
.profile-screen {
  position: fixed; inset: 0; z-index: 200; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn .25s ease;
}
.profile-screen-inner { text-align: center; padding: 20px; }
.profile-heading { font-size: clamp(26px, 5vw, 44px); font-weight: 800; margin-bottom: 40px; }
.profile-grid { display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; max-width: 720px; margin: 0 auto; }
.profile-tile { cursor: pointer; width: 130px; }
.profile-avatar {
  width: 110px; height: 110px; border-radius: 14px; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center; position: relative;
  font-size: 44px; font-weight: 800; color: #fff; transition: .18s;
  border: 3px solid transparent;
}
.profile-tile:hover .profile-avatar { border-color: #fff; transform: scale(1.05); }
.profile-avatar.add-avatar { background: var(--card); border: 2px dashed #ffffff3a; color: var(--muted); font-size: 40px; }
.profile-tile:hover .add-avatar { color: #fff; border-color: var(--accent); }
.profile-edit-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: #000a; border-radius: 12px; font-size: 28px; opacity: 0; transition: .18s;
}
.profile-tile:hover .profile-edit-overlay { opacity: 1; }
.profile-name { color: var(--muted); font-size: 15px; font-weight: 600; transition: .15s; }
.profile-tile:hover .profile-name { color: #fff; }
.profile-manage-btn {
  margin-top: 44px; background: none; border: 1px solid #ffffff2c; color: var(--muted);
  padding: 11px 26px; border-radius: 9px; cursor: pointer; font-family: inherit;
  font-size: 14px; letter-spacing: 1px; transition: .15s;
}
.profile-manage-btn:hover { color: #fff; border-color: #fff; }

/* Add / edit profile modal */
.profile-edit { width: min(420px, 96vw); }
.profile-edit h2 { margin-bottom: 16px; }
.profile-edit label { display: block; font-size: 13px; color: var(--muted); margin: 16px 0 6px; }
.profile-edit input[type=text] { width: 100%; background: var(--card); border: 1px solid #ffffff1f; color: var(--text); padding: 11px 14px; border-radius: 9px; font-family: inherit; }
.profile-color-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.profile-color-swatch {
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  border: 3px solid transparent; transition: .15s;
}
.profile-color-swatch.selected, .profile-color-swatch:hover { border-color: #fff; transform: scale(1.1); }
.profile-modal-actions { margin-top: 22px; display: flex; gap: 10px; justify-content: flex-end; }
.profile-modal-actions .btn-play { flex: 1; justify-content: center; }

@media (max-width: 740px) {
  .nav { display: none; }
  .topbar { gap: 12px; padding: 12px 16px; }
  #searchInput { width: 140px; }
  #searchInput:focus { width: 170px; }
  .hero { padding: 0 20px 40px; height: 60vh; }
  #rows, #grid { padding: 0 16px; }
  .skel-row { padding: 0 16px; }
  .profile-avatar { width: 86px; height: 86px; font-size: 34px; }
  .profile-tile { width: 100px; }
}

/* Comments & live chat */
.comments { margin-top: 28px; max-width: 900px; }
.comments-h { font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.comment-list { display: flex; flex-direction: column; gap: 14px; }
.comments.chat .comment-list { max-height: 420px; overflow-y: auto; gap: 10px; padding-right: 6px; }
.comment { display: flex; gap: 11px; align-items: flex-start; }
.comment-avatar {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #000; font-size: 15px;
}
.comment-main { flex: 1; min-width: 0; }
.comment-meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.comment-name { font-weight: 700; }
.comment-time { color: var(--muted); font-size: 11.5px; }
.comment-del {
  margin-left: auto; background: none; border: none; color: var(--muted);
  cursor: pointer; font-size: 12px; padding: 2px 6px; border-radius: 6px; line-height: 1;
}
.comment-del:hover { color: #ff5e5e; background: var(--card); }
.comment-body { font-size: 14px; line-height: 1.45; margin-top: 2px; white-space: pre-wrap; word-break: break-word; }
.comment-compose { display: flex; gap: 10px; margin-top: 16px; align-items: flex-end; }
.comment-compose textarea {
  flex: 1; resize: vertical; min-height: 44px; max-height: 160px;
  background: var(--card); color: var(--text); border: 1px solid #ffffff1f;
  border-radius: 10px; padding: 10px 12px; font-family: inherit; font-size: 14px;
}
.comment-compose textarea:focus { outline: none; border-color: var(--accent); }
.comment-compose .btn { white-space: nowrap; }
.comments .hint { color: var(--muted); font-size: 13px; }
