/* =========================================
   Home Page (Index)
   ========================================= */
.main-content-area {
    position: absolute;
    top: 240px;
    left: 150px;
    right: 150px;
    bottom: 120px;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 10;

    scrollbar-width: thin;
    scrollbar-color: #bd4f47 transparent;
}

.main-content-area::-webkit-scrollbar {
    width: 12px;
}

.main-content-area::-webkit-scrollbar-track {
    background: transparent;
}

.main-content-area::-webkit-scrollbar-thumb {
    background-color: #bd4f47;
    border-radius: 6px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.main-content-area::-webkit-scrollbar-thumb:hover {
    background-color: #a0403a;
}

.top-section {
    width: 100%;
    flex-shrink: 0;
}

.video-row {
    display: flex;
    gap: 20px;
    flex-shrink: 0;
}

.video-section {
    flex: 1;
}

.nine-slice-container {
    border-image: url('/images/WebUI/Container.png') 17 15 17 15 fill / 17px 15px 17px 15px;
    padding: 17px 15px 17px 15px;
    border-style: solid;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    background-color: transparent;
    width: 95%;
    margin: 0 auto;
    box-sizing: border-box;
    min-height: 200px;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 40%;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    image-rendering: pixelated;
}

/* =========================================
   Landing sections (hero / features / closing)
   ========================================= */
.home-landing {
    margin-top: 40px;
    --home-content-max: 880px;
    font-family: 'Ithaca', serif;
    -webkit-font-smoothing: none;
    text-rendering: geometricPrecision;
    font-size: 2rem;
    line-height: 1.3;
    color: #f4e3c2;
    --text-panel: rgba(18, 8, 9, 0.55);
}

.home-hero {
    text-align: center;
    padding: 0 0 48px;
}

.home-pitch > span,
.home-status > span,
.home-ladder > span,
.home-closing p > span {
    background: var(--text-panel);
    padding: 3px 10px;
    border-radius: 4px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.home-pitch {
    color: #ceb3a5;
    font-size: 2rem;
    max-width: 52ch;
    margin: 0 auto 16px;
}

.home-status {
    color: #fbde20;
    font-size: 2rem;
    margin: 0 auto 40px;
}

.home-trailer {
    position: relative;
    max-width: var(--home-content-max, 880px);
    margin: 0 auto 40px;
    padding: 8px;
    box-sizing: border-box;
}

.home-trailer::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 48px solid transparent;
    border-image: url('/images/WebUI/Background_Box_Frame_Open.png') 24 repeat;
    image-rendering: pixelated;
    pointer-events: none;
}

.home-trailer-media {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    border: 0;
    background: rgba(18, 8, 9, 0.72);
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
}

.home-trailer-poster {
    grid-area: 1 / 1;
    width: 256px;
    max-width: 40%;
    height: auto;
    image-rendering: pixelated;
    filter: grayscale(1);
    opacity: 0.5;
}

.home-trailer-frame {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 8px;
}

.home-trailer-play {
    grid-area: 1 / 1;
    width: 0;
    height: 0;
    border: 33px solid transparent;
    border-left: 55px solid #fbde20;
    border-right: 0;
    margin-left: 12px;
}

.home-trailer-caption {
    position: absolute;
    bottom: 16px;
    font-size: 2rem;
    color: #ceb3a5;
}

.home-trailer-media:hover .home-trailer-play,
.home-trailer-media:focus-visible .home-trailer-play {
    border-left-color: #e0d05c;
}

.home-ladder {
    margin: 12px auto 0;
    color: #ceb3a5;
}

.home-ladder b {
    color: #f4e3c2;
    font-weight: 400;
}

.home-ladder .up {
    display: inline-block;
    width: 16px;
    height: 26px;
    margin: 0 4px;
    vertical-align: -4px;
    background: url('/images/WebUI/arrow.png') no-repeat center / 16px 26px;
    image-rendering: pixelated;
}

/* All four cards share one height (grid-auto-rows: 1fr), so the tallest sets it — the way to
   shrink them is a wider card that wraps into fewer lines, not less equality. */
.home-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    gap: 28px;
    max-width: var(--site-content-max, 1164px);
    margin: 0 auto;
    padding: 0 0 72px;
}

.home-feature {
    padding: 0 6px 2px;
}

.home-feature h2 {
    font-size: 2rem;
    font-weight: 400;
    color: #fbde20;
    margin: 0 0 4px;
}

.home-feature p {
    margin: 0;
    line-height: 1.2;
    color: #ceb3a5;
}

.home-closing {
    text-align: center;
    padding: 0 0 88px;
}

.home-closing p {
    color: #ceb3a5;
    margin: 0 auto 28px;
}

.home-closing b {
    color: #f4e3c2;
    font-weight: 400;
}

@media (max-width: 860px) {
    .home-trailer-media,
    .home-trailer-frame {
        border-radius: 4px;
    }

    .home-features {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .home-closing {
        padding-bottom: 16px;
    }
}
