/* ============================================================
   BASE — reset, typography, layout
   ============================================================ */

*, *::before, *::after {
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
}

body {
  font-family: "Rubik", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

img { height: auto; max-width: 100%; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 0.4em;
  color: var(--text-primary);
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }

a { color: var(--accent); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.8; }

/* ── Container ── */
.container {
  max-width: 1280px;
  width: 100%;
  padding: 0 20px;
  margin: 0 auto;
  flex: 1;
}

.footer-container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Utilities ── */
.hidden { display: none !important; }
.user { cursor: pointer; }
#description { white-space: pre-line; }

/* ── Page title block ── */
.titlename {
  display: block;
  margin: 0 auto;
  font-size: 1rem;
  font-style: italic;
  max-width: 100%;
  text-align: center;
  color: var(--text-secondary);
  padding: 8px 0 16px;
}

.user-link {
  color: inherit;
  text-decoration: none;
}

/* ── Go top button ── */
.go-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), opacity var(--transition);
  z-index: 999;
  opacity: 0.6;
}
.go-top:hover {opacity: 1; }

/* ── Rating ── */
.star-empty {
  color: #888888;
  font-weight: bold;
}
