:root{
  --red:#E3313A; --red-dark:#B9232B; --ink:#2B2B30; --grey:#8F9096;
  --line:#E7E7EA; --blush:#FDEEEE; --bg:#F7F7F8; --white:#fff;
  --head:'Outfit',sans-serif; --body:'Hind Madurai',sans-serif;
}
body{font-family:var(--body);color:var(--ink);background:var(--bg);font-size:1rem}
h1,h2,h3,h4,h5,.brand-font{font-family:var(--head);letter-spacing:-.01em}
a{color:var(--red);text-decoration:none} a:hover{color:var(--red-dark)}
:focus-visible{outline:3px solid rgba(227,49,58,.45);outline-offset:2px}
.btn{font-family:var(--head);font-weight:600;border-radius:0;padding:.6rem 1.3rem}
.btn-kalvi{background:var(--red);color:#fff;border:2px solid var(--red)}
.btn-kalvi:hover{background:var(--red-dark);border-color:var(--red-dark);color:#fff}
.btn-ink{background:var(--ink);color:#fff;border:2px solid var(--ink)} .btn-ink:hover{background:#000;color:#fff}
.btn-line{border:2px solid var(--ink);color:var(--ink);background:transparent} .btn-line:hover{background:var(--ink);color:#fff}
.form-control,.form-select{border-radius:0;border:1.5px solid #D5D5DA;padding:.6rem .8rem}
.form-control:focus,.form-select:focus{border-color:var(--red);box-shadow:0 0 0 .2rem rgba(227,49,58,.15)}
.form-label{font-weight:600;font-size:.92rem}

/* ---------- Storefront header ---------- */
.topbar{background:var(--ink);color:#d9d9dc;font-size:.85rem;overflow:hidden}
/* vertical marquee: window shows 2 rows, text keeps moving upward */
.vmarquee{--tb-h:1.5rem;height:calc(var(--tb-h) * 2);overflow:hidden;
  -webkit-mask-image:linear-gradient(transparent,#000 22%,#000 78%,transparent);mask-image:linear-gradient(transparent,#000 22%,#000 78%,transparent)}
.vmarquee-track{list-style:none;margin:0;padding:0;animation:tbScroll var(--tb-time,10s) linear infinite;will-change:transform}
.vmarquee-track li{height:var(--tb-h);line-height:var(--tb-h);text-align:center;padding:0 1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vmarquee:hover .vmarquee-track{animation-play-state:paused}
.vmarquee.still{height:calc(var(--tb-h) * 1.5);-webkit-mask-image:none;mask-image:none}
.vmarquee.still .vmarquee-track{animation:none;padding-top:calc(var(--tb-h) * .25)}
@keyframes tbScroll{from{transform:translateY(0)}to{transform:translateY(calc(var(--tb-h) * var(--tb-n) * -1))}}
@media(prefers-reduced-motion:reduce){
  .vmarquee{height:auto;-webkit-mask-image:none;mask-image:none}
  .vmarquee-track{animation:none}
  .vmarquee-track li.dup{display:none}
}



.site-header{background:#fff;border-bottom:4px solid var(--red);position:sticky;top:0;z-index:50}
.site-header .logo{height:58px;width:auto;max-width:min(240px,55vw);object-fit:contain;display:block}
.site-header .brand{display:flex;align-items:center;gap:.75rem;color:var(--ink);text-decoration:none;min-width:0}
.site-header .brand-title{font-family:var(--head);font-weight:600;font-size:.95rem;line-height:1.25;max-width:260px;overflow-wrap:anywhere}
@media(max-width:575px){.site-header .brand-title{font-size:.85rem;max-width:180px}}
.search{flex:1;max-width:520px;display:flex}
.search input{border-right:0}
.search button{border-radius:0;background:var(--ink);color:#fff;border:0;padding:0 1.1rem}
.cart-link{position:relative;color:var(--ink);font-family:var(--head);font-weight:600;display:flex;align-items:center;gap:.4rem}
.cart-count{background:var(--red);color:#fff;font-size:.72rem;min-width:20px;height:20px;line-height:20px;text-align:center;border-radius:10px;padding:0 5px}

/* ---------- Store menu bar ---------- */
.store-menu{background:#fff;border-bottom:1px solid var(--line)}
.store-menu ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:0 .25rem}
.store-menu a{display:block;padding:.7rem 1rem;color:var(--ink);font-family:var(--head);font-weight:500;font-size:.95rem;border-bottom:3px solid transparent;margin-bottom:-1px}
.store-menu a:hover,.store-menu a:focus-visible{color:var(--red);border-bottom-color:var(--red)}
/* hamburger: hidden on desktop, used on mobile/tablet */
.menu-toggle{display:none;align-items:center;gap:.7rem;width:100%;background:none;border:0;padding:.75rem 0;font-family:var(--head);font-weight:600;font-size:1rem;color:var(--ink);text-align:left;cursor:pointer}
.menu-toggle .bars{display:inline-flex;flex-direction:column;gap:4px;width:24px}
.menu-toggle .bars i{display:block;height:3px;background:var(--ink);border-radius:2px;transition:transform .25s,opacity .2s}
.menu-toggle:hover .bars i,.menu-toggle:focus-visible .bars i{background:var(--red)}
.menu-toggle:focus-visible{outline:2px solid var(--red);outline-offset:2px}
.store-menu.open .bars i:nth-child(1){transform:translateY(7px) rotate(45deg)}
.store-menu.open .bars i:nth-child(2){opacity:0}
.store-menu.open .bars i:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
@media(max-width:767px){
  .menu-toggle{display:flex}
  .store-menu ul{display:none;flex-direction:column;flex-wrap:nowrap;gap:0;border-top:1px solid var(--line);margin:0 -12px}
  .store-menu.open ul{display:flex}
  .store-menu li+li{border-top:1px solid var(--line)}
  .store-menu a{padding:.8rem 1rem;font-size:1rem;border-bottom:0;margin-bottom:0;border-left:4px solid transparent}
  .store-menu a:hover,.store-menu a:focus-visible{border-left-color:var(--red);background:var(--blush)}
}

/* ---------- Homepage slider ---------- */
.store-slider{background:#F1F1F3}
.store-slider .carousel-item{aspect-ratio:16/6;max-height:520px;background:#F1F1F3}
.store-slider .carousel-item img{width:100%;height:100%;object-fit:cover;display:block}
.store-slider .carousel-indicators [data-bs-target]{width:10px;height:10px;border-radius:50%;border:0;background:#fff;opacity:.6;box-shadow:0 0 0 1px rgba(0,0,0,.35)}
.store-slider .carousel-indicators .active{background:var(--red);opacity:1}
.store-slider .carousel-control-prev-icon,.store-slider .carousel-control-next-icon{background-color:rgba(43,43,48,.6);background-size:55%;width:2.6rem;height:2.6rem}
@media(max-width:768px){.store-slider .carousel-item{aspect-ratio:16/9}}

/* ---------- Hero ---------- */
.hero{background:var(--ink);color:#fff;position:relative;overflow:hidden;padding:3.5rem 0}
.hero::after{content:"";position:absolute;right:-6%;top:0;bottom:0;width:38%;background:var(--red);clip-path:polygon(28% 0,100% 0,100% 100%,0 100%)}
.hero::before{content:"";position:absolute;right:30%;top:0;bottom:0;width:6%;background:#fff;opacity:.9;clip-path:polygon(60% 0,100% 0,40% 100%,0 100%)}
.hero .inner{position:relative;z-index:2;max-width:620px}
.hero h1{font-weight:800;font-size:clamp(2rem,5vw,3.4rem);line-height:1.05}
.hero .ta{font-size:1.15rem;color:#f5b7ba;margin-top:.8rem}
@media(max-width:768px){.hero::after,.hero::before{display:none}}

/* ---------- Product cards ---------- */
.chip{display:inline-block;padding:.35rem 1rem;border:1.5px solid var(--line);background:#fff;color:var(--ink);font-family:var(--head);font-weight:500;font-size:.92rem;margin:0 .35rem .5rem 0}
.chip:hover{border-color:var(--red);color:var(--red)} .chip.active{background:var(--red);border-color:var(--red);color:#fff}
.p-card{background:#fff;border:1px solid var(--line);position:relative;height:100%;display:flex;flex-direction:column;transition:border-color .2s,transform .2s}
.p-card:hover{border-color:var(--red);transform:translateY(-3px)}
.p-card .thumb{aspect-ratio:1/1;background:#F1F1F3;overflow:hidden}
.p-card .thumb img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.p-card:hover .thumb img{transform:scale(1.05)}
.p-card .body{padding:1rem 1.1rem 1.2rem;display:flex;flex-direction:column;flex:1}
.p-card .cat{color:var(--grey);font-size:.82rem}
.p-card h3{font-size:1.08rem;font-weight:600;margin:.15rem 0 .6rem;line-height:1.3;color:var(--ink)}
.p-card .prices{margin-top:auto;display:flex;align-items:baseline;gap:.55rem;flex-wrap:wrap}
.now{font-family:var(--head);font-weight:700;font-size:1.3rem;color:var(--ink)}
.was{color:var(--grey);text-decoration:line-through;font-size:.92rem}
.off-badge{position:absolute;top:0;left:0;z-index:2;background:var(--red);color:#fff;font-family:var(--head);font-weight:700;font-size:.82rem;padding:.3rem .8rem .3rem .6rem;clip-path:polygon(0 0,100% 0,88% 100%,0 100%)}
.sold{position:absolute;top:.6rem;right:.6rem;background:var(--ink);color:#fff;font-size:.75rem;padding:.2rem .6rem;z-index:2}
.p-card .view{margin-top:.9rem;font-family:var(--head);font-weight:600;font-size:.9rem;color:var(--red)}

/* ---------- Product page ---------- */
.gallery-main{background:#fff;border:1px solid var(--line);aspect-ratio:1/1;display:flex}
.gallery-main img{width:100%;height:100%;object-fit:contain}
.gallery-thumbs{display:flex;gap:.6rem;margin-top:.6rem;flex-wrap:wrap}
.gallery-thumbs img{width:76px;height:76px;object-fit:cover;border:2px solid var(--line);cursor:pointer;background:#fff}
.gallery-thumbs img.on,.gallery-thumbs img:hover{border-color:var(--red)}
.pid-tag{display:inline-block;background:var(--blush);color:var(--red-dark);font-family:var(--head);font-weight:600;font-size:.85rem;padding:.2rem .7rem}
.big-price{font-family:var(--head);font-weight:800;font-size:2.3rem}
.save-tag{background:var(--red);color:#fff;font-family:var(--head);font-weight:600;padding:.15rem .6rem;font-size:.9rem}
.panel{background:#fff;border:1px solid var(--line);padding:1.5rem}
.qty{width:90px}

/* ---------- Footer ---------- */
.site-footer{background:var(--ink);color:#bdbdc2;margin-top:4rem;padding:2.5rem 0 1.2rem;border-top:4px solid var(--red)}
.site-footer img{height:52px;max-width:100%;object-fit:contain;background:#fff;padding:4px 8px}
.site-footer a{color:#fff}
.footer-title{font-size:1rem;font-weight:600;color:#fff;text-transform:uppercase;letter-spacing:.06em;margin-bottom:.8rem}
/* 5 items per column: fills the first column top to bottom, then the second */
.footer-menu{list-style:none;margin:0;padding:0;display:grid;grid-auto-flow:column;grid-template-rows:repeat(5,auto);grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem 2rem}
.footer-menu a{color:#e6e6e9}
.footer-menu a:hover{color:#f5b7ba}

/* ---------- Admin ---------- */
.admin-shell{display:grid;grid-template-columns:250px 1fr;min-height:100vh}
.side{background:var(--ink);color:#fff;padding:0;display:flex;flex-direction:column}
.side .logo-box{background:#fff;padding:.8rem 1rem;border-bottom:4px solid var(--red)}
.side .logo-box img{width:100%;max-height:70px;object-fit:contain}
.side nav{padding:1rem 0;flex:1}
.side nav a{display:block;color:#d0d0d5;padding:.75rem 1.4rem;font-family:var(--head);font-weight:500;border-left:4px solid transparent}
.side nav a:hover{background:rgba(255,255,255,.06);color:#fff}
.side nav a.active{background:rgba(227,49,58,.15);color:#fff;border-left-color:var(--red)}
.admin-main{padding:1.8rem 2rem;min-width:0}
.stat{background:#fff;border:1px solid var(--line);padding:1.3rem 1.4rem;border-left:5px solid var(--ink);height:100%}
.stat.red{border-left-color:var(--red)} .stat.red .num{color:var(--red)}
.stat .num{font-family:var(--head);font-weight:800;font-size:2.6rem;line-height:1}
.stat .lbl{color:var(--grey);margin-top:.3rem}
.table thead th{background:var(--ink);color:#fff;font-family:var(--head);font-weight:500;border:0}
.table td{vertical-align:middle}
.thumb-sm{width:52px;height:52px;object-fit:cover;border:1px solid var(--line)}
.preview-wrap{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:.8rem}
.pv{position:relative;width:110px;height:110px;border:2px solid var(--line);background:#fff}
.pv img{width:100%;height:100%;object-fit:cover}
.pv.main{border-color:var(--red)}
.pv .tag{position:absolute;left:0;bottom:0;background:var(--red);color:#fff;font-size:.7rem;padding:.1rem .5rem}
.pv .x{position:absolute;top:-8px;right:-8px;width:24px;height:24px;border-radius:50%;border:0;background:var(--ink);color:#fff;line-height:1;cursor:pointer}
.pv .x:hover{background:var(--red)}
.pv label.del{position:absolute;inset:auto 0 0 0;background:rgba(43,43,48,.85);color:#fff;font-size:.72rem;text-align:center;padding:.15rem;cursor:pointer;margin:0}
.logo-preview{background:#fff;border:1px dashed #C9C9CF;padding:1rem;display:inline-block;max-width:100%}
.logo-preview img{max-height:90px;max-width:100%;display:block;object-fit:contain}
.header-mock{background:#fff;border-bottom:4px solid var(--red);border:1px solid var(--line);border-bottom:4px solid var(--red);padding:.5rem 1rem;display:flex;align-items:center;gap:1rem;justify-content:space-between}
.header-mock .logo{height:58px;width:auto;max-width:min(240px,55vw);object-fit:contain}
#topbarPreview .topbar{border:1px solid #000}
.menu-row{display:grid;grid-template-columns:2rem minmax(0,1fr) minmax(0,1.4fr) auto;gap:.6rem;align-items:center;margin-bottom:.7rem}
.menu-row .n{font-family:var(--head);font-weight:700;color:var(--grey);text-align:center}
.menu-row .rm{width:40px;height:40px;border:1.5px solid #D5D5DA;background:#fff;color:var(--ink);font-size:1.3rem;line-height:1;cursor:pointer}
.menu-row .rm:hover{background:var(--red);border-color:var(--red);color:#fff}
.menu-head{display:grid;grid-template-columns:2rem minmax(0,1fr) minmax(0,1.4fr) 40px;gap:.6rem;font-weight:600;font-size:.92rem;margin-bottom:.4rem}
.btn-add{display:inline-flex;align-items:center;gap:.5rem;border:2px dashed var(--red);color:var(--red);background:#fff;font-family:var(--head);font-weight:600;padding:.5rem 1.1rem}
.btn-add .plus{width:24px;height:24px;border-radius:50%;background:var(--red);color:#fff;display:grid;place-items:center;font-size:1.2rem;line-height:1}
.btn-add:hover:not(:disabled){background:var(--blush)} .btn-add:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:768px){
  .menu-head{display:none}
  .menu-row{grid-template-columns:1.6rem 1fr 40px;padding:.7rem;border:1px solid var(--line);background:#fff}
  .menu-row .n{grid-row:1 / span 2}
  .menu-row .u{grid-column:2}
  .menu-row .rm{grid-column:3;grid-row:1 / span 2}
}
.slide-prev{aspect-ratio:16/6;background:#F1F1F3;border:1px dashed #C9C9CF;display:grid;place-items:center;color:var(--grey);font-size:.9rem;overflow:hidden}
.slide-prev img{width:100%;height:100%;object-fit:cover;display:block}
.login-wrap{min-height:100vh;display:grid;place-items:center;background:var(--ink);padding:1rem}
.login-box{background:#fff;width:100%;max-width:400px;border-top:5px solid var(--red)}
@media(max-width:992px){
  .admin-shell{grid-template-columns:1fr}
  .side{flex-direction:row;flex-wrap:wrap;align-items:center}
  .side .logo-box{width:170px;border-bottom:0}
  .side nav{display:flex;padding:0;flex-wrap:wrap}
  .side nav a{padding:.7rem 1rem;border-left:0;border-bottom:4px solid transparent}
  .side nav a.active{border-bottom-color:var(--red)}
  .admin-main{padding:1.2rem}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
/* ---------- Custom pages (Add page) ---------- */
.page-hero{background:#5555b7;color:#fff;position:relative;overflow:hidden;padding:2.6rem 0}
.page-hero::after{content:"";position:absolute;right:-6%;top:0;bottom:0;width:30%;background:var(--red);clip-path:polygon(28% 0,100% 0,100% 100%,0 100%)}
.page-hero::before{content:"";position:absolute;right:24%;top:0;bottom:0;width:5%;background:#fff;opacity:.9;clip-path:polygon(60% 0,100% 0,40% 100%,0 100%)}
.page-hero .inner{position:relative;z-index:2;max-width:760px}
.page-hero h1{font-weight:800;font-size:clamp(1.8rem,4.5vw,2.8rem);line-height:1.1;margin:0}
.page-hero nav,.page-hero nav a{color:#e9e6ff} .page-hero nav a:hover{color:#fff}
@media(max-width:768px){.page-hero::after,.page-hero::before{display:none}}
.page-main{padding-top:2rem;padding-bottom:1rem}
.page-card{background:#fff;border:1px solid var(--line);border-top:4px solid var(--red);min-width:0}
/* two-column page template: content left, 3 widgets right */
.page-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:1.5rem;align-items:start}
.page-layout.no-aside{grid-template-columns:minmax(0,900px);justify-content:center}
.page-aside{display:flex;flex-direction:column;gap:1.25rem;min-width:0}
.widget-box{background:#fff;border:1px solid var(--line);border-top:4px solid var(--ink);padding:1.2rem;overflow-wrap:anywhere;min-width:0}
.widget-box img{max-width:100%;height:auto}
.widget-error{color:#842029;background:#f8d7da;padding:.6rem .8rem;font-size:.9rem}
@media(max-width:991px){.page-layout{grid-template-columns:minmax(0,1fr)}}
.page-cover{background:#F1F1F3}
.page-cover img{width:100%;max-height:420px;object-fit:cover;display:block}
.page-content{padding:2rem clamp(1.2rem,4vw,2.6rem);font-size:1.05rem;line-height:1.75;overflow-wrap:anywhere}
.page-content>:first-child{margin-top:0} .page-content>:last-child{margin-bottom:0}
.page-content h1,.page-content h2,.page-content h3,.page-content h4{font-weight:700;margin:1.8rem 0 .7rem;line-height:1.25}
.page-content h2{font-size:1.6rem;padding-bottom:.35rem;border-bottom:2px solid var(--blush)}
.page-content h3{font-size:1.3rem} .page-content h4{font-size:1.1rem}
.page-content p{margin:0 0 1rem}
.page-content ul,.page-content ol{margin:0 0 1rem;padding-left:1.5rem}
.page-content li{margin-bottom:.3rem}
.page-content a{text-decoration:underline;text-underline-offset:2px}
.page-content blockquote{margin:1.2rem 0;padding:.8rem 1.2rem;background:var(--blush);border-left:4px solid var(--red);color:#4a4a50}
.page-content pre{background:var(--ink);color:#fff;padding:1rem;overflow:auto}
.page-content hr{border-color:var(--line);margin:1.6rem 0;opacity:1}
.page-content .ql-align-center{text-align:center} .page-content .ql-align-right{text-align:right} .page-content .ql-align-justify{text-align:justify}
.page-content .ql-indent-1{padding-left:3rem} .page-content .ql-indent-2{padding-left:6rem}
.page-foot{border-top:1px solid var(--line);padding:.9rem clamp(1.2rem,4vw,2.6rem);color:var(--grey);font-size:.85rem}

/* admin: Add page form */
.url-preview{background:var(--blush);border-left:4px solid var(--red);padding:.55rem .9rem;word-break:break-all}
.page-img-prev{width:100%;max-width:420px;aspect-ratio:16/8;background:#F1F1F3;border:1px dashed #C9C9CF;display:grid;place-items:center;color:var(--grey);font-size:.9rem;overflow:hidden}
.page-img-prev img{width:100%;height:100%;object-fit:cover;display:block}
#pageForm .ql-toolbar.ql-snow{border:1.5px solid #D5D5DA;background:#fafafa;border-radius:0}
#pageForm .ql-container.ql-snow{border:1.5px solid #D5D5DA;border-top:0;border-radius:0;font-family:var(--body);font-size:1rem}
#pageForm .ql-editor{min-height:280px;line-height:1.65}
#pageForm .ql-snow .ql-stroke{stroke:var(--ink)} #pageForm .ql-snow .ql-fill{fill:var(--ink)}
#pageForm .ql-snow.ql-toolbar button:hover .ql-stroke,#pageForm .ql-snow.ql-toolbar button.ql-active .ql-stroke,#pageForm .ql-snow .ql-picker-label:hover .ql-stroke{stroke:var(--red)}
#pageForm .ql-snow.ql-toolbar button:hover .ql-fill,#pageForm .ql-snow.ql-toolbar button.ql-active .ql-fill{fill:var(--red)}
#pageForm .ql-snow.ql-toolbar button:hover,#pageForm .ql-snow.ql-toolbar button.ql-active,#pageForm .ql-snow .ql-picker-label:hover,#pageForm .ql-snow .ql-picker-label.ql-active{color:var(--red)}
#pageForm .ql-container.ql-snow:focus-within{border-color:var(--red)}

/* ---- Blog cards (store front when only Blog is ticked in Admin > Settings) ---- */
.b-card{background:#fff;border:1px solid var(--line);border-top:4px solid var(--red);position:relative;height:100%;display:flex;flex-direction:column;transition:border-color .2s,transform .2s}
.b-card:hover{border-color:var(--red);transform:translateY(-3px)}
.b-card .thumb{aspect-ratio:16/10;background:#F1F1F3;overflow:hidden}
.b-card .thumb img{width:100%;height:100%;object-fit:cover;display:block}
.b-card .body{padding:1rem 1.1rem 1.2rem;display:flex;flex-direction:column;flex:1}
.b-card .date{color:var(--grey);font-size:.82rem}
.b-card h2{font-size:1.2rem;font-weight:700;margin:.2rem 0 .5rem;line-height:1.3}
.b-card h2 a{color:var(--ink)}
.b-card p{color:#4a4a50;font-size:.95rem;line-height:1.55;margin:0 0 .8rem;overflow-wrap:anywhere}
.b-card .more{margin-top:auto;color:var(--red);font-family:var(--head);font-weight:600;font-size:.92rem}


/* ---- Blog home: 75% = 3 blog cards per row, 25% = widgets ---- */
.blog-layout{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,1fr);gap:1.5rem;align-items:start}
.blog-layout.no-aside{grid-template-columns:minmax(0,1fr)}
.blog-main{min-width:0}
.blog-aside{display:flex;flex-direction:column;gap:1.25rem;min-width:0}
@media(max-width:991px){.blog-layout{grid-template-columns:minmax(0,1fr)}}

/* ---- Page widget (above content), Mp4 and Mp3 blocks ---- */
.page-widget{background:#fff;border:1px solid var(--line);border-top:4px solid var(--ink);padding:1.2rem;min-width:0;overflow-wrap:anywhere}
.page-widget img{max-width:100%;height:auto}
.media-block{background:#fff;border:1px solid var(--line);border-top:4px solid var(--red);padding:1rem}
.media-video{display:block;width:100%;max-height:560px;background:#000}
.audio-list{display:flex;flex-direction:column;gap:1rem}
.audio-card{background:#fff;border-radius:4px;box-shadow:0 2px 10px rgba(0,0,0,.15);padding:1.1rem 1.1rem 1rem}
.audio-head{display:flex;justify-content:space-between;align-items:center;gap:.8rem;margin-bottom:.7rem}
.audio-title{color:#555;font-size:1.02rem;overflow-wrap:anywhere}
.audio-dl{flex:none;display:inline-flex;align-items:center;gap:.4rem;background:#0b93e6;color:#fff;font-weight:700;padding:.45rem .9rem;border-radius:4px;font-size:.95rem}
.audio-dl:hover{background:#0877bd;color:#fff}
.audio-card audio{display:block;width:100%}

/* ---- Admin: Add page media ---- */
.media-toggle{display:inline-flex;border:2px solid var(--ink)}
.media-toggle input{position:absolute;opacity:0;pointer-events:none}
.media-toggle label{margin:0;padding:.5rem 1.6rem;font-family:var(--head);font-weight:700;cursor:pointer;background:#fff;color:var(--ink)}
.media-toggle input:checked+label{background:var(--red);color:#fff}
.media-toggle input:focus-visible+label{outline:3px solid rgba(227,49,58,.45);outline-offset:2px}
.media-prev{display:block;max-width:420px;width:100%;background:#000}
.audio-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr) 40px;gap:.6rem;align-items:start;margin-bottom:.7rem}
.audio-row .rm{width:40px;height:40px;border:1.5px solid #D5D5DA;background:#fff;color:var(--ink);font-size:1.3rem;line-height:1;cursor:pointer}
.audio-row .rm:hover{background:var(--red);border-color:var(--red);color:#fff}
@media(max-width:768px){.audio-row{grid-template-columns:minmax(0,1fr) 40px}.audio-row .af{grid-column:1 / span 2;grid-row:2}}
