/*
Theme Name: Sammy Morocco Media
Theme URI: https://sammymorocco.com
Author: Sammy Morocco
Description: Custom viral media/video feed theme with compact thumbnail-left layout, category sections, and single video pages.
Version: 1.7.5
License: GPLv2 or later
Text Domain: sammy-morocco-media
*/

:root{
  --bg:#000;
  --panel:#070707;
  --text:#fff;
  --muted:#9b9b9b;
  --red:#ff1717;
  --line:#181818;
  --thumb-w:250px;
  --thumb-h:141px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;background:#000;color:#fff;font-family:Arial,Helvetica,sans-serif}
body{font-size:16px;line-height:1.4}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}

.site-wrap{max-width:1080px;margin:0 auto;padding:0 16px}

/* Header */
.site-header{background:#000;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:99}
.header-inner{display:flex;align-items:center;justify-content:space-between;min-height:66px;gap:18px}
.logo{font-weight:1000;line-height:.86;font-size:27px;letter-spacing:-1px;text-transform:uppercase}
.logo span{display:block;color:var(--red)}
.main-nav ul{list-style:none;display:flex;gap:23px;margin:0;padding:0;align-items:center}
.main-nav a{font-weight:900;text-transform:uppercase;font-size:13px;color:#e8e8e8}
.main-nav a:hover{color:var(--red)}

/* Hero - compact */
.hero-strip{padding:20px 0 16px;border-bottom:1px solid var(--line)}
.hero-title{font-size:34px;line-height:.93;margin:0;text-transform:uppercase;font-weight:1000;letter-spacing:-1px}
.hero-title .red{color:var(--red)}
.hero-sub{color:#e6e6e6;font-weight:800;font-size:17px;margin:11px 0 0;max-width:650px}

/* Section */
.section-head{display:flex;align-items:flex-end;justify-content:space-between;margin:28px 0 16px;gap:16px}
.section-title{font-size:32px;line-height:1;margin:0;text-transform:uppercase;font-weight:1000;letter-spacing:-.6px}
.section-title span{color:var(--red)}
.count-label{color:var(--muted);font-weight:900;font-size:17px;white-space:nowrap}

/* Feed */
.video-feed{display:flex;flex-direction:column}
.video-card{
  display:grid;
  grid-template-columns:var(--thumb-w) 1fr;
  gap:16px;
  align-items:start;
  padding:0 0 15px;
  margin:0 0 15px;
  border-bottom:1px solid var(--line);
}
.video-thumb{
  width:var(--thumb-w);
  height:var(--thumb-h);
  background:#111;
  overflow:hidden;
  position:relative;
}
.video-thumb img{width:100%;height:100%;object-fit:cover}
.video-duration{position:absolute;right:6px;bottom:6px;background:rgba(0,0,0,.88);font-size:11px;font-weight:1000;padding:2px 6px;border-radius:3px;color:#fff}
.video-info{min-width:0;padding-top:0}
.video-title{font-size:24px;line-height:1.12;font-weight:1000;letter-spacing:-.4px;margin:0;color:#fff}
.video-title .hook{color:var(--red);text-transform:uppercase}
.meta{display:flex;flex-wrap:wrap;gap:10px;align-items:center;color:#b7b7b7;margin-top:10px;font-size:14px;font-weight:800}
.meta span{display:inline-flex;align-items:center;gap:5px}
.category-links a{color:#b7b7b7;text-transform:uppercase}
.category-links a:hover{color:var(--red)}

/* Category sections */
.category-block{margin-top:34px}
.category-block .section-head{border-top:1px solid var(--line);padding-top:22px}

/* Single page */
.single-layout{max-width:940px;margin:0 auto;padding:24px 16px 46px}
.video-player{background:#111;margin:0 0 20px;width:100%;aspect-ratio:16/9;display:flex;align-items:center;justify-content:center;overflow:hidden;border-bottom:1px solid var(--line)}
.video-player iframe{width:100%;height:100%;border:0}
.single-title{font-size:38px;line-height:1.03;margin:20px 0 10px;font-weight:1000;letter-spacing:-.8px}
.single-content{color:#e8e8e8;font-size:18px;max-width:760px;margin-top:18px}
.single-content p{margin:0 0 18px}
.more-videos{margin-top:34px}
.more-videos .section-title{font-size:27px}

/* Archive */
.archive-header{padding:30px 0 8px}
.archive-title{font-size:36px;text-transform:uppercase;margin:0;font-weight:1000}

/* Pagination */
.nav-links{display:flex;gap:10px;margin:28px 0 45px}
.nav-links a,.nav-links span{padding:9px 13px;background:#111;border:1px solid #222;color:#fff;font-weight:800}
.nav-links .current{background:var(--red);border-color:var(--red)}

.site-footer{border-top:1px solid var(--line);padding:20px 0;color:#777;font-size:13px;text-align:center;margin-top:34px}

/* Tablet */
@media(max-width:900px){
  :root{--thumb-w:210px;--thumb-h:118px}
  .video-title{font-size:21px}
  .site-wrap{max-width:900px}
}

/* Mobile */
@media(max-width:780px){
  :root{--thumb-w:124px;--thumb-h:70px}
  .site-wrap{padding:0 10px}
  .header-inner{min-height:auto;align-items:flex-start;flex-direction:column;padding:10px 0 8px;gap:9px}
  .logo{font-size:22px}
  .main-nav{width:100%;overflow-x:auto;padding-bottom:3px}
  .main-nav ul{gap:16px;white-space:nowrap}
  .main-nav a{font-size:11.5px}
  .hero-strip{padding:16px 0 12px}
  .hero-title{font-size:28px}
  .hero-sub{font-size:13px;margin-top:9px}
  .section-head{margin:19px 0 12px}
  .section-title{font-size:23px}
  .count-label{font-size:12px}
  .video-card{
    grid-template-columns:124px 1fr;
    gap:9px;
    padding-bottom:12px;
    margin-bottom:12px;
  }
  .video-title{font-size:14.5px;line-height:1.15;letter-spacing:-.12px}
  .meta{font-size:10.5px;gap:6px;margin-top:6px;line-height:1.1}
  .category-links{display:none!important}
  .video-duration{font-size:9px;padding:2px 4px;right:4px;bottom:4px}
  .category-block{margin-top:24px}
  .category-block .section-head{padding-top:18px}
  .single-layout{padding:14px 10px 38px}
  .single-title{font-size:25px}
  .single-content{font-size:15px}
  .more-videos{margin-top:28px}
  .archive-title{font-size:28px}
  .site-footer{margin-top:20px}
}

/* Small phones */
@media(max-width:390px){
  :root{--thumb-w:114px;--thumb-h:64px}
  .video-card{grid-template-columns:114px 1fr;gap:8px}
  .video-title{font-size:13.5px}
  .meta{font-size:10px}
}


/* ===== Sammy Morocco Media v6: Viral Feed Density Upgrade ===== */

/* Keep current mobile menu style. No hamburger added. */

.site-wrap{
  max-width: 1080px;
}

.hero-strip{
  padding: 18px 0 14px;
}

.hero-title{
  font-size: 34px;
}

.hero-sub{
  font-size: 16px;
}

.section-head{
  margin: 24px 0 14px;
}

.section-title{
  font-size: 31px;
}

.video-card{
  grid-template-columns: 240px 1fr !important;
  gap: 15px !important;
  padding-bottom: 14px !important;
  margin-bottom: 14px !important;
}

.video-thumb{
  width: 240px !important;
  height: 135px !important;
}

.video-title{
  font-size: 23px !important;
  line-height: 1.1 !important;
}

.meta{
  margin-top: 9px !important;
  font-size: 13px !important;
  gap: 9px !important;
}

.category-block{
  margin-top: 26px !important;
}

.category-block .section-head{
  padding-top: 18px !important;
}

/* Better single video page */
.single-layout{
  max-width: 950px;
  padding-top: 20px;
}

.video-player{
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.single-title{
  font-size: 36px;
}

/* Cleaner footer */
.site-footer{
  margin-top: 24px !important;
  padding: 18px 0 !important;
}

/* Tablet */
@media(max-width:900px){
  .video-card{
    grid-template-columns: 190px 1fr !important;
    gap: 12px !important;
  }

  .video-thumb{
    width: 190px !important;
    height: 107px !important;
  }

  .video-title{
    font-size: 19px !important;
  }
}

/* Mobile compact viral feed */
@media(max-width:780px){
  .site-wrap{
    padding: 0 10px !important;
  }

  .header-inner{
    padding: 9px 0 7px !important;
    gap: 8px !important;
  }

  .logo{
    font-size: 21px !important;
  }

  .main-nav ul{
    gap: 15px !important;
  }

  .main-nav a{
    font-size: 11px !important;
  }

  .hero-strip{
    padding: 14px 0 10px !important;
  }

  .hero-title{
    font-size: 26px !important;
  }

  .hero-sub{
    font-size: 12.5px !important;
    margin-top: 7px !important;
  }

  .section-head{
    margin: 17px 0 10px !important;
  }

  .section-title{
    font-size: 22px !important;
  }

  .count-label{
    font-size: 12px !important;
  }

  .video-card{
    grid-template-columns: 112px 1fr !important;
    gap: 8px !important;
    padding-bottom: 10px !important;
    margin-bottom: 10px !important;
  }

  .video-thumb{
    width: 112px !important;
    height: 63px !important;
  }

  .video-title{
    font-size: 13.4px !important;
    line-height: 1.12 !important;
    letter-spacing: -0.1px !important;
  }

  .meta{
    font-size: 9.8px !important;
    gap: 5px !important;
    margin-top: 5px !important;
  }

  .category-links{
    display: none !important;
  }

  .video-duration{
    font-size: 8.5px !important;
    padding: 1px 4px !important;
    right: 4px !important;
    bottom: 4px !important;
  }

  .category-block{
    margin-top: 20px !important;
  }

  .category-block .section-head{
    padding-top: 14px !important;
  }

  .single-title{
    font-size: 24px !important;
  }

  .site-footer{
    margin-top: 18px !important;
  }
}

@media(max-width:390px){
  .video-card{
    grid-template-columns: 104px 1fr !important;
  }

  .video-thumb{
    width: 104px !important;
    height: 59px !important;
  }

  .video-title{
    font-size: 12.8px !important;
  }

  .meta{
    font-size: 9.4px !important;
  }
}


/* ===== Sammy Morocco Media v7: Viral Card Upgrade ===== */

/* premium clickable card feel */
.video-card{
  position:relative;
  border-bottom:1px solid rgba(255,255,255,.09) !important;
  transition:background .22s ease, transform .22s ease;
}

.video-card:hover{
  background:rgba(255,255,255,.025);
}

.video-thumb{
  position:relative;
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 0 0 1px rgba(0,0,0,.45);
}

.video-thumb::after{
  content:"▶";
  position:absolute;
  left:8px;
  bottom:6px;
  width:24px;
  height:24px;
  border-radius:999px;
  background:rgba(0,0,0,.72);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:10px;
  font-weight:900;
  padding-left:2px;
  opacity:.92;
}

.video-thumb img{
  transition:transform .25s ease, filter .25s ease;
}

.video-card:hover .video-thumb img{
  transform:scale(1.045);
  filter:brightness(1.08) contrast(1.05);
}

.video-duration{
  background:#000 !important;
  border:1px solid rgba(255,255,255,.18);
  letter-spacing:.2px;
}

.video-title{
  text-shadow:0 1px 0 rgba(0,0,0,.65);
}

.video-title a{
  display:block;
}

.video-title a:hover{
  color:#fff;
}

.video-title .hook{
  color:#ff1717 !important;
}

.meta{
  color:#aaa !important;
  text-transform:none;
}

.meta span:first-child,
.meta span:nth-child(2){
  color:#d5d5d5;
}

.category-links a{
  color:#aaa !important;
}

.category-links a:hover{
  color:#ff1717 !important;
}

/* make section headers feel more like a media brand */
.section-head{
  border-bottom:1px solid rgba(255,255,255,.07);
  padding-bottom:8px;
}

.section-title{
  text-shadow:0 1px 0 rgba(0,0,0,.7);
}

.count-label a,
.count-label{
  color:#aaa !important;
}

/* desktop: slightly more polished */
@media(min-width:901px){
  .video-card{
    padding-top:10px !important;
    padding-bottom:17px !important;
  }
}

/* mobile: make cards feel tighter and more clickable */
@media(max-width:780px){
  .video-card{
    min-height:72px;
  }

  .video-thumb::after{
    width:18px;
    height:18px;
    font-size:8px;
    left:5px;
    bottom:5px;
  }

  .section-head{
    padding-bottom:6px;
  }

  .video-title .hook{
    display:inline;
  }

  .meta span:nth-child(3){
    opacity:.75;
  }
}


/* ===== Sammy Morocco Media v8: Reliable Single Video Player Fix ===== */

.video-player{
  background:#050505 !important;
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 8px 28px rgba(0,0,0,.45);
}

.video-player .smm-video-iframe{
  width:100% !important;
  height:100% !important;
  border:0 !important;
  display:block !important;
}

@media(max-width:780px){
  .video-player{
    margin-top:10px;
  }
}


/* ===== Sammy Morocco Media v9: Premium Shorts Watch Page ===== */

.video-player{
  position:relative;
  overflow:hidden;
  border-radius:4px;
}

.smm-short-player{
  aspect-ratio:16/9;
  background:#050505;
  display:flex;
  align-items:center;
  justify-content:center;
}

.smm-short-player::before{
  content:"";
  position:absolute;
  inset:-28px;
  background-image:var(--smm-poster);
  background-size:cover;
  background-position:center;
  filter:blur(22px) brightness(.55) saturate(1.35);
  transform:scale(1.12);
  opacity:.85;
  z-index:0;
}

.smm-short-player::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.82), rgba(0,0,0,.12) 35%, rgba(0,0,0,.12) 65%, rgba(0,0,0,.82)),
    radial-gradient(circle at center, rgba(255,255,255,.04), rgba(0,0,0,.45));
  z-index:1;
  pointer-events:none;
}

.smm-short-player .smm-video-iframe{
  position:relative;
  z-index:2;
  width:min(390px, 42vw) !important;
  height:100% !important;
  max-width:100%;
  box-shadow:0 0 38px rgba(0,0,0,.75);
  background:#000;
}

.smm-wide-player .smm-video-iframe{
  width:100% !important;
  height:100% !important;
}

.more-videos .video-card{
  background:rgba(255,255,255,.015);
}

.single-content:empty{
  display:none;
}

@media(max-width:780px){
  .smm-short-player .smm-video-iframe{
    width:38% !important;
    min-width:150px;
  }
}

@media(max-width:430px){
  .smm-short-player .smm-video-iframe{
    width:42% !important;
    min-width:138px;
  }
}


/* ===== Sammy Morocco Media v10: Bigger Thumbnails + English/Arabic Title Fix ===== */

/* Make feed thumbnails a little bigger without losing compact layout */
@media(min-width:901px){
  .video-card{
    grid-template-columns:270px 1fr !important;
    gap:17px !important;
  }

  .video-thumb{
    width:270px !important;
    height:152px !important;
  }

  .video-title{
    font-size:25px !important;
  }
}

@media(max-width:900px) and (min-width:781px){
  .video-card{
    grid-template-columns:220px 1fr !important;
  }

  .video-thumb{
    width:220px !important;
    height:124px !important;
  }
}

/* Mobile: just a bit bigger than current, still compact */
@media(max-width:780px){
  .video-card{
    grid-template-columns:132px 1fr !important;
    gap:10px !important;
  }

  .video-thumb{
    width:132px !important;
    height:74px !important;
  }

  .video-title{
    font-size:14.4px !important;
  }
}

@media(max-width:390px){
  .video-card{
    grid-template-columns:122px 1fr !important;
  }

  .video-thumb{
    width:122px !important;
    height:69px !important;
  }
}

/* Title color system:
   English/Latin hook = red.
   Arabic/Darija rest = white.
*/
.video-title .hook{
  color:#ff1717 !important;
  text-transform:uppercase;
}

.video-title .title-rest{
  color:#ffffff !important;
  text-transform:none;
}

.video-title a:hover .title-rest{
  color:#ffffff !important;
}

.video-title a:hover .hook{
  color:#ff3434 !important;
}

/* Make title text easier to read on mobile */
@media(max-width:780px){
  .video-title .hook,
  .video-title .title-rest{
    text-shadow:0 1px 0 rgba(0,0,0,.8);
  }
}


/* ===== Sammy Morocco Media v10.2: Safe Polish Upgrade ===== */

/* Lightweight breaking/latest bar under menu */
.smm-breaking-bar{
  background:#060606;
  border-top:1px solid rgba(255,255,255,.06);
  border-bottom:1px solid rgba(255,255,255,.08);
}

.smm-breaking-inner{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:34px;
  overflow:hidden;
}

.smm-breaking-label{
  background:#ff1717;
  color:#fff;
  font-weight:1000;
  font-size:12px;
  padding:4px 8px;
  border-radius:2px;
  letter-spacing:.4px;
}

.smm-breaking-text{
  color:#d8d8d8;
  font-size:13px;
  font-weight:800;
  white-space:nowrap;
}

/* Slightly stronger feed polish */
.video-card{
  border-bottom:1px solid rgba(255,255,255,.075) !important;
}

.video-thumb{
  border-radius:3px;
  box-shadow:0 0 0 1px rgba(255,255,255,.05);
}

.video-title{
  letter-spacing:-.25px !important;
}

.video-title .hook{
  color:#ff1717 !important;
}

.video-title .title-rest{
  color:#fff !important;
}

/* Metadata cleanup */
.meta{
  opacity:.95;
}

.meta span{
  white-space:nowrap;
}

/* Desktop polish */
@media(min-width:901px){
  .site-wrap{
    max-width:1120px;
  }

  .video-card{
    grid-template-columns:285px 1fr !important;
    gap:18px !important;
    padding-bottom:16px !important;
    margin-bottom:16px !important;
  }

  .video-thumb{
    width:285px !important;
    height:160px !important;
  }

  .video-title{
    font-size:26px !important;
  }
}

/* Mobile polish: a little bigger thumbnails, still compact */
@media(max-width:780px){
  .smm-breaking-inner{
    min-height:30px;
  }

  .smm-breaking-label{
    font-size:10px;
    padding:3px 6px;
  }

  .smm-breaking-text{
    font-size:11px;
  }

  .video-card{
    grid-template-columns:138px 1fr !important;
    gap:10px !important;
    padding-bottom:12px !important;
    margin-bottom:12px !important;
  }

  .video-thumb{
    width:138px !important;
    height:78px !important;
  }

  .video-title{
    font-size:14.8px !important;
    line-height:1.13 !important;
  }

  .meta{
    font-size:10.2px !important;
    gap:6px !important;
  }
}

@media(max-width:390px){
  .video-card{
    grid-template-columns:126px 1fr !important;
  }

  .video-thumb{
    width:126px !important;
    height:71px !important;
  }

  .video-title{
    font-size:13.8px !important;
  }
}


/* ===== Sammy Morocco Media v10.3: Section Title Color Consistency ===== */

/* All section headers now follow the same style:
   red keyword first, white category word second.
*/
.section-title span{
  color:#ff1717 !important;
}

.section-title{
  color:#fff !important;
}

/* Keep section headers sharp and consistent */
.section-head{
  border-bottom:1px solid rgba(255,255,255,.08);
}

/* Slightly clean the Today's Videos spacing */
.section-head:first-of-type{
  margin-top:24px !important;
}


/* ===== Sammy Morocco Media v10.4: Safe WorldStar-Style Hero Feature ===== */
/* Safe version: big featured hero, no JavaScript, no slider crash risk. */

.hero-strip{
  display:none !important;
}

.smm-hero-feature{
  max-width:1120px;
  margin:0 auto 14px;
  padding:0 16px;
  background:#000;
}

.smm-hero-link{
  position:relative;
  display:block;
  height:430px;
  overflow:hidden;
  background:#111;
  border-bottom:1px solid rgba(255,255,255,.1);
}

.smm-hero-img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  display:block;
  transform:scale(1.02);
}

.smm-hero-gradient{
  position:absolute;
  inset:0;
  background:
    linear-gradient(to top, rgba(0,0,0,.96) 0%, rgba(0,0,0,.72) 34%, rgba(0,0,0,.12) 78%),
    linear-gradient(to right, rgba(0,0,0,.68), rgba(0,0,0,.05) 55%, rgba(0,0,0,.42));
  z-index:1;
}

.smm-hero-content{
  position:absolute;
  left:18px;
  right:18px;
  bottom:28px;
  z-index:2;
}

.smm-hero-label{
  font-size:17px;
  font-weight:1000;
  color:#fff;
  text-transform:uppercase;
  margin-bottom:10px;
  letter-spacing:.4px;
}

.smm-hero-title{
  margin:0;
  font-size:42px;
  line-height:1.02;
  font-weight:1000;
  text-transform:uppercase;
  letter-spacing:-.8px;
  text-shadow:0 3px 0 rgba(0,0,0,.9), 0 0 18px rgba(0,0,0,.85);
}

.smm-hero-title .hook{
  color:#ff1717;
}

.smm-hero-title .title-rest{
  color:#fff;
}

.smm-hero-meta{
  margin-top:13px;
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  color:#ddd;
  font-size:14px;
  font-weight:900;
  text-shadow:0 2px 0 rgba(0,0,0,.8);
}

.smm-hero-duration{
  background:#000;
  border:1px solid rgba(255,255,255,.25);
  padding:2px 7px;
  border-radius:3px;
}

/* subtle dot to visually suggest future slider */
.smm-hero-feature::after{
  content:"";
  display:block;
  width:9px;
  height:9px;
  border-radius:50%;
  background:#ff1717;
  margin:10px auto 2px;
}

@media(max-width:780px){
  .smm-hero-feature{
    padding:0;
    margin-bottom:12px;
  }

  .smm-hero-link{
    height:335px;
  }

  .smm-hero-content{
    left:15px;
    right:15px;
    bottom:24px;
  }

  .smm-hero-label{
    font-size:15px;
    margin-bottom:8px;
  }

  .smm-hero-title{
    font-size:30px;
    line-height:1.04;
  }

  .smm-hero-meta{
    font-size:12px;
    gap:9px;
  }
}

@media(max-width:430px){
  .smm-hero-link{
    height:305px;
  }

  .smm-hero-title{
    font-size:26px;
  }
}


/* ===== Sammy Morocco Media v10.5: Safe Animated Ticker Upgrade ===== */

.smm-breaking-inner{
  overflow:hidden;
}

.smm-breaking-text{
  display:block;
  flex:1;
  overflow:hidden;
  white-space:nowrap;
  position:relative;
}

.smm-ticker-track{
  display:inline-block;
  padding-left:100%;
  animation:smmTickerMove 22s linear infinite;
  color:#dcdcdc;
}

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

/* Pause ticker when user taps/holds on it */
.smm-breaking-text:hover .smm-ticker-track{
  animation-play-state:paused;
}

/* Make hero text slightly more readable on mobile */
@media(max-width:780px){
  .smm-hero-title{
    font-size:28px !important;
  }

  .smm-hero-link{
    height:320px !important;
  }

  .smm-ticker-track{
    animation-duration:19s;
  }
}

@media(max-width:430px){
  .smm-hero-link{
    height:295px !important;
  }

  .smm-hero-title{
    font-size:25px !important;
  }
}
