/* PHANTASO CMS — Widget component library */

/* Shared */
.pw-thumb{display:block;width:100%;height:100%;object-fit:cover}
.pw-title{display:block;font-weight:600;color:#0f172a;line-height:1.35;text-decoration:none;transition:color .15s}
.pw-title:hover{color:var(--phantaso-link,#2563eb)}
.pw-excerpt{margin:.35rem 0 0;font-size:.8125rem;color:#64748b;line-height:1.45}
.pw-meta{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem .5rem;font-size:.6875rem;color:#94a3b8;text-transform:uppercase;letter-spacing:.03em}
.pw-meta__cat{color:var(--phantaso-primary,#2563eb);font-weight:700}
.pw-card{display:block;text-decoration:none;color:inherit}

.phantaso-widget-list{list-style:none;margin:0;padding:0}
.phantaso-widget-list__item{display:flex;gap:.75rem;align-items:flex-start;padding:.625rem 0;border-bottom:1px solid #f1f5f9}
.phantaso-widget-list__item:last-child{border-bottom:0;padding-bottom:0}
.phantaso-widget-list__thumb{flex-shrink:0;width:4rem;height:3rem;border-radius:.375rem;overflow:hidden;background:#f1f5f9}
.phantaso-widget-list__thumb img{width:100%;height:100%;object-fit:cover}
.phantaso-widget-list__title{font-size:.8125rem;font-weight:600;line-height:1.35;color:#0f172a;text-decoration:none}
.phantaso-widget-list__title:hover{color:var(--phantaso-link,#2563eb)}

/* Manşet / Headline */
.phantaso-headline{display:flex;flex-direction:column;gap:.75rem}
.phantaso-headline--1 .pw-headline-hero{position:relative;border-radius:.875rem;overflow:hidden;background:#0f172a;min-height:220px}
.phantaso-headline--1 .pw-headline-hero .pw-thumb{min-height:220px;max-height:360px;opacity:.92}
.phantaso-headline--1 .pw-headline-hero__body{position:absolute;inset:auto 0 0 0;padding:1.25rem;background:linear-gradient(transparent,rgba(0,0,0,.85));color:#fff}
.phantaso-headline--1 .pw-headline-hero__body .pw-title{color:#fff;font-size:1.25rem}
.phantaso-headline--1 .pw-headline-hero__body .pw-meta{color:rgba(255,255,255,.75)}
.phantaso-headline--1 .pw-headline-list{margin:0;padding:0;list-style:none}
.phantaso-headline--1 .pw-headline-list li{padding:.55rem 0;border-bottom:1px solid #f1f5f9}
.phantaso-headline--1 .pw-headline-list li:last-child{border-bottom:0}

.phantaso-headline--2 .pw-headline-row{display:flex;gap:.75rem;align-items:flex-start;padding:.5rem 0;border-bottom:1px solid #f1f5f9}
.phantaso-headline--2 .pw-headline-row:last-child{border-bottom:0}
.phantaso-headline--2 .pw-headline-row__thumb{flex-shrink:0;width:5rem;height:3.75rem;border-radius:.5rem;overflow:hidden;background:#f1f5f9}

.phantaso-headline--3{display:grid;grid-template-columns:repeat(2,1fr);gap:.625rem}
@media(min-width:640px){.phantaso-headline--3{grid-template-columns:repeat(3,1fr)}}
.phantaso-headline--3 .pw-headline-overlay{position:relative;border-radius:.625rem;overflow:hidden;min-height:120px;background:#1e293b}
.phantaso-headline--3 .pw-headline-overlay .pw-thumb{min-height:120px;opacity:.85}
.phantaso-headline--3 .pw-headline-overlay__body{position:absolute;inset:auto 0 0 0;padding:.625rem .75rem;background:linear-gradient(transparent,rgba(0,0,0,.8))}
.phantaso-headline--3 .pw-headline-overlay .pw-title{color:#fff;font-size:.8125rem}

.phantaso-headline--4{display:grid;grid-template-columns:1fr;gap:.75rem}
@media(min-width:768px){.phantaso-headline--4{grid-template-columns:1.4fr 1fr}}
.phantaso-headline--4 .pw-headline-split-main{position:relative;border-radius:.875rem;overflow:hidden;min-height:240px;background:#0f172a}
.phantaso-headline--4 .pw-headline-split-main .pw-thumb{min-height:240px;opacity:.9}
.phantaso-headline--4 .pw-headline-split-main__body{position:absolute;inset:auto 0 0 0;padding:1rem;background:linear-gradient(transparent,rgba(0,0,0,.85));color:#fff}
.phantaso-headline--4 .pw-headline-split-main .pw-title{color:#fff;font-size:1.125rem}
.phantaso-headline--4 .pw-headline-stack{display:flex;flex-direction:column;gap:.5rem}
.phantaso-headline--4 .pw-headline-stack__item{display:flex;gap:.625rem;align-items:center;padding:.5rem;background:#f8fafc;border-radius:.5rem;border:1px solid #e2e8f0}
.phantaso-headline--4 .pw-headline-stack__thumb{width:3.5rem;height:3.5rem;border-radius:.375rem;overflow:hidden;flex-shrink:0}

.phantaso-headline--5 .pw-headline-scroll{display:flex;gap:.75rem;overflow-x:auto;padding-bottom:.35rem;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}
.phantaso-headline--5 .pw-headline-scroll__item{flex:0 0 min(78%,240px);scroll-snap-align:start;border-radius:.75rem;overflow:hidden;border:1px solid #e2e8f0;background:#fff}
.phantaso-headline--5 .pw-headline-scroll__thumb{height:140px;overflow:hidden;background:#f1f5f9}
.phantaso-headline--5 .pw-headline-scroll__body{padding:.75rem}

.phantaso-headline--6{display:grid;grid-template-columns:1fr 1fr;gap:.625rem}
.phantaso-headline--6 .pw-headline-mag:first-child{grid-column:1/-1}
.phantaso-headline--6 .pw-headline-mag{position:relative;border-radius:.625rem;overflow:hidden;border:1px solid #e2e8f0;background:#fff}
.phantaso-headline--6 .pw-headline-mag:first-child .pw-headline-mag__thumb{height:200px}
.phantaso-headline--6 .pw-headline-mag__thumb{height:100px;overflow:hidden;background:#f1f5f9}
.phantaso-headline--6 .pw-headline-mag__body{padding:.625rem .75rem}
.phantaso-headline--6 .pw-headline-mag:first-child .pw-title{font-size:1.0625rem}

/* Post list styles */
.phantaso-post-list-style{display:flex;flex-direction:column}
.phantaso-post-list-style--1 .pw-pl-item{display:flex;gap:.75rem;padding:.625rem 0;border-bottom:1px solid #f1f5f9}
.phantaso-post-list-style--1 .pw-pl-item:last-child{border-bottom:0}
.phantaso-post-list-style--1 .pw-pl-thumb{width:4.5rem;height:3.25rem;border-radius:.375rem;overflow:hidden;flex-shrink:0;background:#f1f5f9}

.phantaso-post-list-style--2{margin:0;padding:0;list-style:none}
.phantaso-post-list-style--2 .pw-pl-bullet{position:relative;padding:.4rem 0 .4rem 1rem;border-bottom:1px solid #f8fafc;font-size:.8125rem}
.phantaso-post-list-style--2 .pw-pl-bullet::before{content:"";position:absolute;left:0;top:.85rem;width:6px;height:6px;border-radius:50%;background:var(--phantaso-primary,#2563eb)}

.phantaso-post-list-style--3 .pw-pl-row{display:block;padding:.65rem 0;border-bottom:1px solid #e2e8f0;text-decoration:none}
.phantaso-post-list-style--3 .pw-pl-row:last-child{border-bottom:0}
.phantaso-post-list-style--3 .pw-pl-row .pw-title{font-size:.875rem}

.phantaso-post-list-style--4 .pw-pl-ranked{display:flex;gap:.75rem;align-items:flex-start;padding:.55rem 0;border-bottom:1px solid #f1f5f9}
.phantaso-post-list-style--4 .pw-pl-ranked__num{font-size:1.375rem;font-weight:800;line-height:1;color:#cbd5e1;min-width:1.75rem}
.phantaso-post-list-style--4 .pw-pl-ranked:first-child .pw-pl-ranked__num{color:var(--phantaso-primary,#2563eb)}

.phantaso-post-list-style--5 .pw-pl-compact{display:block;padding:.45rem 0;font-size:.8125rem;border-bottom:1px dashed #f1f5f9;color:#334155;text-decoration:none}
.phantaso-post-list-style--5 .pw-pl-compact:hover{color:var(--phantaso-link,#2563eb)}

.phantaso-post-list-style--6 .pw-pl-card{display:block;padding:.75rem;margin-bottom:.5rem;border:1px solid #e2e8f0;border-radius:.625rem;background:#fff;transition:box-shadow .15s,border-color .15s;text-decoration:none}
.phantaso-post-list-style--6 .pw-pl-card:hover{box-shadow:0 4px 12px rgba(0,0,0,.06);border-color:#cbd5e1}
.phantaso-post-list-style--6 .pw-pl-card .pw-title{font-size:.875rem}

.phantaso-post-list-style--7 .pw-pl-date{display:flex;flex-direction:column;gap:.15rem;padding:.55rem 0;border-bottom:1px solid #f1f5f9}
.phantaso-post-list-style--7 .pw-pl-date time{font-size:.6875rem;color:#94a3b8;font-weight:600}
.phantaso-post-list-style--7 .pw-pl-date .pw-title{font-size:.8125rem}

/* Featured / ranked / popular */
.pw-featured{position:relative;border-radius:.875rem;overflow:hidden;background:#0f172a}
.pw-featured__media{aspect-ratio:16/10;overflow:hidden}
.pw-featured__media .pw-thumb{height:100%;opacity:.92}
.pw-featured__body{padding:1rem;background:linear-gradient(180deg,transparent,#0f172a);margin-top:-3rem;position:relative;color:#fff}
.pw-featured__body .pw-title{color:#fff;font-size:1.0625rem}
.pw-featured__body .pw-meta{color:rgba(255,255,255,.7)}

.pw-ranked{display:flex;gap:.75rem;align-items:flex-start;padding:.625rem 0;border-bottom:1px solid #f1f5f9}
.pw-ranked:last-child{border-bottom:0}
.pw-ranked__num{font-size:1.5rem;font-weight:800;color:#e2e8f0;line-height:1;min-width:2rem}
.pw-ranked--1 .pw-ranked__num{color:#2563eb}
.pw-ranked--2 .pw-ranked__num{color:#64748b}
.pw-ranked--3 .pw-ranked__num{color:#94a3b8}
.pw-ranked__body{flex:1;min-width:0}
.pw-ranked__body .pw-title{font-size:.8125rem}

/* Carousel */
.phantaso-carousel{display:flex;gap:1rem;overflow-x:auto;padding-bottom:.5rem;scroll-snap-type:x mandatory}
.phantaso-carousel__item{flex:0 0 min(72%,220px);scroll-snap-align:start;border-radius:.75rem;overflow:hidden;border:1px solid #e2e8f0;background:#fff;transition:transform .15s}
.phantaso-carousel__item:hover{transform:translateY(-2px);box-shadow:0 6px 16px rgba(0,0,0,.08)}
.phantaso-carousel__thumb{height:130px;overflow:hidden;background:#f1f5f9}
.phantaso-carousel__body{padding:.75rem}
.phantaso-carousel__body .pw-title{font-size:.8125rem}

/* Breaking & ticker */
.phantaso-breaking{display:flex;align-items:center;gap:.75rem;background:linear-gradient(90deg,#b91c1c,#dc2626);color:#fff;padding:.55rem .875rem;border-radius:.5rem;overflow:hidden}
.phantaso-breaking__label{font-size:.6875rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap;background:rgba(0,0,0,.15);padding:.25rem .5rem;border-radius:.25rem}
.phantaso-breaking__viewport{flex:1;overflow:hidden;min-width:0}
.phantaso-breaking__track{display:inline-block;white-space:nowrap}
.phantaso-breaking__track a{color:#fff;font-size:.8125rem;font-weight:500;margin-right:1.5rem;text-decoration:none}
.phantaso-breaking__track a:hover{text-decoration:underline}

.phantaso-news-ticker{background:#0f172a;color:#fff;border-radius:.5rem;padding:.5rem .75rem;font-size:.8125rem;overflow:hidden}
.phantaso-news-ticker__track{display:inline-flex;gap:2rem;white-space:nowrap}
.phantaso-news-ticker__item{color:#fff;font-weight:500;text-decoration:none}
.phantaso-news-ticker__item:hover{color:#93c5fd}

/* Tabs */
.phantaso-tabbed-posts__nav{display:flex;gap:.35rem;flex-wrap:wrap;margin-bottom:.875rem;border-bottom:1px solid #e2e8f0;padding-bottom:.5rem}
.phantaso-tabbed-posts__tab{font-size:.75rem;font-weight:600;padding:.35rem .75rem;border:1px solid #e2e8f0;border-radius:9999px;background:#fff;color:#475569;cursor:pointer;transition:all .15s}
.phantaso-tabbed-posts__tab.is-active{background:var(--phantaso-primary,#2563eb);border-color:var(--phantaso-primary,#2563eb);color:#fff}
.phantaso-tabbed-posts__panel{display:none}
.phantaso-tabbed-posts__panel.is-active{display:block}
.phantaso-tabbed-posts__row{display:flex;gap:.625rem;padding:.5rem 0;border-bottom:1px solid #f8fafc}
.phantaso-tabbed-posts__row:last-child{border-bottom:0}
.phantaso-tabbed-posts__dot{width:6px;height:6px;border-radius:50%;background:var(--phantaso-primary,#2563eb);margin-top:.45rem;flex-shrink:0}

/* Category boxes */
.phantaso-category-boxes{display:grid;grid-template-columns:repeat(2,1fr);gap:.5rem}
.phantaso-category-boxes__item{display:flex;align-items:center;justify-content:center;min-height:3rem;padding:.65rem .5rem;background:linear-gradient(135deg,#f8fafc,#f1f5f9);border:1px solid #e2e8f0;border-radius:.5rem;font-size:.8125rem;font-weight:700;text-align:center;color:#0f172a;text-decoration:none;transition:all .15s}
.phantaso-category-boxes__item:hover{background:var(--phantaso-primary,#2563eb);border-color:var(--phantaso-primary,#2563eb);color:#fff;transform:translateY(-1px)}

/* Masonry */
.phantaso-masonry{display:grid;grid-template-columns:repeat(2,1fr);gap:.75rem}
.phantaso-masonry__item{border:1px solid #e2e8f0;border-radius:.625rem;overflow:hidden;background:#fff;transition:box-shadow .15s}
.phantaso-masonry__item:hover{box-shadow:0 4px 14px rgba(0,0,0,.07)}
.phantaso-masonry__thumb{height:5.5rem;overflow:hidden;background:#f1f5f9}
.phantaso-masonry__body{padding:.625rem .75rem}
.phantaso-masonry__body .pw-title{font-size:.75rem}

/* Story strip */
.phantaso-story{display:flex;gap:.875rem;overflow-x:auto;padding:.25rem 0 .5rem}
.phantaso-story__item{flex:0 0 4.5rem;text-align:center;text-decoration:none}
.phantaso-story__ring{padding:3px;border-radius:50%;background:linear-gradient(135deg,#3b82f6,#8b5cf6)}
.phantaso-story__thumb{display:block;width:3.25rem;height:3.25rem;border-radius:50%;object-fit:cover;border:2px solid #fff;margin:0 auto}
.phantaso-story__label{display:block;font-size:.625rem;margin-top:.35rem;color:#64748b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Horizontal scroll widget */
.phantaso-hscroll{display:flex;gap:.75rem;overflow-x:auto;padding-bottom:.35rem}
.phantaso-hscroll__card{flex:0 0 160px;border-radius:.625rem;overflow:hidden;border:1px solid #e2e8f0;background:#fff}
.phantaso-hscroll__thumb{height:100px;overflow:hidden;background:#f1f5f9}
.phantaso-hscroll__body{padding:.5rem .625rem}
.phantaso-hscroll__body .pw-title{font-size:.75rem}

/* Dual list + sidebar slider */
.phantaso-dual-list{display:grid;grid-template-columns:1fr 1fr;gap:.5rem 1rem}
.phantaso-dual-list a{font-size:.75rem;font-weight:600;color:#334155;text-decoration:none;line-height:1.35;padding:.25rem 0;border-bottom:1px solid #f8fafc}
.phantaso-dual-list a:hover{color:var(--phantaso-link,#2563eb)}
.phantaso-sidebar-slider{overflow:hidden;height:220px;position:relative}
.phantaso-sidebar-slider__track{display:flex;flex-direction:column;gap:.75rem}
.phantaso-sidebar-slider__item{display:flex;gap:.625rem;align-items:center}
.phantaso-sidebar-slider__thumb{width:4rem;height:3rem;border-radius:.375rem;overflow:hidden;flex-shrink:0;background:#f1f5f9}
.phantaso-sidebar-slider__item .pw-title{font-size:.75rem;line-height:1.3}
