/* ==========================================
   Remon Code Stories
   Stories.css
   Part 1
========================================== */

*{
margin:0;
padding:0;
box-sizing:border-box;
}

.page{

width:100%;

max-width:500px;

margin:auto;

padding:30px 16px 120px;

}

.stories-search{

margin:30px 0;

position:relative;

z-index:2;

}

.stories-search input{

width:100%;

height:62px;

border:none;

outline:none;

background:#f5f7fb;

border-radius:18px;

padding:0 22px;

font-family:'Cairo',sans-serif;

font-size:20px;

font-weight:600;

box-shadow:

inset 0 2px 8px rgba(0,0,0,.08);

transition:.25s;

}

.stories-search input:focus{

background:#fff;

box-shadow:

0 0 0 3px rgba(21,101,192,.15),

0 10px 25px rgba(21,101,192,.12);

}

.stories-list{

display:flex;

flex-direction:column;

gap:18px;

margin-top:10px;

}

.story-card{

display:flex;

align-items:center;

gap:18px;

background:#fff;

border-radius:22px;

padding:18px;

text-decoration:none;

color:#222;

box-shadow:

0 10px 28px rgba(0,0,0,.08);

transition:.25s;

border:2px solid transparent;

}

.story-card:hover{

transform:translateY(-4px);

border-color:#1565c0;

box-shadow:

0 18px 35px rgba(21,101,192,.18);

}

.story-icon{

width:72px;

height:72px;

border-radius:22px;

display:flex;

align-items:center;

justify-content:center;

font-size:34px;

background:

linear-gradient(135deg,#1565c0,#42a5f5);

color:#fff;

flex-shrink:0;

box-shadow:

0 10px 25px rgba(21,101,192,.25);

}

.story-info{

flex:1;

min-width:0;

}

.story-title{

font-size:24px;

font-weight:800;

color:#1565c0;

margin-bottom:10px;

line-height:1.4;

}

.story-sub{

display:inline-flex;

align-items:center;

padding:7px 16px;

border-radius:30px;

background:#eef5ff;

color:#1565c0;

font-size:15px;

font-weight:700;

}

.story-arrow{

font-size:28px;

color:#1565c0;

transition:.25s;

}

.story-card:hover .story-arrow{

transform:translateX(-6px);

}

.empty-box{

text-align:center;

padding:45px 25px;

background:#fafafa;

border-radius:25px;

box-shadow:

inset 0 2px 10px rgba(0,0,0,.05);

}

.empty-icon{

font-size:70px;

margin-bottom:18px;

}

.empty-box h3{

font-size:28px;

color:#1565c0;

margin-bottom:10px;

}

.empty-box p{

font-size:18px;

color:#777;

line-height:1.8;

}
/* ==========================================
   Story Page
========================================== */

.back-story-btn{

display:block;

width:100%;

margin:30px 0;

padding:18px;

border-radius:18px;

background:linear-gradient(135deg,#1565c0,#1976d2);

color:#fff;

font-size:22px;

font-weight:700;

text-align:center;

transition:.25s;

box-shadow:0 12px 30px rgba(21,101,192,.25);

}

.back-story-btn:hover{

transform:translateY(-3px);

box-shadow:0 18px 35px rgba(21,101,192,.35);

}

.story-video-card{

margin-top:28px;

padding:22px;

background:#fafafa;

border-radius:24px;

box-shadow:

0 10px 28px rgba(0,0,0,.08);

border:1px solid #ececec;

animation:fadeUp .45s ease;

}

.story-video-header{

display:flex;

align-items:center;

gap:16px;

margin-bottom:18px;

}

.story-video-icon{

width:70px;

height:70px;

border-radius:20px;

background:linear-gradient(135deg,#1565c0,#42a5f5);

display:flex;

align-items:center;

justify-content:center;

font-size:32px;

color:#fff;

flex-shrink:0;

box-shadow:0 10px 25px rgba(21,101,192,.25);

}

.story-video-info{

flex:1;

}

.story-video-info h3{

font-size:24px;

font-weight:800;

color:#1565c0;

margin-bottom:6px;

}

.story-video-info p{

font-size:16px;

color:#777;

}

.video-wrapper{

overflow:hidden;

border-radius:22px;

background:#000;

margin-top:15px;

box-shadow:

0 15px 35px rgba(0,0,0,.18);

}

.video-player{

display:block;

width:100%;

border:none;

outline:none;

background:#000;

border-radius:22px;

}

.download-btn{

width:100%;

margin-top:24px;

padding:18px;

border:none;

border-radius:18px;

background:linear-gradient(135deg,#1565c0,#1976d2);

color:#fff;

font-family:'Cairo',sans-serif;

font-size:22px;

font-weight:700;

cursor:pointer;

transition:.25s;

box-shadow:0 12px 30px rgba(21,101,192,.25);

}

.download-btn:hover{

transform:translateY(-3px);

box-shadow:0 18px 35px rgba(21,101,192,.35);

}
/* ==========================================
   Download Progress
========================================== */

.download-progress{

width:100%;

height:22px;

background:#e8e8e8;

border-radius:40px;

overflow:hidden;

margin-top:22px;

box-shadow:inset 0 3px 8px rgba(0,0,0,.12);

}

.progress-bar{

width:0%;

height:100%;

border-radius:40px;

background:linear-gradient(90deg,#30b34d,#00e04d);

transition:width .3s ease;

}

.download-percent{

margin-top:16px;

text-align:center;

font-size:28px;

font-weight:700;

color:#1565c0;

}

.download-status{

margin-top:14px;

padding:14px 18px;

border-radius:16px;

background:#f5f7fb;

text-align:center;

font-size:18px;

font-weight:700;

color:#555;

box-shadow:inset 0 2px 6px rgba(0,0,0,.05);

}

/* ==========================================
   Animation
========================================== */

@keyframes fadeUp{

from{

opacity:0;

transform:translateY(25px);

}

to{

opacity:1;

transform:translateY(0);

}

}

/* ==========================================
   Responsive
========================================== */

@media(max-width:480px){

.stories-search input{

height:54px;

font-size:17px;

}

.story-card{

padding:15px;

gap:14px;

}

.story-icon{

width:60px;

height:60px;

font-size:28px;

border-radius:18px;

}

.story-title{

font-size:20px;

}

.story-sub{

font-size:13px;

padding:6px 12px;

}

.story-arrow{

font-size:24px;

}

.story-video-card{

padding:16px;

border-radius:20px;

}

.story-video-header{

gap:12px;

}

.story-video-icon{

width:58px;

height:58px;

font-size:26px;

border-radius:16px;

}

.story-video-info h3{

font-size:20px;

}

.story-video-info p{

font-size:14px;

}

.video-wrapper{

border-radius:18px;

}

.video-player{

border-radius:18px;

}

.back-story-btn,

.download-btn{

font-size:18px;

padding:15px;

}

.download-progress{

height:18px;

}

.download-percent{

font-size:22px;

}

.download-status{

font-size:15px;

padding:12px;

}

.empty-box{

padding:30px 18px;

}

.empty-icon{

font-size:54px;

}

.empty-box h3{

font-size:22px;

}

.empty-box p{

font-size:15px;

}

}
.new-badge{
    display:inline-block;
    margin-right:8px;
    padding:2px 8px;
    background:#ff3b30;
    color:#fff;
    font-size:12px;
    font-weight:700;
    border-radius:20px;
    vertical-align:middle;
}
.story-card-new{
    background:#eef7ff;
    border:2px solid #2196f3;
}

.story-card-new .story-title{
    color:#0d47a1;
    font-weight:800;
}
.story-card-new{
    border-right:6px solid #2196f3;
    background:#fff;
}

.story-card-new .story-title{
    color:#0d47a1;
    font-weight:800;
}
.story-card-new{
    background:#fff8d6; !important;
    border:2px solid #00a8ff !important;
}

.story-card-new .story-title{
    color:#005b99;
    font-weight:800;
}

.story-card-new .story-sub{
    color:#005b99;
}