* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --warning-red: #FF3B3B;
    --warning-yellow: #FFD700;
    --text-light: #FFFFFF;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #000;
    color: #fff;
    overflow: hidden; 
    height: 100vh; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.story-container {
    width: 100%;
    height: 100%;
    aspect-ratio: 9 / 16;
    max-height: 100vh;
    max-width: calc(100vh * 9 / 16);
    position: relative;
    background: #000;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
}

.slides-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
    scroll-behavior: smooth;
}

.slide {
    flex: 0 0 100%; 
    height: 100%;
    position: relative;
    overflow: hidden;
}

.slide-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
    transform: scale(1);
}

.slide.active .slide-bg {
    animation: kenburns 15s ease-in-out infinite alternate;
}

.overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0.1) 0%, 
        rgba(0,0,0,0.2) 50%, 
        rgba(0,0,0,0.8) 75%, 
        rgba(0,0,0,1) 100%);
    z-index: 2;
}

.content-slide-1 {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    z-index: 3;
    text-align: center;
    background: rgba(0, 0, 0, 0.9);
    padding: 35px 20px;
    border-radius: 25px;
    border: 2px solid var(--warning-red);
    animation: border-blink 1.5s infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.content-slide-1 .main-icon {
    font-size: 30px;
    color: var(--warning-red);
    margin-bottom: 12px;
    display: block;
    animation: icon-blink 1s infinite;
}
.content-slide-1 h2 {
    font-size: 13.5px; 
    font-weight: 800;
    line-height: 1.5;
    color: #fff;
    margin-bottom: 18px;
    text-transform: uppercase;
    text-align: center;
}
.content-slide-1 h2 span {
    display: block;
    white-space: nowrap;
}
.content-slide-1 p {
    font-size: 14.5px;
    color: #efefef;
    line-height: 1.6;
    text-align: center;
}

.content-no-box {
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    padding: 0 20px 15px 20px;
    z-index: 3;
    height: auto; 
    max-height: 40%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: left;
}
.content-no-box h2 {
    font-size: 13.5px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--warning-yellow);
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    text-shadow: 2px 2px 5px rgba(0,0,0,1);
    line-height: 1.3;
}
.content-no-box h2 i { animation: icon-blink 1s infinite; margin-top: 2px; }

.content-no-box p {
    font-size: 14px;
    line-height: 1.45;
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0,0,0,1);
    margin-bottom: 8px;
    text-align: left; 
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 101;
    width: 35px; height: 35px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; cursor: pointer;
}
.arrow-left { left: 5px; }
.arrow-right { right: 5px; }

.control-btn {
    position: absolute;
    top: 45px; right: 15px;
    z-index: 102;
    width: 40px; height: 40px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
}

.progress-container {
    position: absolute; 
    top: 15px; left: 10px; right: 10px;
    display: flex; gap: 4px; z-index: 100;
}
.progress-item {
    flex: 1; height: 3px; background: rgba(255,255,255,0.3);
    border-radius: 2px; overflow: hidden;
}
.progress-fill { height: 100%; width: 0%; background: #fff; }

@keyframes border-blink {
    0%, 100% { border-color: var(--warning-red); box-shadow: 0 0 12px var(--warning-red); }
    50% { border-color: transparent; box-shadow: none; }
}
@keyframes icon-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
@keyframes kenburns {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}