* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    background: #0d1117;
    color: #f0f6fc;
    font-family: Arial, Helvetica, sans-serif;
}

body>main {
    flex: 1 0 auto;
}

.main-header {
    background-color: #0f141a;
    border-bottom: 1px solid #1f2a36;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    width: min(1600px, calc(100% - 40px));
    margin: 0 auto;
    height: 70px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.header-brand {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    gap: 10px;
}

.header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-logo i {
    color: #3b82f6;
    font-size: 1.5rem;
}

.header-title {
    display: flex;
    flex-direction: column;
}

.header-title strong {
    color: #ffffff;
    font-size: 1.2rem;
    line-height: 1.2;
}

.header-title small {
    display: block;
    margin-top: 2px;
    font-size: 0.75rem;
    color: #7c8aa0;
}

.desktop-navigation {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navigation-left {
    display: flex;
    align-items: center;
    gap: 25px;
}

.navigation-right {
    flex-shrink: 0;
    margin-left: auto;
}

.navigation-left>a,
.navigation-right>a,
.more-navigation-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    background: none;
    border: 0;
    color: #9aa7b5;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 400;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s ease;
}

.navigation-left>a:hover,
.navigation-right>a:hover,
.more-navigation-button:hover {
    color: #3b82f6;
}

.navigation-left>a.active,
.navigation-right>a.active,
.more-navigation-button.active {
    color: #3b82f6;
    font-weight: 600;
}

.navigation-left>a i,
.navigation-right>a i,
.more-navigation-button i {
    font-size: 0.85rem;
}

.film-vu-link {
    color: #9aa7b5 !important;
}

.film-vu-link:hover,
.film-vu-link.active {
    color: #3b82f6 !important;
}

.more-navigation {
    position: relative;
}

.more-navigation-button {
    height: auto;
}

.more-navigation-button .more-chevron {
    margin-left: 2px;
    font-size: 0.65rem;
    transition: transform 0.2s ease;
}

.more-navigation-button.open .more-chevron {
    transform: rotate(180deg);
}

.more-navigation-menu {
    position: absolute;
    top: calc(100% + 18px);
    left: 0;
    z-index: 1100;
    width: 280px;
    display: none;
    padding: 8px;
    background: #0f141a;
    border: 1px solid #1f2a36;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45);
}

.more-navigation-menu.open {
    display: block;
}

.more-navigation-menu>a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px;
    color: #9aa7b5;
    text-decoration: none;
    border-radius: 7px;
    transition: background 0.2s ease, color 0.2s ease;
}

.more-navigation-menu>a:hover {
    background: #161d26;
}

.more-navigation-menu>a.active {
    background: rgba(59, 130, 246, 0.1);
}

.more-icon {
    width: 35px;
    height: 35px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #161d26;
    border-radius: 7px;
    color: #7c8aa0;
}

.more-navigation-menu>a:hover .more-icon,
.more-navigation-menu>a.active .more-icon {
    color: #3b82f6;
}

.more-navigation-menu>a>span:nth-child(2) {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.more-navigation-menu strong {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
}

.more-navigation-menu small {
    color: #7c8aa0;
    font-size: 0.72rem;
}

.movie-alert {
    width: 100%;
    background: #2d2305;
    border-bottom: 1px solid #6e570c;
}

.movie-alert-button {
    width: min(1500px, calc(100% - 30px));
    min-height: 64px;
    margin: 0 auto;
    padding: 12px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: none;
    border: 0;
    color: #ffffff;
    text-align: left;
    cursor: pointer;
}

.movie-alert-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 13px;
}

.movie-alert-main>i {
    flex-shrink: 0;
    color: #d29922;
    font-size: 21px;
}

.movie-alert-main>span {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.movie-alert-main strong {
    color: #f0f6fc;
    font-size: 14px;
    font-weight: 650;
}

.movie-alert-main small {
    color: #c9b458;
    font-size: 12px;
}

.movie-alert-chevron {
    flex-shrink: 0;
    color: #c9b458;
    font-size: 13px;
    transition: transform 0.2s ease;
}

.movie-alert-button.open .movie-alert-chevron {
    transform: rotate(180deg);
}

.movie-alert-details {
    display: none;
    width: min(1500px, calc(100% - 30px));
    margin: 0 auto;
    padding-bottom: 14px;
}

.movie-alert-details.open {
    display: grid;
    gap: 7px;
}

.movie-alert-film {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 15px;
    align-items: center;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(210, 153, 34, 0.25);
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.movie-alert-film:hover {
    background: rgba(0, 0, 0, 0.32);
    border-color: rgba(210, 153, 34, 0.55);
}

.movie-alert-film-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.movie-alert-film-main strong {
    color: #f0f6fc;
    font-size: 13px;
}

.movie-alert-film-main span {
    color: #c9b458;
    font-size: 11px;
}

.movie-alert-missing {
    grid-column: 1 / -1;
    color: #b1bac4;
    font-size: 12px;
}

.movie-alert-film>i {
    grid-column: 2;
    grid-row: 1;
    color: #8b949e;
    font-size: 12px;
}

.mobile-bottom-navigation,
.mobile-more-panel,
.mobile-more-overlay {
    display: none;
}

@media (min-width: 768px) {
    .movie-alert-film {
        grid-template-columns: minmax(200px, 0.5fr) 1fr auto;
    }
    .movie-alert-missing {
        grid-column: 2;
        grid-row: 1;
    }
    .movie-alert-film>i {
        grid-column: 3;
    }
}

@media (max-width: 1150px) {
    .header-container {
        gap: 25px;
    }
    .navigation-left {
        gap: 17px;
    }
    .navigation-left>a,
    .navigation-right>a,
    .more-navigation-button {
        font-size: 0.85rem;
    }
}

@media (max-width: 850px) {
    body {
        padding-bottom: 68px;
    }
    body.mobile-menu-open {
        overflow: hidden;
    }
    .main-header {
        position: sticky;
        top: 0;
    }
    .header-container {
        width: min(100% - 30px, 1600px);
        height: 62px;
        gap: 0;
    }
    .header-brand {
        gap: 9px;
    }
    .header-logo i {
        font-size: 1.3rem;
    }
    .header-title strong {
        font-size: 1.05rem;
    }
    .header-title small {
        font-size: 0.7rem;
    }
    .desktop-navigation {
        display: none;
    }
    .mobile-bottom-navigation {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1200;
        height: 68px;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        background: #0f141a;
        border-top: 1px solid #1f2a36;
        padding-bottom: env(safe-area-inset-bottom);
    }
    .mobile-bottom-navigation>a,
    .mobile-bottom-navigation>button {
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 7px 3px;
        background: none;
        border: 0;
        color: #7c8aa0;
        font-family: inherit;
        text-decoration: none;
        cursor: pointer;
        transition: color 0.2s ease;
    }
    .mobile-bottom-navigation>a:hover,
    .mobile-bottom-navigation>button:hover,
    .mobile-bottom-navigation>a.active,
    .mobile-bottom-navigation>button.active,
    .mobile-bottom-navigation>button.menu-open {
        color: #3b82f6;
    }
    .mobile-bottom-navigation i {
        font-size: 1.05rem;
    }
    .mobile-bottom-navigation span {
        max-width: 100%;
        overflow: hidden;
        font-size: 0.67rem;
        font-weight: 600;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .mobile-more-overlay {
        position: fixed;
        inset: 0;
        z-index: 1250;
        display: block;
        background: rgba(0, 0, 0, 0.65);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }
    .mobile-more-overlay.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    .mobile-more-panel {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1300;
        display: block;
        max-height: 85vh;
        padding: 9px 15px calc(18px + env(safe-area-inset-bottom));
        overflow-y: auto;
        background: #0f141a;
        border-top: 1px solid #1f2a36;
        border-radius: 18px 18px 0 0;
        box-shadow: 0 -15px 45px rgba(0, 0, 0, 0.5);
        transform: translateY(105%);
        transition: transform 0.25s ease;
    }
    .mobile-more-panel.open {
        transform: translateY(0);
    }
    .mobile-more-handle {
        width: 40px;
        height: 4px;
        margin: 0 auto 15px;
        background: #3a4654;
        border-radius: 10px;
    }
    .mobile-more-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 13px;
        padding: 0 3px;
    }
    .mobile-more-header>div {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    .mobile-more-header span {
        color: #7c8aa0;
        font-size: 0.7rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }
    .mobile-more-header strong {
        color: #ffffff;
        font-size: 1.25rem;
    }
    .mobile-more-header button {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        background: #161d26;
        border: 1px solid #1f2a36;
        border-radius: 50%;
        color: #9aa7b5;
        font-size: 0.95rem;
        cursor: pointer;
    }
    .mobile-more-links {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    .mobile-more-links>a {
        min-height: 60px;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 9px 10px;
        color: inherit;
        text-decoration: none;
        border-radius: 8px;
        transition: background 0.2s ease;
    }
    .mobile-more-links>a:hover,
    .mobile-more-links>a.active {
        background: #161d26;
    }
    .mobile-more-link-icon {
        width: 38px;
        height: 38px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #111820;
        border: 1px solid #1f2a36;
        border-radius: 8px;
        color: #7c8aa0;
    }
    .mobile-more-links>a.active .mobile-more-link-icon {
        color: #3b82f6;
        border-color: rgba(59, 130, 246, 0.35);
        background: rgba(59, 130, 246, 0.08);
    }
    .mobile-more-links>a>span:nth-child(2) {
        min-width: 0;
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 3px;
    }
    .mobile-more-links strong {
        color: #ffffff;
        font-size: 0.9rem;
        font-weight: 600;
    }
    .mobile-more-links small {
        color: #7c8aa0;
        font-size: 0.72rem;
    }
    .mobile-more-links>a>i:last-child {
        flex-shrink: 0;
        color: #52606f;
        font-size: 0.7rem;
    }
    .mobile-admin-link {
        margin-top: 7px;
        padding-top: 14px !important;
        border-top: 1px solid #1f2a36;
        border-radius: 0 !important;
    }
    .movie-alert-button,
    .movie-alert-details {
        width: calc(100% - 30px);
    }
    .movie-alert-button {
        min-height: 58px;
    }
    .movie-alert-main>i {
        font-size: 18px;
    }
    .movie-alert-main strong {
        font-size: 13px;
    }
    .movie-alert-main small {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .header-container {
        height: 58px;
    }
    .header-title strong {
        font-size: 1rem;
    }
    .header-title small {
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .movie-alert-main small {
        display: none;
    }
    .movie-alert-button {
        min-height: 52px;
    }
    .mobile-bottom-navigation {
        height: 64px;
    }
    body {
        padding-bottom: 64px;
    }
}