/* Ukázkový web vydavatele „Denní zprávy“ – moderní vzhled v barvách přehrávače Reelumo. */
:root {
  --brand: #6366f1;
  --brand-600: #4f46e5;
  --brand-700: #4338ca;
  --violet: #8b5cf6;
  --grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #a855f7 100%);
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f6f7fb;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -12px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 24px 60px -24px rgba(79, 70, 229, 0.35), 0 8px 20px -10px rgba(15, 23, 42, 0.15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
body::before {
  /* jemná barevná záře v horní části stránky */
  content: '';
  position: fixed;
  inset: -20vh -10vw auto;
  height: 70vh;
  background: radial-gradient(60% 60% at 20% 20%, rgba(99, 102, 241, 0.14), transparent 70%),
    radial-gradient(50% 50% at 85% 10%, rgba(168, 85, 247, 0.12), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.sans { font-family: Inter, system-ui, sans-serif; }

/* ---------------------------------------------------------------- hlavička */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}
.site-header .inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.03em; color: var(--ink); white-space: nowrap; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--grad); flex: none;
  display: grid; place-items: center; box-shadow: 0 6px 16px -6px rgba(99, 102, 241, 0.8);
}
.logo-mark svg { width: 15px; height: 15px; fill: #fff; margin-left: 2px; }
.logo .logo-accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; gap: 4px; font-size: 14px; font-weight: 500; overflow-x: auto; }
.nav a { color: var(--muted); padding: 8px 12px; border-radius: 999px; transition: background 0.15s, color 0.15s; white-space: nowrap; }
.nav a:hover { color: var(--ink); background: rgba(99, 102, 241, 0.08); }
.nav a.active { color: var(--brand-700); background: rgba(99, 102, 241, 0.12); }
.lang-switch { margin-left: auto; display: flex; gap: 2px; background: #eef0f6; border-radius: 999px; padding: 3px; font-size: 12px; font-weight: 700; }
.lang-switch a { color: var(--muted); padding: 5px 10px; border-radius: 999px; transition: all 0.15s; }
.lang-switch a.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12); }
.header-cta {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #fff;
  background: var(--grad); padding: 9px 16px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 8px 20px -8px rgba(99, 102, 241, 0.9); transition: transform 0.15s, box-shadow 0.15s;
}
.header-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -8px rgba(99, 102, 241, 0.9); }

.demo-bar { background: var(--grad); color: #fff; font-size: 13px; }
.demo-bar .inner { max-width: 1180px; margin: 0 auto; padding: 9px 24px; display: flex; gap: 10px; align-items: center; }
.demo-bar .pill { background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.3); padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.demo-bar b { font-weight: 700; }

.container { max-width: 1180px; margin: 0 auto; padding: 36px 24px 96px; }

/* ---------------------------------------------------------------- štítky */
.tag {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: #6d28d9; background: rgba(139, 92, 246, 0.12); padding: 4px 10px; border-radius: 999px; width: fit-content;
}
.tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag.tech { color: var(--brand-700); background: rgba(99, 102, 241, 0.12); }

/* ---------------------------------------------------------------- titulní strana */
.home-top { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 28px; }
.hero {
  position: relative; display: block; border-radius: 24px; overflow: hidden; min-height: 460px;
  box-shadow: var(--shadow-lg); isolation: isolate; color: #fff;
}
.hero .thumb { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.hero .thumb .play { display: none; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 25%, rgba(15, 23, 42, 0.55) 60%, rgba(30, 27, 75, 0.95) 100%);
}
.hero-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 36px; }
.hero-body .tag { color: #fff; background: rgba(255, 255, 255, 0.18); backdrop-filter: blur(6px); }
.hero h2 { font-size: 38px; line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; margin: 14px 0 12px; max-width: 760px; }
.hero p { color: rgba(255, 255, 255, 0.82); font-size: 16px; line-height: 1.6; margin: 0; max-width: 640px; }
.hero .thumb img { transform: scale(1.16); transform-origin: center 65%; }
.hero:hover .thumb img { transform: scale(1.2); }
.hero-watch { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; font-weight: 600; font-size: 15px; }
.hero-play {
  width: 56px; height: 56px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; flex: none;
  box-shadow: 0 0 0 8px rgba(99, 102, 241, 0.3), 0 14px 30px -8px rgba(0, 0, 0, 0.5); transition: transform 0.2s;
}
.hero-play svg { width: 22px; height: 22px; fill: #fff; margin-left: 3px; }
.hero:hover .hero-play { transform: scale(1.08); }
.hero-duration { position: absolute; z-index: 2; top: 20px; right: 20px; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(6px); padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; }

.side { background: var(--card); border-radius: 24px; padding: 22px; box-shadow: var(--shadow); border: 1px solid rgba(226, 232, 240, 0.7); }
.side-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
.side-title .dot { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15); }
.side-item { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.side-item:first-of-type { border-top: 0; }
.side-item .thumb { border-radius: 12px; }
.side-item .thumb .play { left: 6px; bottom: 6px; padding: 3px 7px 3px 5px; font-size: 11px; }
.side-item .thumb .placeholder { font-size: 13px; }
.side-item h4 { margin: 6px 0 0; font-size: 14.5px; line-height: 1.35; color: var(--ink); font-weight: 650; letter-spacing: -0.01em; }
.side-item:hover h4 { color: var(--brand-600); }
.side-item .tag { font-size: 10px; padding: 2px 8px; }

.section-title {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  font-size: 24px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); margin: 56px 0 20px;
}
.section-title small { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card {
  display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.7); box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .thumb { border-radius: 0; }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { font-size: 18px; line-height: 1.3; margin: 0; color: var(--ink); font-weight: 700; letter-spacing: -0.02em; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { margin-top: auto; padding-top: 6px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.card-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: #cbd5e1; }
.card:hover h3 { color: var(--brand-600); }

/* náhled videa */
.thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--grad); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .thumb img { transform: scale(1.05); }
.thumb .play {
  position: absolute; left: 12px; bottom: 12px; display: flex; align-items: center; gap: 6px;
  background: rgba(15, 23, 42, 0.72); backdrop-filter: blur(6px); color: #fff; font-size: 12px; font-weight: 600;
  padding: 5px 10px 5px 7px; border-radius: 999px;
}
.thumb .play svg { width: 14px; height: 14px; fill: #fff; }
.card .thumb::after {
  /* kulaté tlačítko play při najetí */
  content: ''; position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M8 5.14v13.72a1 1 0 0 0 1.52.85l11.02-6.86a1 1 0 0 0 0-1.7L9.52 4.29A1 1 0 0 0 8 5.14z'/%3E%3C/svg%3E") 56% 50% / 22px no-repeat;
  box-shadow: 0 10px 24px -6px rgba(15, 23, 42, 0.5); opacity: 0; transform: scale(0.8); transition: all 0.2s;
}
.card:hover .thumb::after { opacity: 1; transform: scale(1); }
.thumb .placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff;
  font-weight: 800; font-size: 24px; letter-spacing: -0.03em; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

/* ---------------------------------------------------------------- článek */
.article { max-width: 800px; margin: 0 auto; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--brand-600); font-weight: 500; }
.crumbs a:hover { text-decoration: underline; }
.article h1 { font-size: 44px; line-height: 1.1; margin: 16px 0 16px; letter-spacing: -0.035em; font-weight: 800; color: var(--ink); }
.perex { font-size: 19px; line-height: 1.6; color: var(--text); margin: 0 0 22px; }
.meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); margin-bottom: 28px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.meta .author { color: var(--ink); font-weight: 600; }
.meta .sep { width: 4px; height: 4px; border-radius: 50%; background: #cbd5e1; }
.meta .chip { background: rgba(99, 102, 241, 0.1); color: var(--brand-700); padding: 3px 10px; border-radius: 999px; font-weight: 600; font-size: 12px; }

.video-wrap { position: relative; margin: 0 -40px 36px; isolation: isolate; }
.video-wrap::before {
  /* barevná záře za přehrávačem */
  content: ''; position: absolute; inset: 8% 4% -6%; background: var(--grad); filter: blur(42px); opacity: 0.35; z-index: -1; border-radius: 40px;
}
.video-caption { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-top: 12px; padding: 0 40px; }
.video-caption::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }

.article p.body { font-family: 'Newsreader', Georgia, serif; font-size: 20px; line-height: 1.75; color: #1e293b; margin: 0 0 22px; }
.article h2 { font-size: 26px; letter-spacing: -0.025em; font-weight: 800; color: var(--ink); margin: 40px 0 14px; }

.howto { margin: 44px 0; background: var(--card); border: 1px solid rgba(99, 102, 241, 0.25); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.howto summary { cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 15px; color: var(--ink); list-style: none; display: flex; align-items: center; gap: 10px; }
.howto summary::-webkit-details-marker { display: none; }
.howto summary::after { content: '+'; margin-left: auto; width: 28px; height: 28px; flex: none; border-radius: 50%; background: rgba(99, 102, 241, 0.1); color: var(--brand-600); display: grid; place-items: center; font-size: 18px; transition: transform 0.2s; }
.howto[open] summary::after { transform: rotate(45deg); }
.howto .content { padding: 0 22px 22px; font-size: 14.5px; line-height: 1.6; color: var(--text); }
.howto pre { background: #0f172a; color: #e2e8f0; padding: 18px; border-radius: 14px; overflow-x: auto; font-size: 12.5px; line-height: 1.65; border: 1px solid #1e293b; }
.howto code { background: rgba(99, 102, 241, 0.1); color: var(--brand-700); padding: 1px 6px; border-radius: 6px; font-size: 13px; }

.related { margin-top: 64px; }
.related .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------------------------------------------------------------- patička */
.site-footer { background: #0b0a1f; color: #a5a8c8; font-size: 13px; position: relative; overflow: hidden; }
.site-footer::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad); }
.site-footer .inner { max-width: 1180px; margin: 0 auto; padding: 40px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer .logo { color: #fff; }
.powered { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); padding: 6px 12px; border-radius: 999px; color: #fff; font-weight: 600; }
.powered i { width: 18px; height: 18px; border-radius: 6px; background: var(--grad); display: inline-block; }

/* ---------------------------------------------------------------- responzivita */
@media (max-width: 960px) {
  .home-top { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-wrap { margin: 0 0 32px; }
  .video-caption { padding: 0; }
}
@media (max-width: 640px) {
  .nav, .header-cta { display: none; }
  .site-header .inner { height: 60px; padding: 0 16px; }
  .container { padding: 24px 16px 72px; }
  .grid, .related .grid { grid-template-columns: 1fr; }
  .hero { min-height: 380px; border-radius: 20px; }
  .hero-body { padding: 22px; }
  .hero h2 { font-size: 26px; }
  .hero p { display: none; }
  .article h1 { font-size: 30px; }
  .perex { font-size: 17px; }
  .article p.body { font-size: 18px; }
  .demo-bar .inner { padding: 8px 16px; font-size: 12px; }
}

/* outstream v článku a videogalerie */
.outstream-slot { margin: 8px 0 30px; }
.outstream-slot:has(.rl-frame[style*="height: 0"]) { margin: 0; }
.gallery { background: var(--card); border-radius: 24px; padding: 22px; box-shadow: var(--shadow); border: 1px solid rgba(226, 232, 240, 0.7); color: var(--ink); }
