/* ============================================================
   DEVICE GUIDES — the /guide/ hub (device finder) and the twelve
   device pages beneath it. Loaded only on those pages; the article
   skeleton (.tvs-guide-*) comes from tvs-professional-header.css.
   ============================================================ */

/* --- shared ------------------------------------------------------------ */
.tvs-dg, .tvs-dg-hub { --dg-line: rgba(255,255,255,.08); --dg-card: linear-gradient(180deg, #161d28 0%, #0e131b 100%); }
.tvs-dg-hub { max-width: 1120px !important; margin: 0 auto; padding: clamp(16px, 2.5vw, 32px) 16px clamp(48px, 6vw, 88px); color: var(--tvs-text, #f7f8fb); font-size: 16px; line-height: 1.9; }
.tvs-dg-hub h2, .tvs-dg h2 { font-weight: 900; }

/* --- hub hero ------------------------------------------------------------ */
.tvs-dg-hubhero { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 56px) clamp(20px, 4vw, 56px); text-align: center; border: 1px solid var(--dg-line); border-radius: 24px; background: radial-gradient(60% 80% at 50% 0%, rgba(255,122,0,.22), transparent 70%), linear-gradient(180deg, #131a25 0%, #0b0f16 100%); }
.tvs-dg-hubhero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 34px 34px; mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent); -webkit-mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent); pointer-events: none; }
.tvs-dg-hubhero > * { position: relative; z-index: 1; }
.tvs-dg-hubhero h1 { margin: 12px 0 12px !important; font-size: clamp(30px, 4.6vw, 54px) !important; font-weight: 900; line-height: 1.2 !important; }
.tvs-dg-hubhero p { max-width: 720px; margin: 0 auto 22px; color: rgba(233,238,247,.8); font-size: clamp(15.5px, 1.3vw, 18px); line-height: 1.85; }
.tvs-dg-hubhero .tvs-guide-actions { justify-content: center; }

/* --- what you need ------------------------------------------------------- */
.tvs-dg-need { margin-top: clamp(28px, 4vw, 44px); }
.tvs-dg-need h2, .tvs-dg-finder h2, .tvs-dg-sys h2 { margin: 0 0 14px !important; font-size: clamp(20px, 2.3vw, 27px) !important; line-height: 1.35 !important; }
.tvs-dg-need > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tvs-dg-need > div > div { padding: 18px 18px 16px; border: 1px solid var(--dg-line); border-radius: 16px; background: var(--dg-card); }
.tvs-dg-need i { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 12px; border-radius: 12px; background: rgba(255,122,0,.14); color: var(--tvs-accent-2, #ff9b33); font-size: 17px; }
.tvs-dg-need b { display: block; margin-bottom: 4px; font-size: 15.5px; }
.tvs-dg-need p { margin: 0; color: rgba(233,238,247,.75); font-size: 14px; line-height: 1.75; }

/* --- finder --------------------------------------------------------------- */
.tvs-dg-finder { margin-top: clamp(30px, 4vw, 48px); scroll-margin-top: 120px; }
.tvs-dg-search { position: relative; margin-bottom: 12px; }
.tvs-dg-search i { position: absolute; inset-inline-start: 18px; top: 50%; transform: translateY(-50%); color: rgba(233,238,247,.5); font-size: 16px; pointer-events: none; }
.tvs-dg-search input { width: 100%; box-sizing: border-box; min-height: 56px; padding: 0 18px; padding-inline-start: 48px; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: #0e131b; color: #fff; font: inherit; font-size: 16px; outline: none; transition: border-color .18s ease, box-shadow .18s ease; }
.tvs-dg-search input::placeholder { color: rgba(233,238,247,.45); }
.tvs-dg-search input:focus { border-color: rgba(255,122,0,.6); box-shadow: 0 0 0 4px rgba(255,122,0,.14); }
.tvs-dg-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tvs-dg-pills button { min-height: 40px; padding: 0 16px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(255,255,255,.03); color: rgba(233,238,247,.85); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: all .18s ease; }
.tvs-dg-pills button:hover { border-color: rgba(255,122,0,.5); }
.tvs-dg-pills button.is-on { background: linear-gradient(155deg, var(--tvs-accent-2, #ff9b33), var(--tvs-accent, #ff7a00)); border-color: transparent; color: #fff; }
.tvs-dg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tvs-dg-card { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "img img" "txt meta"; align-items: center; column-gap: 14px; padding: 0 16px 16px; border: 1px solid var(--dg-line); border-radius: 18px; background: var(--dg-card); color: #fff !important; text-decoration: none !important; overflow: hidden; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.tvs-dg-card-img { grid-area: img; position: relative; margin: 0 -16px 14px; aspect-ratio: 16 / 10; overflow: hidden; background: #0b0f16; }
.tvs-dg-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform .6s ease; }
.tvs-dg-card:hover .tvs-dg-card-img img { transform: scale(1.07); }
.tvs-dg-card-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,15,22,0) 45%, rgba(14,19,27,.92) 100%); pointer-events: none; }
.tvs-dg-card-txt { grid-area: txt; }
.tvs-dg-card-meta { grid-area: meta; }
.tvs-dg-card:hover { transform: translateY(-3px); border-color: rgba(255,122,0,.45); box-shadow: 0 14px 34px rgba(0,0,0,.35); }
.tvs-dg-card-ic { position: absolute; inset-inline-end: 12px; bottom: 12px; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(11,15,22,.72); border: 1px solid rgba(255,122,0,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff; font-size: 18px; }
.tvs-dg-card-txt b { display: block; font-size: 15.5px; line-height: 1.3; }
.tvs-dg-card-txt span { display: block; margin-top: 3px; color: rgba(233,238,247,.6); font-size: 12.5px; }
.tvs-dg-card-meta { display: grid; justify-items: end; gap: 6px; color: rgba(233,238,247,.55); font-size: 12px; font-weight: 700; }
.tvs-dg-card-meta i { color: var(--tvs-accent-2, #ff9b33); font-size: 13px; }
.tvs-dg-none { margin-top: 12px; padding: 22px; text-align: center; border: 1px dashed rgba(255,255,255,.18); border-radius: 16px; }
.tvs-dg-none b { display: block; margin-bottom: 4px; font-size: 16px; }
.tvs-dg-none p { margin: 0 0 14px; color: rgba(233,238,247,.7); font-size: 14.5px; }

/* --- which system --------------------------------------------------------- */
.tvs-dg-sys { margin-top: clamp(30px, 4vw, 48px); }
.tvs-dg-sys > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tvs-dg-sys a { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "b i" "s i"; column-gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--dg-line); border-radius: 14px; background: rgba(255,255,255,.03); color: #fff !important; text-decoration: none !important; transition: border-color .18s ease; }
.tvs-dg-sys a:hover { border-color: rgba(255,122,0,.45); }
.tvs-dg-sys b { grid-area: b; font-size: 15px; }
.tvs-dg-sys span { grid-area: s; color: rgba(233,238,247,.65); font-size: 13px; line-height: 1.5; }
.tvs-dg-sys i { grid-area: i; color: var(--tvs-accent-2, #ff9b33); }
.tvs-dg-hubfaq { max-width: 860px; margin-inline: auto; }
.tvs-dg-hub .tvs-guide-cta { max-width: 860px; margin-inline: auto; }

/* --- guide page ------------------------------------------------------------- */
.tvs-dg-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; color: rgba(233,238,247,.5); font-size: 13px; }
.tvs-dg-crumbs a { color: rgba(233,238,247,.7) !important; text-decoration: none !important; }
.tvs-dg-crumbs a:hover { color: #fff !important; }
.tvs-dg-crumbs b { color: #fff; font-weight: 700; }
.tvs-dg-hero { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 24px; align-items: start; }
.tvs-dg-hero-img { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.tvs-dg-hero-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tvs-dg-hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,15,22,0) 55%, rgba(11,15,22,.55) 100%); pointer-events: none; }
.tvs-dg-hero-ic { position: absolute; inset-inline-end: 12px; bottom: 12px; z-index: 1; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(11,15,22,.75); border: 1px solid rgba(255,122,0,.5); color: #fff; font-size: 21px; }
.tvs-dg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.tvs-dg-chips span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--dg-line); border-radius: 999px; background: rgba(255,255,255,.04); font-size: 13px; }
.tvs-dg-chips b { color: var(--tvs-accent-2, #ff9b33); font-size: 11.5px; font-weight: 800; letter-spacing: .03em; }

.tvs-dg-before { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tvs-dg-before > div { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 14px 16px; border: 1px solid var(--dg-line); border-radius: 14px; background: rgba(255,255,255,.03); }
.tvs-dg-before i { margin-top: 3px; color: var(--tvs-accent, #ff7a00); font-size: 16px; }
.tvs-dg-before b { display: block; margin-bottom: 3px; font-size: 14.5px; }
.tvs-dg-before p { margin: 0; color: rgba(233,238,247,.72); font-size: 13.5px; line-height: 1.7; }

.tvs-dg-steps { position: relative; }
.tvs-dg-steps li { scroll-margin-top: 120px; }
.tvs-dg-steps li::before { background: linear-gradient(155deg, var(--tvs-accent-2, #ff9b33), var(--tvs-accent, #ff7a00)) !important; color: #fff !important; font-weight: 900; }
.tvs-dg-tip { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(255,122,0,.09); color: rgba(233,238,247,.85); font-size: 13.5px; line-height: 1.7; }
.tvs-dg-tip i { margin-top: 3px; color: var(--tvs-accent-2, #ff9b33); }

.tvs-dg-apps { margin-top: 12px; padding: 14px; border: 1px solid rgba(255,122,0,.25); border-radius: 14px; background: rgba(255,122,0,.06); }
.tvs-dg-apps > b { display: block; margin-bottom: 10px; font-size: 14px; }
.tvs-dg-codes { display: grid; gap: 8px; }
.tvs-dg-codes > div { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(0,0,0,.25); }
.tvs-dg-codes span { font-size: 14px; font-weight: 700; }
.tvs-dg-codes code { padding: 4px 10px; border-radius: 8px; background: #0b0f16; color: #fff; font-family: "SFMono-Regular", Consolas, monospace; font-size: 15px; letter-spacing: .08em; }
.tvs-dg-copy { min-height: 34px; padding: 0 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 9px; background: transparent; color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: border-color .18s ease; }
.tvs-dg-copy:hover { border-color: rgba(255,122,0,.6); }
.tvs-dg-apps > a { display: inline-block; margin-top: 10px; color: var(--tvs-accent-2, #ff9b33) !important; font-size: 13.5px; font-weight: 700; text-decoration: none !important; }

.tvs-dg-alt { padding: 20px 22px; border: 1px solid rgba(255,122,0,.28); border-radius: 18px; background: linear-gradient(135deg, rgba(255,122,0,.12), rgba(255,122,0,.03)); }
.tvs-dg-altlinks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tvs-dg-altlinks a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; color: #fff !important; font-size: 14px; font-weight: 700; text-decoration: none !important; }
.tvs-dg-altlinks a:hover { border-color: rgba(255,122,0,.6); }

.tvs-dg-after { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tvs-dg-after > div { padding: 16px; border: 1px solid var(--dg-line); border-radius: 14px; background: var(--dg-card); }
.tvs-dg-after span { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-bottom: 10px; border-radius: 8px; background: rgba(255,122,0,.16); color: var(--tvs-accent-2, #ff9b33); font-size: 13px; font-weight: 900; }
.tvs-dg-after b { display: block; margin-bottom: 4px; font-size: 15px; }
.tvs-dg-after p { margin: 0; color: rgba(233,238,247,.75); font-size: 14px; line-height: 1.75; }

.tvs-dg-more > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tvs-dg-more > div a { display: flex; align-items: center; gap: 10px; }
.tvs-dg-more > div a i { color: var(--tvs-accent-2, #ff9b33); width: 18px; text-align: center; }
.tvs-dg-back { text-align: center; color: var(--tvs-accent-2, #ff9b33) !important; border-color: transparent !important; }

/* --- responsive --------------------------------------------------------- */
@media (max-width: 900px) {
  .tvs-dg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tvs-dg-need > div, .tvs-dg-before, .tvs-dg-after, .tvs-dg-more > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  /* no backdrop blur on phones — see tvs-store-sections.css: it made Lighthouse's software renderer take seconds per frame */
  .tvs-dg-card-ic { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(11,15,22,.88); }
  .tvs-dg-grid, .tvs-dg-need > div, .tvs-dg-before, .tvs-dg-after, .tvs-dg-sys > div, .tvs-dg-more > div { grid-template-columns: 1fr; }
  .tvs-dg-hero { grid-template-columns: 1fr; }
  .tvs-dg-hero-img { aspect-ratio: 16 / 9; }
  .tvs-dg-codes > div { grid-template-columns: 1fr auto; }
  .tvs-dg-codes > div .tvs-dg-copy { grid-column: 1 / -1; }
  .tvs-dg-pills { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .tvs-dg-pills button { flex: 0 0 auto; }
}

/* --- supported store players (Samsung / LG / other smart TVs) ---------- */
.tvs-dg-plist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tvs-dg-plist > div { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "i b" "i s"; column-gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--dg-line); border-radius: 14px; background: var(--dg-card); }
.tvs-dg-plist i { grid-area: i; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: rgba(255,122,0,.14); color: var(--tvs-accent-2, #ff9b33); font-size: 17px; }
.tvs-dg-plist b { grid-area: b; font-size: 15px; }
.tvs-dg-plist span { grid-area: s; color: rgba(233,238,247,.55); font-size: 12px; }
.tvs-dg-pnote { margin: 12px 0 0 !important; padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,.03); color: rgba(233,238,247,.65) !important; font-size: 13.5px !important; line-height: 1.7; }
@media (max-width: 520px) { .tvs-dg-plist { grid-template-columns: 1fr; } }
