/* ==========================================
   ACOC CHRISTIAN KIDS CINEMA 1.2
   SUPERBOOK EDITION
   www.acoc.gr
========================================== */

:root {
    --navy: #071a34;
    --blue: #102b4b;
    --light-blue: #203c5b;
    --gold: #d3b477;
    --white: #ffffff;
    --muted: #bfcddd;
    --green: #245c47;
    --border: #d3b47745;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 20px;
}

body {
    margin: 0;
    background: var(--navy);
    color: var(--white);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

a {
    color: var(--gold);
}

button,
input,
select {
    font: inherit;
}

button,
a,
input,
select {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

h1,
h2,
h3 {
    line-height: 1.3;
    overflow-wrap: anywhere;
}

h2 {
    color: var(--gold);
}

.container {
    width: min(1350px, 94%);
    margin: auto;
}

/* HEADER */

.header {
    background: #031126;
    border-bottom: 1px solid var(--gold);
    padding: 18px;
    text-align: center;
}

.brand {
    color: var(--gold);
    font-weight: bold;
    text-decoration: none;
    font-size: 15px;
}

.header nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 24px;
    margin-top: 14px;
}

.header nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
}

.header nav a:hover {
    color: var(--gold);
}

/* HERO */

.hero {
    text-align: center;
    padding: 45px 15px;
    background: radial-gradient(
        ellipse at center,
        #203c5b,
        transparent 70%
    );
}

.hero-symbol {
    font-size: 48px;
}

.hero h1 {
    font-size: clamp(25px, 4vw, 46px);
    margin: 14px 0 6px;
}

.hero h2 {
    font-size: clamp(18px, 3vw, 28px);
    letter-spacing: 2px;
    margin: 0;
}

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

/* PANELS */

.panel {
    background: var(--blue);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.panel > h2:first-child {
    margin-top: 0;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.muted {
    color: var(--muted);
    font-size: 13px;
}

.reference {
    color: var(--gold);
}

.eyebrow {
    color: var(--gold);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
}

/* BUTTONS */

button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    min-height: 44px;
    border: 1px solid transparent;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
}

.gold {
    background: var(--gold);
    color: var(--navy);
}

.gold:hover {
    background: #e8cf9b;
}

.secondary {
    background: var(--light-blue);
    color: var(--white);
    border-color: var(--border);
}

.secondary:hover {
    background: #345372;
}

button:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.button-row > * {
    flex: 1 1 150px;
}

/* STATISTICS */

.statistics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.stat {
    background: var(--blue);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center;
    padding: 20px 10px;
}

.stat strong {
    display: block;
    font-size: 34px;
    color: var(--gold);
}

.stat span {
    font-size: 13px;
    color: var(--muted);
}

progress {
    display: block;
    width: 100%;
    height: 15px;
    accent-color: var(--gold);
}

/* SUPERBOOK BANNER */

.superbook-banner {
    display: flex;
    align-items: center;
    gap: 28px;
    background: linear-gradient(
        135deg,
        #203c5b,
        #102b4b,
        #071a34
    );
}

.banner-icon {
    font-size: clamp(60px, 10vw, 130px);
}

.superbook-banner h2 {
    margin: 8px 0;
    font-size: clamp(24px, 4vw, 36px);
}

/* PLAYER */

.player-box {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    border-radius: 12px;
    overflow: hidden;
    display: grid;
    place-items: center;
}

.player-box iframe,
.player-box video {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.player-box:fullscreen {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.player-placeholder {
    text-align: center;
    padding: 12px;
}

.player-placeholder span {
    display: block;
    font-size: clamp(30px, 6vw, 65px);
    margin-bottom: 10px;
}

.resume-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.resume-panel h3 {
    color: var(--gold);
    margin: 0;
}

.resume-panel p {
    margin: 5px 0;
}

/* TABS */

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

.tabs button {
    background: var(--navy);
    color: var(--white);
    border: 1px solid var(--border);
}

.tabs button.active {
    background: var(--gold);
    color: var(--navy);
}

/* FILTERS */

.filters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 20px 0;
}

.filters label {
    display: block;
    color: var(--gold);
    font-size: 13px;
    margin-bottom: 5px;
}

.filters input,
.filters select {
    width: 100%;
    min-height: 44px;
    padding: 10px;
    background: var(--navy);
    color: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.filters input::placeholder {
    color: var(--muted);
}

/* COLLECTIONS */

.collection {
    margin: 24px 0;
}

.collection-heading {
    padding: 14px 18px;
    background: var(--navy);
    border-left: 4px solid var(--gold);
    border-radius: 8px;
    margin-bottom: 18px;
}

.collection-heading h3 {
    color: var(--gold);
    margin: 0;
}

.collection-heading p {
    color: var(--muted);
    font-size: 13px;
    margin: 5px 0 0;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

/* MOVIE CARDS */

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--navy);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 18px #00000025;
}

.movie-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        #294766,
        #071a34
    );
}

.movie-cover.ot {
    background: linear-gradient(
        135deg,
        #645136,
        #152c44
    );
}

.movie-cover.jesus {
    background: linear-gradient(
        135deg,
        #3d665b,
        #071a34
    );
}

.movie-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-icon {
    font-size: clamp(38px, 6vw, 75px);
}

.episode-label {
    position: absolute;
    left: 8px;
    top: 8px;
    z-index: 2;
    background: #071a34ed;
    color: white;
    padding: 5px 8px;
    border-radius: 5px;
    font-size: 11px;
}

.favorite-button {
    position: absolute;
    right: 8px;
    top: 8px;
    z-index: 3;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    background: #071a34ed;
    color: white;
    font-size: 25px;
}

.favorite-button.selected {
    color: #ff9393;
}

.movie-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 15px;
}

.movie-content h3 {
    margin: 0 0 8px;
    color: white;
    font-size: 18px;
}

.movie-description {
    font-size: 13px;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.movie-reference {
    color: var(--gold);
    font-size: 13px;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0;
}

.tag {
    padding: 4px 8px;
    border-radius: 5px;
    background: var(--light-blue);
    font-size: 11px;
}

.tag.greek {
    background: var(--green);
    color: #d3ffe6;
}

.technical-status {
    padding: 7px;
    border-radius: 6px;
    background: var(--green);
    color: #b6f5ce;
    font-size: 12px;
    text-align: center;
}

.movie-actions {
    display: grid;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
}

.pending-status {
    font-size: 12px;
    color: var(--gold);
    text-align: center;
}

/* NOTICE */

.notice {
    background: var(--navy);
    border-left: 4px solid var(--gold);
    border-radius: 8px;
    padding: 15px;
    margin: 18px 0;
    color: var(--muted);
    font-size: 14px;
}

.notice h3 {
    color: var(--gold);
    margin-top: 0;
}

.empty-state {
    padding: 35px 15px;
    text-align: center;
    color: var(--muted);
}

.empty-state > div {
    font-size: 48px;
}

#appError {
    padding: 15px;
    background: #662b2b;
    color: white;
    border-radius: 8px;
}

/* BIBLE QUOTE */

.bible-quote {
    padding: 30px 15px;
    text-align: center;
    color: var(--gold);
}

.bible-quote p {
    font-family: Georgia, serif;
    font-size: clamp(19px, 3vw, 27px);
    font-style: italic;
}

/* FOOTER */

footer {
    background: #031126;
    border-top: 1px solid var(--border);
    padding: 30px 15px;
    text-align: center;
    color: var(--muted);
}

footer strong {
    color: var(--gold);
}

/* RESPONSIVE */

@media (max-width: 1050px) {

    .movie-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}

@media (max-width: 700px) {

    .statistics {
        grid-template-columns: repeat(2, 1fr);
    }

    .filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-field {
        grid-column: 1 / -1;
    }

    .movie-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .panel {
        padding: 13px;
    }

    .movie-content {
        padding: 10px;
    }

    .movie-content h3 {
        font-size: 15px;
    }

    .movie-actions button,
    .movie-actions a {
        font-size: 12px;
        padding: 8px;
    }

    .superbook-banner {
        gap: 14px;
    }

    .tabs button {
        flex: 1 1 auto;
        font-size: 12px;
    }

    .episode-label {
        font-size: 10px;
    }

}

@media (max-width: 380px) {

    .movie-grid,
    .filters {
        grid-template-columns: 1fr;
    }

    .superbook-banner {
        flex-direction: column;
        text-align: center;
    }

}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

}