/* Accessibility: Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

:root {
    --bg: #ffffff;
    --card-bg: #f8f8f8;
    --text: #000000;
    --sub-text: #666666;
    --accent: #000000;
    --btn-text: #ffffff;
    --neon: #39FF14;
    --purple: #9D00FF;
    --mint: #00FFD1;
    --border: #efefef;
    --chip-bg: #f0f0f0;
    --legal-text: #8E8E8E;
    --trust-color: #2d7a00;
    --btn-shadow: rgba(0, 0, 0, 0.12);
}

body.dark-mode {
    --bg: #0a1128;
    --card-bg: rgba(16, 23, 42, 0.7);
    --text: #EAEAEA;
    --sub-text: #A8A8A8;
    --accent: #39FF14;
    --btn-text: #000000;
    --neon: #39FF14;
    --border: #1e293b;
    --chip-bg: #111827;
    --legal-text: #94a3b8;
    --trust-color: #39FF14;
    --btn-shadow: rgba(57, 255, 20, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    transition: background-color 0.4s ease;
    height: 100svh;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.app-container {
    width: 100%;
    max-width: 420px;
    height: 100svh;
    display: flex;
    flex-direction: column;
    padding: 0 20px;
    padding-top: env(safe-area-inset-top);
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    background-color: var(--bg);
    z-index: 1000;
}

.logo {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -1px;
    cursor: pointer;
    color: var(--text);
    display: inline-block;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), text-shadow 0.2s ease;
    transform-origin: left center;
    user-select: none;
    -webkit-user-select: none;
}

.logo:hover {
    transform: scale(1.08) translateY(-1px);
    text-shadow:
        0 0 8px rgba(57, 255, 20, 0.9),
        0 0 20px rgba(157, 0, 255, 0.5);
    color: var(--text);
}

.logo.clicked {
    transform: scale(0.96) translateY(1px);
    text-shadow:
        0 0 12px rgba(57, 255, 20, 1),
        0 0 28px rgba(157, 0, 255, 0.7);
    transition: transform 0.1s cubic-bezier(0.34, 1.56, 0.64, 1), text-shadow 0.1s ease;
}

.controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border-radius: 10px;
    transition: all 0.2s;
    gap: 4px;
    min-width: 40px;
    height: 40px;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

body:not(.dark-mode) .icon-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

#lang-current-code {
    font-size: 14px;
    font-weight: 800;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.icon {
    width: 20px;
    height: 20px;
    stroke-width: 2.2;
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 160px;
    max-height: 380px;
    overflow-y: auto;
    display: none;
    flex-direction: column;
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    padding: 8px;
    scrollbar-width: none;
    transition: all 0.3s ease;
}

body.dark-mode .lang-menu {
    background: #1a1a1a;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.lang-menu::-webkit-scrollbar {
    display: none;
}

.lang-menu.show {
    display: flex;
    animation: dropdownSlideFade 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes dropdownSlideFade {
    from { 
        opacity: 0; 
        transform: translateY(-12px) scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

.lang-item {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.2s;
    text-align: left;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.lang-item:hover {
    background: rgba(57, 255, 20, 0.08);
    color: var(--neon);
}

.lang-item.active {
    color: var(--neon);
    background: rgba(57, 255, 20, 0.05);
}

.lang-item.active::before {
    content: '';
    position: absolute;
    left: 6px;
    width: 3px;
    height: 16px;
    background: var(--neon);
    border-radius: 10px;
}

.lang-code {
    font-size: 10px;
    font-weight: 900;
    opacity: 0.5;
    background: var(--chip-bg);
    padding: 2px 5px;
    border-radius: 4px;
    min-width: 24px;
    text-align: center;
}

.lang-item.active .lang-code {
    background: var(--neon);
    color: #000;
    opacity: 1;
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .logo {
    transform-origin: right center;
}

[dir="rtl"] .lang-menu {
    right: auto;
    left: 0;
}

[dir="rtl"] .lang-item {
    text-align: right;
}

[dir="rtl"] .lang-item.active::before {
    left: auto;
    right: 6px;
}

[dir="rtl"] .genre-nav-wrapper::after {
    right: auto;
    left: 0;
    background: linear-gradient(to left, transparent, var(--bg));
}

[dir="rtl"] .media-badge {
    left: auto;
    right: 16px;
}

[dir="rtl"] .release-date {
    margin-left: 0;
    margin-right: 4px;
}

/* Media Type Badge */
.media-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 900;
    color: #fff;
    z-index: 10;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.media-badge.movie {
    background: rgba(157, 0, 255, 0.7); /* Purple for Movie */
}

.media-badge.tv {
    background: rgba(57, 255, 20, 0.7); /* Neon Green for TV */
    color: #000;
}

/* Genre Nav */
.genre-nav-wrapper {
    position: relative;
    flex-shrink: 0;
    margin-bottom: 8px;
}

.genre-nav-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 100%;
    background: linear-gradient(to right, transparent, var(--bg));
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.genre-nav-wrapper.scrolled-end::after {
    opacity: 0;
}

.genre-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0 12px 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    cursor: grab;
}

.genre-nav::-webkit-scrollbar { 
    display: none; /* Chrome/Safari */
}

.genre-nav:active {
    cursor: grabbing;
}

.genre-chip {
    padding: 6px 14px;
    background: var(--chip-bg);
    border-radius: 100px;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid var(--border);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--sub-text);
    flex-shrink: 0;
}

.genre-chip.active {
    background: var(--accent);
    color: var(--btn-text);
    border-color: var(--accent);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.3);
}

.genre-chip.ott-chip {
    padding: 6px 10px;
    font-size: 11.5px;
    font-weight: 800;
}

.genre-chip.ott-chip.active {
    background: #e50914;
    border-color: #e50914;
    color: #fff;
}

/* Search Bar */
.search-wrapper {
    padding: 0 0 16px 0;
    flex-shrink: 0;
    position: relative;
    z-index: 100;
}

.search-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

#search-input {
    width: 100%;
    background: var(--chip-bg);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 12px 48px 12px 20px;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

#search-input:focus {
    border-color: var(--neon);
    background: var(--bg);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.2), inset 0 2px 4px rgba(0,0,0,0.05);
}

.search-btn {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: var(--sub-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
}

.search-btn:hover {
    color: var(--neon);
    transform: scale(1.1);
}

.search-btn:active {
    transform: scale(0.9);
}

/* Autocomplete Dropdown */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(57, 255, 20, 0.2);
    border-radius: 20px;
    max-height: 450px;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    z-index: 9999 !important;
    display: none;
    flex-direction: column;
    padding: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    scrollbar-width: none;
}

/* [FIX] 유령 실선 노이즈 박멸 */
.search-results-dropdown:empty {
    display: none !important;
    border: none !important;
    box-shadow: none !important;
}

.search-results-dropdown::-webkit-scrollbar {
    display: none;
}

.search-results-dropdown.show {
    display: flex;
    animation: dropdownSlideFade 0.25s cubic-bezier(0.23, 1, 0.32, 1);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text);
}

.search-result-item:hover,
.search-result-item.selected {
    background: rgba(57, 255, 20, 0.1);
    color: var(--neon);
}

.search-result-item.selected {
    border: 1px solid rgba(57, 255, 20, 0.3);
}

.search-result-poster {
    width: 36px;
    height: 54px;
    border-radius: 6px;
    object-fit: cover;
    background: #1a1a1a;
    flex-shrink: 0;
}

.search-result-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.search-result-title {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-year {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.6;
}

/* Main Card Area */
.main-card {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 0;
    margin-bottom: 140px;
}

.film-strip-bg {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    pointer-events: none;
    background-image: repeating-linear-gradient(
        transparent,
        transparent 100px,
        rgba(255,255,255,0.1) 100px,
        rgba(255,255,255,0.1) 102px
    );
    animation: slideUp 15s linear infinite;
    z-index: -1;
}

@keyframes slideUp {
    from { transform: translateY(0); }
    to { transform: translateY(-102px); }
}

/* Slot View */
.slot-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.slot-window {
    width: 280px;
    height: 400px;
    border-radius: 48px;
    overflow: hidden;
    background: #000;
    border: 1px solid var(--border);
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

.slot-track { 
    display: flex; 
    flex-direction: column; 
    width: 100%; 
    will-change: transform; 
    transform: translate3d(0, 0, 0); 
    backface-visibility: hidden;
}
.slot-track.spinning {
    filter: blur(4px);
}
.slot-item { width: 100%; height: 400px; flex-shrink: 0; display: flex; justify-content: center; align-items: center; }
.slot-item img { width: 100%; height: 100%; object-fit: cover; }
.slot-item.placeholder { background: #000; }

.ticket-icon {
    font-size: 100px;
    filter: drop-shadow(0 0 25px var(--mint)) drop-shadow(0 0 10px rgba(0, 255, 209, 0.5));
    animation: ticketPulse 4s infinite ease-in-out;
    will-change: transform, opacity;
}

@keyframes ticketPulse {
    0%, 100% { transform: scale(1) translate3d(0,0,0); opacity: 0.8; }
    50% { transform: scale(1.1) translate3d(0,0,0); opacity: 1; }
}

.hero-text-area { text-align: center; }
.mystery-phrase { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--text); opacity: 0.9; }
.trust-badge { font-size: 11px; font-weight: 800; color: var(--trust-color); letter-spacing: 0.5px; }

/* Result View */
.result-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    animation: feedReveal 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform, opacity;
}

.result-container.no-animation {
    animation: none !important;
}

@keyframes feedReveal {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.poster-display {
    width: 100%;
    height: 65%;
    border-radius: 32px;
    overflow: hidden;
    flex-shrink: 0;
    background: #000000;
    position: relative;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 15px 30px rgba(0,0,0,0.3);
}

.poster-display.loading::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    animation: skeleton 1.5s infinite;
}

@keyframes skeleton {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.poster-display img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: opacity 0.5s ease;
    opacity: 0;
}
.poster-display img.loaded {
    opacity: 1;
}
.trailer-container { 
    position: absolute; 
    inset: -1px; 
    z-index: 5; 
    display: none; 
    background: #000; 
    overflow: hidden;
    border-radius: 32px;
}
.trailer-container iframe { 
    width: 100%; 
    height: 100%; 
    border: 0 !important; 
    outline: none !important;
    box-shadow: none !important;
    display: block;
    background: #000;
    transform: scale(1.01);
}
.play-overlay { 
    position: absolute; 
    inset: 0; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    z-index: 10; 
    pointer-events: none; 
}

.play-icon { 
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #000;
    font-size: 24px;
    padding-left: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.poster-display:hover .play-icon {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.9);
}

.poster-display:active .play-icon {
    transform: scale(0.95);
}

/* INFO CARD */
.movie-info-box {
    margin-top: 10px;
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.8), rgba(157, 0, 255, 0.8));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 28px;
    padding: 14px 18px 18px 18px;
    color: #fff;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

.rating-row { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.rating-badge {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.movie-title { 
    font-size: 20px; 
    font-weight: 900; 
    margin-bottom: 2px; 
    line-height: 1.2; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    color: #fff; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); 
}
.movie-title a { text-decoration: none; color: inherit; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.movie-title a[href]:hover { text-decoration: underline; cursor: pointer; }
.movie-title a:not([href]) { cursor: default; }

.release-year {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.7;
    flex-shrink: 0;
}

.new-badge {
    background: #ff3b30;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(255, 59, 48, 0.5);
}

.release-date {
    font-size: 0.7em;
    opacity: 0.6;
    margin-left: 4px;
    font-weight: 600;
    white-space: nowrap;
}

.credits-info { margin-bottom: 6px; font-size: 11px; font-weight: 700; opacity: 0.9; }
.credit-link { text-decoration: none; color: inherit; }
.credit-link:hover { text-decoration: underline; }

.movie-overview {
    font-size: 12.5px;
    line-height: 1.35;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.9;
}

.ott-section { margin-top: auto; padding-top: 4px; }
.ott-list { display: flex; gap: 8px; flex-wrap: wrap; }
.ott-item { display: flex; flex-direction: column; align-items: center; gap: 3px; }

.ott-icon-small {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
}

.ott-icon-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ott-link-wrapper {
    text-decoration: none;
    display: block;
    transition: transform 0.2s;
}

.ott-link-wrapper:active {
    transform: scale(0.9);
}

.ott-name {
    font-size: 8px;
    font-weight: 900;
    text-align: center;
    max-width: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -0.2px;
    color: #fff;
    opacity: 0.8;
}

/* FOOTER */
.footer {
    position: absolute;
    bottom: max(16px, env(safe-area-inset-bottom));
    left: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-color: var(--bg);
}

.draw-btn {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 100px;
    background-color: var(--accent);
    color: var(--btn-text);
    font-size: 17px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 30px var(--btn-shadow);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.draw-btn:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px var(--btn-shadow);
}

.draw-btn:active { transform: scale(0.94) translateY(0); }

.draw-btn.drawing {
    animation: glowPulse 1.5s infinite ease-in-out;
    cursor: wait;
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 5px var(--accent), 0 0 15px var(--purple); opacity: 0.9; }
    50% { box-shadow: 0 0 20px var(--accent), 0 0 40px var(--purple); opacity: 1; }
    100% { box-shadow: 0 0 5px var(--accent), 0 0 15px var(--purple); opacity: 0.9; }
}

.legal-footer {
    text-align: center;
    padding-bottom: 4px;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 6px;
}

.legal-links a {
    color: var(--legal-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 11px;
    transition: color 0.2s;
}

.legal-links a:hover {
    color: var(--text);
}

.copyright {
    font-size: 9px;
    color: var(--legal-text);
    opacity: 0.6;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* PC OPTIMIZATION */
@media (min-width: 1024px) {
    .main-card {
        margin-bottom: 160px;
        gap: 15px;
    }
    .poster-display {
        height: 60%;
    }
}

/* MOBILE OPTIMIZATION */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        position: relative;
        width: 100%;
    }

    #search-input, input, select, textarea {
        font-size: 16px !important; /* iOS 확대 방지 */
    }

    .search-results-dropdown {
        max-height: 60vh !important;
    }

    .app-container { padding: 0 16px; }

    /* 상단 영역 촘촘하게 압축 */
    .header { padding: 8px 0; }
    .genre-nav-wrapper { margin-bottom: 4px; }
    .search-wrapper { padding-bottom: 8px; }

    /* 포스터 영역 가로 100% 강제 확대 및 밸런스 조정 */
    .poster-display {
        width: 100% !important;
        max-width: 100% !important;
        height: 30vh !important; /* 사장님 지시: 30vh로 슬림화 */
        min-height: 30vh !important;
        max-height: 30vh !important;
        aspect-ratio: auto !important;
        margin: 0 0 10px 0 !important;
        box-shadow: 0 10px 25px rgba(0,0,0,0.5);
        border-radius: 24px !important; /* 사장님 지시: 곡률 마감 */
        overflow: hidden !important;
    }

    .poster-display img, .trailer-container, .trailer-container iframe, .poster-display video {
        width: 100% !important;
        height: 100% !important; /* 부모 높이 100% 추종 */
        object-fit: cover !important; /* 위아래 크롭, 가로 꽉 채움 */
        background: #000;
        border-radius: 24px !important; /* 사장님 지시: 곡률 마감 */
        overflow: hidden !important;
        border: none !important;
        outline: none !important;
    }

    /* F12 가상 모바일 뷰 대응 */
    @media (max-height: 799px) {
        .poster-display, .poster-display img, .trailer-container, .trailer-container iframe, .poster-display video {
            height: 30vh !important; 
        }
    }

    /* 세로 대화면 모바일 정밀 조율 (사장님 지시: 38vh로 확대 및 공백 제거) */
    @media (min-height: 800px) {
        .poster-display, .poster-display img, .trailer-container, .trailer-container iframe, .poster-display video {
            height: 38vh !important;
            max-height: 38vh !important;
        }
        
        .movie-overview {
            margin-bottom: 0 !important; /* 내부 군살 제거 */
        }
        
        .ott-section {
            padding-top: 0 !important; /* OTT 아이콘 밀착 */
        }
    }

    .movie-info-box {
        margin-top: 0 !important;
        padding: 8px 14px 2px 14px !important; /* 하단 패딩 타이트하게 다이어트 */
        flex-grow: 1;
        height: auto !important;
        border-radius: 18px !important;
        box-shadow: 0 6px 20px rgba(0,0,0,0.3);
        margin-bottom: 8px !important; /* 버튼 쪽으로 더 밀착 */
    }

    .movie-title { font-size: 16px !important; margin-bottom: 2px !important; }
    .credits-info { font-size: 10px; margin-bottom: 4px; }
    
    .movie-overview {
        font-size: 11.5px !important;
        line-height: 1.4 !important;
        margin-bottom: 2px; /* 줄거리 아래 여백 축소 */
        display: -webkit-box !important;
        -webkit-box-orient: vertical;
        overflow: hidden;
        padding-right: 0;
        -webkit-line-clamp: 3 !important; /* 3줄 고정 */
    }

    .ott-section { 
        margin-top: auto; 
        padding-top: 2px;
        padding-bottom: 0 !important; 
    }
    .ott-list { margin-bottom: 0 !important; }

    .ott-icon-small { width: 22px; height: 22px; }
    .ott-name { font-size: 7.5px; }

    .main-card { margin-bottom: 100px !important; gap: 4px !important; }
    .footer { bottom: 8px !important; gap: 6px; }
    .draw-btn { padding: 14px; font-size: 15.5px; }
    .legal-footer { padding-bottom: 0; }
}

/* ULTRA SMALL SCREENS */
@media (max-height: 700px) {
    .slot-window { height: 260px; width: 200px; }
    .slot-item { height: 260px; }
    .poster-display { max-height: 240px !important; }
    .movie-overview { max-height: 60px !important; }
    .footer { bottom: 8px !important; }
}
