/* GetXhamster v2 — component overrides, loaded after styles.css.
   Written for the v2 class vocabulary (rail/vault/flow/watch-board).
   Old GetEporner skin rules were removed entirely: this file now only
   re-asserts v2 styling for classes both sheets touch, so load order
   can never resurrect eporner colors or layouts. */

/* Global responsive safeguards (v2 tokens, not eporner's). */
:root { --content-gutter: clamp(20px, 4vw, 48px); }
html, body { max-width: 100%; overflow-x: clip; }
main, section, article, aside, div, form, footer, header, nav { min-width: 0; }
h1, h2, h3, h4, p, a, li, span, code { overflow-wrap: break-word; }
img { max-width: 100%; }

/* Watch page */
.watch-section { padding-block: 34px 60px; background: none; }
.watch-media { display: block; min-width: 0; }
.watch-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.back-link { color: var(--indigo-bright); }
.back-link:hover { color: var(--white); text-decoration: underline; }

/* Ad slots (v2 palette) */
.ad-slot { width: 100%; margin: 0 0 16px; padding: 12px; border: 1px dashed var(--line); border-radius: 14px; background: var(--surface-2); text-align: center; }
.ad-label { display: block; margin-bottom: 8px; color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.ad-creative { display: flex; min-height: 90px; align-items: center; justify-content: center; overflow: hidden; border-radius: 6px; }
.banner-link { display: block; max-width: 100%; }
.banner-link img { width: auto; max-width: 100%; height: auto; margin-inline: auto; }

/* Download panel */
.ready-dot { width: 10px; height: 10px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px rgb(52 211 153 / 55%); }
.resolution-info > span { display: block; color: var(--muted); font-size: .82rem; }
.resolution-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 16px; border-radius: 11px; background: var(--indigo); color: var(--white); font-weight: 800; font-size: .85rem; }
.resolution-button:hover .resolution-action { background: var(--indigo-bright); }
.resolution-action svg { flex: 0 0 auto; width: 15px; height: 15px; }
.resolution-button.is-ready { border-color: #34d399; }
.resolution-button.is-ready .resolution-action { background: #059669; }
.download-status { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); color: var(--muted); font-size: .9rem; }
.download-status.notice { background: var(--surface-3); color: var(--indigo-bright); }
.download-status.success { background: #0c2a1e; color: #6ee7b7; }
.download-status.error { background: #2a1420; color: #ffb4b4; }

/* Article cards (v2 palette — kills eporner red text/borders) */
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.article-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .2s, transform .2s; }
.article-card:hover { border-color: var(--indigo); transform: translateY(-3px); }
.article-card > a { display: flex; height: 100%; flex-direction: column; padding: 22px; }
.article-card-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px 12px; margin-bottom: 18px; color: var(--muted); font-size: .78rem; }
.article-card-top > span:first-child { color: var(--indigo-bright); font-weight: 750; text-transform: uppercase; letter-spacing: .07em; }
.article-card h2, .article-card h3 { margin-bottom: 12px; color: var(--white); font-size: 1.12rem; line-height: 1.3; }
.article-card p { margin-bottom: 18px; color: var(--muted); font-size: .9rem; }
.article-read { margin-top: auto; color: var(--indigo-bright); font-size: .9rem; font-weight: 700; }

/* Breadcrumbs + CTA */
.breadcrumbs { flex-wrap: wrap; row-gap: 4px; color: var(--muted); }
.cta-panel > * { min-width: 0; }

/* Mobile */
@media (max-width: 980px) {
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .watch-section { padding-block: 23px 55px; }
  .ad-slot { padding: 9px; margin-bottom: 22px; }
  .ad-creative { min-height: 66px; }
  .resolution-action { min-height: 44px; max-width: 130px; padding: 8px 10px; font-size: .69rem; }
  .article-grid { grid-template-columns: minmax(0, 1fr); }
  .article-card > a { padding: 22px; }
  .url-example { white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
  .cta-panel { gap: 20px; }
  .cta-panel .button { width: 100%; }
}
@media (max-width: 390px) {
  .resolution-action { max-width: 112px; }
  .resolution-action-text { overflow-wrap: anywhere; }
}
