:root {
    --primary: #ff2f17;
    --bg: #ffffff;
    --surface: #f5f5f5;
    --text: #0d0d0d;
    --muted: #666666;
    --border: #e5e5e5;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

.site-header {
    border-bottom: 1px solid var(--border);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 30;
}

.header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 74px;
    gap: 1rem;
}

.site-title a {
    color: var(--text);
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 700;
}

.main-menu,
.footer-menu {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.main-menu a,
.footer-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}

.main-menu .current-menu-item a,
.main-menu a:hover,
.footer-menu a:hover {
    color: var(--primary);
}

.page-section {
    padding: 2rem 0;
}

.hero {
    padding: 3rem 0 1.5rem;
}

.hero h1 {
    margin: 0 0 .5rem;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    line-height: 1.2;
}

.hero p {
    margin: 0;
    color: var(--muted);
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.card {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.card-body {
    padding: 1rem;
}

.thumb img,
.video-embed iframe {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.badge {
    display: inline-block;
    background: rgba(255, 47, 23, 0.1);
    color: var(--primary);
    border-radius: 999px;
    padding: .2rem .65rem;
    font-size: .78rem;
    font-weight: 700;
    margin-bottom: .6rem;
}

.card h2,
.card h3,
.page-title {
    margin: 0 0 .4rem;
    line-height: 1.3;
}

.card h3 {
    font-size: 1.1rem;
}

.card h3 a,
.card h2 a {
    text-decoration: none;
    color: var(--text);
}

.card h3 a:hover,
.card h2 a:hover {
    color: var(--primary);
}

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

.rule-box {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.site-footer {
    border-top: 1px solid var(--border);
    margin-top: 2rem;
    padding: 1.25rem 0;
}

.footer-wrap {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    padding: .65rem .95rem;
    font-weight: 700;
}

.category-filter-form select,
.category-filter-form input {
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: .45rem .6rem;
}

.filmwp-application-form {
    display: grid;
    gap: .9rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    background: #fff;
}

.form-row {
    display: grid;
    gap: .35rem;
}

.form-row-grid {
    display: grid;
    gap: .8rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.filmwp-application-form input,
.filmwp-application-form textarea,
.filmwp-application-form select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    min-height: 42px;
    padding: .55rem .7rem;
    font: inherit;
}

.filmwp-application-form textarea {
    min-height: 130px;
}

.checkbox-row {
    display: block;
}

.checkbox-row input[type="checkbox"] {
    width: auto;
    min-height: 0;
    margin-right: .45rem;
}

.pagination {
    margin-top: 1.2rem;
}

.pagination .page-numbers {
    display: inline-block;
    padding: .4rem .7rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-right: .3rem;
    text-decoration: none;
    color: var(--text);
}

.pagination .current {
    border-color: var(--primary);
    color: var(--primary);
}

@media (max-width: 780px) {
    .header-wrap {
        flex-direction: column;
        align-items: flex-start;
        padding: .8rem 0;
    }
}
