* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family:
        Arial,
        Helvetica,
        sans-serif;
    background-image: url('');
    color: #111;
    min-height: 100vh;
}
button,
input,
select {
    font: inherit;
}
button {
    cursor: pointer;
}
.hidden {
    display: none !important;
}

.app-header {
    height: 72px;
    background: #111;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    border-bottom: 3px solid #111;
}
.logo {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}
.logo span {
    font-weight: 400;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.festival-label {
    font-family: monospace;
    font-size: 11px;
    text-transform: uppercase;
    opacity: 0.7;
}

.container {
    width: 100%;
    max-width: 1650px;
    margin: 0 auto;
    padding: 20px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}
.section-title {
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}
.section-subtitle {
    margin-top: 4px;
    color: #666;
    font-size: 12px;
}

.primary-button {
    border: 2px solid #111;
    background: #111;
    color: white;
    padding: 10px 15px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    transition: 0.15s ease;
}
.primary-button:hover {
    background: white;
    color: #111;
}
.secondary-button {
    border: 2px solid #111;
    background: white;
    color: #111;
    padding: 10px 15px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}
.secondary-button:hover {
    background: #111;
    color: white;
}
.primary-button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.movies-section {
    margin-bottom: 45px;
}
.movies-grid {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fill,
            minmax(300px, 1fr)
        );
    gap: 14px;
}

.movie-card {
    position: relative;
    min-height: 190px;
    background: white;
    border: 2px solid #111;
    box-shadow: 4px 4px 0 #111;
    overflow: hidden;
    transition: transform 0.15s ease;
}
.movie-card:hover {
    transform:
        translate(
            -2px,
            -2px
        );
}
.movie-color {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 7px;
}
.movie-card-content {
    min-height: 190px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding:
        18px
        15px
        18px
        20px;
}
.movie-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.movie-number {
    margin-bottom: 7px;
    font-family: monospace;
    font-size: 9px;
    font-weight: bold;
    color: #777;
}
.movie-title {
    padding: 0;
    margin-bottom: 14px;
    font-size: 19px;
    font-weight: 900;
    line-height: 1.05;
    text-transform: uppercase;
}
.movie-director {
    margin-bottom: 3px;
    font-family: monospace;
    font-size: 8px;
    font-weight: bold;
    color: #888;
    text-transform: uppercase;
}
.movie-director-name {
    max-width: 175px;
    font-size: 11px;
    font-weight: bold;
    line-height: 1.2;
}
.movie-set-name {
    color: #888;
    text-transform: uppercase;
    font-family: monospace;
    max-width: 175px;
    font-size: 11px;
    font-weight: light;
    line-height: 1.2;
}
.movie-plot {
    margin-bottom: 3px;
    font-family: monospace;
    font-size: 8px;
    font-weight: bold;
    color: #888;
    text-transform: uppercase;
}
.movie-plot-summary {
    margin-top: 10px;
    max-width: 175px;
    font-size: 10px;
    font-weight: lighter;
    line-height: 1.2;
    text-align: justify;
    hyphens: auto;
    overflow-wrap: break-word;
}
.movie-runtime {
    margin-top: auto;
    padding-top: 12px;
    font-family: monospace;
    font-size: 9px;
    font-weight: bold;
    color: #555;
}

/* image poster */ 
.movie-poster-wrap {
    position: relative;
    width: 92px;
    min-width: 92px;
    height: 135px;
    background: #e8e8e3;
    border: 2px solid #111;
    overflow: hidden;
}
.movie-poster {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.poster-placeholder {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 10px;
    text-align: center;
    background: #e8e8e3;
    color: #777;
    font-family: monospace;
    font-size: 8px;
    font-weight: bold;
}
.poster-missing .poster-placeholder {
    display: flex;
}

.scheduler-section {
    margin-bottom: 45px;
}
.scheduler-layout {
    display: grid;
    grid-template-columns:
        330px
        1fr;
    gap: 25px;
    align-items: start;
}
.scheduler-content{
    display:flex;
    flex-direction:column;
    gap:24px;
}

.screenings-section{
    margin-bottom:0;
}
.scheduler-panel {
    background: white;
    border: 2px solid #111;
    box-shadow: 4px 4px 0 #111;
    padding: 20px;
}
.panel-title {
    padding-bottom: 15px;
    margin-bottom: 18px;
    border-bottom: 2px solid #111;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.form-group {
    margin-bottom: 17px;
}
.form-label {
    display: block;
    margin-bottom: 6px;
    font-family: monospace;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
}
.form-control {
    width: 100%;
    height: 40px;
    border: 2px solid #111;
    outline: none;
    background: white;
    color: #111;
    padding: 0 10px;
    font-size: 12px;
}
.form-control:focus {
    border-width: 3px;
    padding-left: 9px;
}
.form-control:disabled {
    background: #eeeeea;
    color: #888;
    cursor: not-allowed;
}
.date-help {
    margin-top: 6px;
    font-family: monospace;
    font-size: 8px;
    color: #888;
    text-transform: uppercase;
}

.availability {
    min-height: 35px;
    padding: 9px 10px;
    margin-bottom: 15px;
    border-left: 4px solid #111;
    background: #f3f3ef;
    color: #555;
    font-family: monospace;
    font-size: 9px;
    line-height: 1.5;
    text-transform: uppercase;
}

.runtime-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 10px;
    border: 1px solid #ccc;
    background: #f2f2ee;
    font-family: monospace;
    font-size: 10px;
    text-transform: uppercase;
}
.runtime-info strong {
    font-weight: 900;
}

.end-time {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px;
    margin-top: 8px;
    background: #111;
    color: white;
    font-family: monospace;
    font-size: 10px;
    text-transform: uppercase;
}
.end-time strong {
    font-size: 13px;
}


.scheduler-info {
    display: grid;
    grid-template-columns:
        repeat(
            3,
            1fr
        );
    gap: 12px;
}
.scheduler-info-bot {
    display: grid;
    grid-template-columns:
        repeat(
            1,
            1fr
        );
}
.scheduler-info-card {
    display: flex;
    gap: 14px;
    padding: 18px;
    border: 2px solid #111;
    background: white;
}
.scheduler-info-number {
    font-family: monospace;
    font-size: 10px;
    font-weight: 900;
}
.scheduler-info-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    text-transform: uppercase;
}
.scheduler-info-card p {
    color: #666;
    font-size: 10px;
    line-height: 1.5;
}

/* list of screenings */

.screenings-section {
    margin-bottom: 50px;
}
.screenings-table {
    overflow-x: auto;
    background: white;
    border: 2px solid #111;
    box-shadow: 4px 4px 0 #111;
}
.screenings-header,
.screening-row {
    min-width: 800px;
    display: grid;
    grid-template-columns:
        1.6fr
        1fr
        1fr
        1fr
        50px;
}
.screenings-header {
    background: #111;
    color: white;
    font-family: monospace;
    font-size: 9px;
    font-weight: bold;
    text-transform: uppercase;
}
.screenings-header > div {
    padding: 12px;
    border-right: 1px solid #444;
}
.screening-row {
    min-height: 50px;
    align-items: center;
    border-bottom: 1px solid #ddd;
    font-size: 11px;
}
.screening-row:last-child {
    border-bottom: none;
}
.screening-row > div {
    padding: 10px 12px;
    border-right: 1px solid #eee;
}
.screening-movie {
    font-weight: 900;
    text-transform: uppercase;
}
.screening-time {
    font-family: monospace;
    font-size: 10px;
}
.delete-screening {
    width: 25px;
    height: 25px;
    border: 1px solid #111;
    background: white;
    font-size: 15px;
}
.delete-screening:hover {
    background: #111;
    color: white;
}


/* calendar */ 

.calendar-section {
    margin-bottom: 60px;
}


.calendar-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 18px;
}


.calendar {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding:
        3px
        5px
        10px
        3px;
}


.calendar::-webkit-scrollbar {
    height: 10px;
}

.calendar::-webkit-scrollbar-track {
    background: #ddd;
}

.calendar::-webkit-scrollbar-thumb {
    background: #111;
}

.calendar-grid {
    min-width: 1650px;
    border: 2px solid #111;
    background: white;

}

.calendar-header {

    display: grid;
    background: #111;
    color: white;

}


.calendar-header > div {
    min-height: 52px;
    display: flex;
    align-items: center;
    padding: 10px;
    border-right: 1px solid #444;
    font-family: monospace;
    font-size: 9px;
    font-weight: bold;
    text-transform: uppercase;
}


.calendar-header > div:first-child {
    background: #222;
}


.calendar-body {
    display: grid;
}

.calendar-time-column {
    position: relative;
    background: #f4f4f0;
    border-right: 2px solid #111;
}


.time-label {
    display: flex;
    align-items: flex-start;
    padding: 8px 7px;
    border-bottom: 1px solid #ddd;
    font-family: monospace;
    font-size: 9px;
    font-weight: bold;
    color: #555;
}

.calendar-date-column {
    position: relative;
    min-width: 100px;
    background: white;
    border-right: 1px solid #ddd;
    overflow: visible;
}


.calendar-date-column:last-child {
    border-right: none;
}

.calendar-hour-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e5e1;
    z-index: 0;
}

/* screenings */ 
.calendar-screening {
    position: absolute;
    left: 5px;
    right: 5px;
    padding: 8px 9px;
    border: 2px solid #111;
    background: white;
    color: #111;
    box-shadow: 3px 3px 0 #111;
    overflow: hidden;
    z-index: 5;
    cursor: pointer;
    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease;
}
.calendar-screening:hover {
    transform:
        translate(
            -2px,
            -2px
        );
    box-shadow: 5px 5px 0 #111;
}
.calendar-screening-title {
    font-size: 11px;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.calendar-cinema {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 5px;
    background: #111;
    color: white;
    font-family: monospace;
    font-size: 7px;
    font-weight: bold;
    line-height: 1;
    text-transform: uppercase;
}
.calendar-screening-time {
    margin-top: 5px;
    font-family: monospace;
    font-size: 8px;
    font-weight: bold;
    white-space: nowrap;
}




/* end of calendar */ 

.empty-state {
    padding: 35px;
    text-align: center;
    color: #888;
    font-family: monospace;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

/* footer */ 
.app-footer {
    display: flex;
    justify-content: space-between;
    padding: 25px 30px;
    border-top: 2px solid #111;
    color: #777;
    font-family: monospace;
    font-size: 9px;
    text-transform: uppercase;
}

/* ui responsive */ 
@media (max-width: 1100px) {
    .scheduler-layout {
        grid-template-columns: 1fr;
    }
    .scheduler-info {
        grid-template-columns:
            repeat(
                3,
                1fr
            );
    }
}
@media (max-width: 800px) {
    .scheduler-info {
        grid-template-columns: 1fr;
    }
    .movies-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    .container {
        padding: 18px;
    }
    .app-header {
        padding: 0 18px;
    }
    .festival-label {
        display: none;
    }
    .section-header {
        align-items: flex-start;
        flex-direction: column;
    }
    .movie-poster-wrap {
        width: 80px;
        min-width: 80px;
        height: 120px;
    }
    .movie-card-content {
        min-height: 175px;
    }
    .app-footer {
        flex-direction: column;
        gap: 8px;
        padding: 20px 18px;
    }
}

/* save image */ 

    .calendar-section-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        gap: 20px;
        margin-bottom: 18px;
    }

    #saveCalendarBtn {
        white-space: nowrap;
        cursor: pointer;
    }

    #saveCalendarBtn:active {
        transform: translateY(1px);
    }

    .site-footer {
        background: #000;
        color: #fff;
        width: 100%;
        padding: 18px 24px;
        margin-top: 60px;
        box-sizing: border-box;
    }

    .footer-content {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 12px;
        letter-spacing: 0.5px;
    }

    @media (max-width: 600px) {
        .footer-content {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
}

.movie-filter{
    display:flex;
    gap:10px;
    margin-bottom:18px;
}

.filter-button{
    padding:10px 18px;
    border:2px solid #111;
    background:#fff;
    color:#111;
    font-weight:900;
    font-size:11px;
    text-transform:uppercase;
    transition:.15s;
}

.filter-button:hover{
    background:#111;
    color:#fff;
}

.filter-button.active{
    background:#111;
    color:#fff;
}
