/*
Theme Name: Onlinefilmyzadarmo
Description: Katalog filmů s recenzemi a affiliate odkazy na legální streamovací platformy.
Author: onlinefilmyzadarmo.sk
Version: 1.0.0
*/

:root {
  --bg: #12101a;
  --card: #1e1a28;
  --text: #f3f0f8;
  --muted: #a89bb8;
  --accent: #a855f7;
  --border: rgba(255, 255, 255, .06);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.site-title span { color: var(--accent); }
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.25rem;
  font-size: .95rem;
}
.site-nav a:hover { color: var(--text); }

main { padding: 2.5rem 0 4rem; }

.page-heading {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin: 0 0 1.5rem;
  letter-spacing: -0.02em;
}

.film-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
}

.film-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  transition: transform 200ms ease-out, box-shadow 200ms ease-out;
}
.film-card:hover {
  transform: translateY(-4px);
  box-shadow: 8px 8px 0 rgba(168, 85, 247, .15);
}
.film-card .poster {
  aspect-ratio: 2 / 3;
  background: #292233;
  overflow: hidden;
}
.film-card .poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.film-card .meta { padding: .75rem .9rem 1rem; }
.film-card .film-title { font-weight: 600; font-size: .95rem; margin: 0 0 .25rem; }
.film-card .film-sub { color: var(--muted); font-size: .8rem; }
.rating-badge {
  display: inline-block;
  margin-top: .4rem;
  font-size: .75rem;
  font-weight: 700;
  color: var(--accent);
}

.film-detail {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
}
@media (max-width: 720px) {
  .film-detail { grid-template-columns: 1fr; }
}
.film-detail .poster {
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #292233;
}
.film-detail .poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.film-detail h1 { font-size: clamp(1.5rem, 4vw, 2.25rem); margin: 0 0 .5rem; letter-spacing: -0.02em; }
.film-detail .film-meta-line { color: var(--muted); margin-bottom: 1.5rem; }
.film-review { margin-bottom: 2rem; }
.film-review p { margin: 0 0 1rem; }

.watch-options { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.watch-option {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .5rem .9rem;
  text-decoration: none;
  color: var(--text);
  font-size: .85rem;
}
.watch-option:hover { border-color: var(--accent); }
.watch-option img { width: 20px; height: 20px; border-radius: 4px; }
.watch-option .typ-label { color: var(--muted); font-size: .75rem; }
.watch-option.zdarma_s_reklamou { border-color: rgba(51, 191, 121, .4); }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  color: var(--muted);
  font-size: .85rem;
}
.site-footer p { margin: 0 0 .35rem; }

.film-tvurci a { color: var(--accent); text-decoration: none; }
.film-tvurci a:hover { text-decoration: underline; }

.tvurce-profile { margin-bottom: 2.5rem; }
.tvurce-header { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1rem; }
.tvurce-foto {
  width: 120px;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.tvurce-bio p { color: var(--muted); max-width: 65ch; }

.search-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 2rem;
}
.search-field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  font-size: .8rem;
  color: var(--muted);
}
.search-field select {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .5rem .6rem;
  min-width: 160px;
  font-size: .9rem;
}
.search-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: .6rem 1.25rem;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
}
.search-submit:hover { opacity: .9; }
