:root {
    --bg: #f4f1ea;
    --bg-accent: #efe3d0;
    --ink: #1f2933;
    --muted: #6b7280;
    --accent: #e85d0c;
    --accent-soft: #ffe0c9;
    --card: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 10px 30px rgba(31, 41, 51, 0.08);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at top, var(--bg-accent), var(--bg));
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1100px, 92vw);
    margin: 0 auto;
}

.site-header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(6px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 16px;
}

.logo {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 34px;
    height: 34px;
    display: block;
}

.main-nav {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff7ee;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
}

.search-form input {
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    min-width: 160px;
}

.search-form button {
    border: none;
    background: var(--accent);
    color: white;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
}

.main-nav a {
    padding: 6px 10px;
    border-radius: 999px;
    background: transparent;
    transition: background 0.2s ease;
}

.main-nav a:hover {
    background: var(--accent-soft);
}

.site-main {
    padding: 28px 0 60px;
}

.site-footer {
    padding: 24px 0 40px;
    color: var(--muted);
    font-size: 0.9rem;
}

.site-footer .container {
    display: flex;
    justify-content: flex-end;
}

.hero {
    background: linear-gradient(120deg, #fff3e5, #fff);
    border-radius: var(--radius);
    padding: 24px 28px;
    box-shadow: var(--shadow);
    margin-bottom: 26px;
}

.hero-carousel {
    padding: 18px;
}

.poster-carousel {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
}

.poster-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 14px;
    background: #fff7ee;
    padding: 10px;
    scroll-behavior: smooth;
}

.poster-track {
    display: flex;
    gap: 14px;
}

.poster-card {
    width: 120px;
    height: 170px;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
    box-shadow: var(--shadow);
    flex: 0 0 auto;
}

.poster-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: white;
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.section {
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.section-header h1,
.section-header h2 {
    margin: 0;
    font-family: "Georgia", "Times New Roman", serif;
}

.section-link {
    color: var(--accent);
    font-weight: 600;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 16px;
}

.card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(31, 41, 51, 0.12);
}

.card-media {
    aspect-ratio: 3 / 4;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.poster-placeholder {
    color: var(--muted);
    font-size: 0.85rem;
}

.card-body {
    padding: 12px 14px 16px;
}

.card-title {
    font-weight: 700;
    margin-bottom: 6px;
}

.card-meta {
    color: var(--muted);
    font-size: 0.85rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: var(--accent-soft);
    color: var(--accent);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.release-header {
    display: grid;
    grid-template-columns: minmax(200px, 260px) 1fr;
    gap: 24px;
    background: var(--card);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.release-poster img,
.release-poster .poster-placeholder {
    border-radius: 14px;
}

.release-info h1 {
    margin-top: 0;
    font-family: "Georgia", "Times New Roman", serif;
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px 20px;
    margin: 16px 0;
}

.meta-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.95rem;
}

.meta-row span {
    color: var(--muted);
    font-size: 0.85rem;
}

.vote-box {
    margin: 12px 0 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.vote-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.vote-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vote-button {
    border: 1px solid transparent;
    background: #fff;
    color: var(--ink);
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.vote-button.like {
    background: #e7f6d5;
    border-color: #c2e7a4;
    color: #2e6b1f;
}

.vote-button.dislike {
    background: #ffe1e1;
    border-color: #ffb4b4;
    color: #8a1c1c;
}

.vote-button svg {
    width: 16px;
    height: 16px;
    display: block;
    fill: currentColor;
}

.vote-button:hover {
    transform: translateY(-1px);
    filter: brightness(0.98);
}

.vote-button:active {
    transform: translateY(0);
}

.vote-stats {
    display: flex;
    align-items: center;
}

.rating-badge {
    background: #fff7ee;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ink);
}

.rating-badge.positive {
    background: #e7f6d5;
    border-color: #c2e7a4;
    color: #2e6b1f;
}

.rating-badge.negative {
    background: #ffe1e1;
    border-color: #ffb4b4;
    color: #8a1c1c;
}

.torrent-box {
    margin-top: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--accent);
    color: white;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.release-description {
    background: white;
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.image-grid img {
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.screenshot {
    display: block;
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 999;
}

.lightbox-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-image {
    max-width: min(1100px, 92vw);
    max-height: 85vh;
    border-radius: 16px;
    box-shadow: var(--shadow);
    background: #000;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: white;
    color: #111;
    font-size: 1.5rem;
    cursor: pointer;
}

.comment-form {
    display: grid;
    gap: 12px;
    background: white;
    padding: 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.comment-form label {
    display: grid;
    gap: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

.comment-form input,
.comment-form textarea {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-family: inherit;
}

.comment-list {
    margin-top: 16px;
    display: grid;
    gap: 12px;
}

.comment {
    background: white;
    padding: 12px 14px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.comment-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.comment-body {
    color: #2c3e50;
}

.errors {
    background: #ffe1e1;
    border: 1px solid #ffb4b4;
    color: #8a1c1c;
    padding: 10px 14px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.flash {
    background: #e7f6d5;
    border: 1px solid #c2e7a4;
    color: #305b1f;
    padding: 10px 14px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.muted {
    color: var(--muted);
}

.honeypot {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .poster-viewport {
        overflow-x: auto;
    }
}

@media (max-width: 900px) {
    .release-header {
        grid-template-columns: 1fr;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-form {
        width: 100%;
    }

    .search-form input {
        flex: 1;
        min-width: 0;
    }
}
