/* starter/main.css — Full styles for starter template */

/* ===== ARTICLE ===== */
.tp-article{max-width:900px;margin:0 auto}

/* Hero */
.tp-article__hero{position:relative;border-radius:8px;overflow:hidden;margin-bottom:1.5rem;aspect-ratio:16/7;min-height:220px}
.tp-article__banner{width:100%;height:100%;object-fit:cover}
.tp-article__hero-overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(13,27,42,.95) 0%,transparent 60%);display:flex;flex-direction:column;justify-content:flex-end;padding:1.5rem}
.tp-article__title{font-size:1.75rem;font-weight:800;margin:0}
.tp-article__year{font-size:.875rem;color:#2ec4b6;margin-top:.25rem}

/* Body */
.tp-article__body{padding:0}
.tp-article__meta-bar{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem;margin-bottom:1.25rem;font-size:.8rem}
.tp-article__category{background:rgba(46,196,182,.15);color:#2ec4b6;padding:.25rem .6rem;border-radius:3px;font-weight:600}
.tp-article__rating{color:#ffc107;font-weight:700}
.tp-article__quality{background:#2ec4b6;color:#0d1b2a;padding:.2rem .5rem;border-radius:3px;font-weight:700;font-size:.75rem}
.tp-article__votes{color:#888}

/* Sections */
.tp-article__section{margin-bottom:1.5rem}
.tp-article__heading{font-size:1.1rem;font-weight:700;color:#fff;margin-bottom:.5rem;padding-bottom:.35rem;border-bottom:1px solid rgba(46,196,182,.1)}
.tp-article__text{color:#ccc;line-height:1.7}

/* Details table */
.tp-article__details{width:100%;border-collapse:collapse}
.tp-article__detail-row td{padding:.5rem .75rem;border-bottom:1px solid rgba(255,255,255,.05);font-size:.875rem}
.tp-article__detail-row td:first-child{color:#888;width:140px;font-weight:600}
.tp-article__detail-row td:last-child{color:#e0e0e0}

/* Note */
.tp-article__note{background:rgba(46,196,182,.08);border-left:3px solid #2ec4b6;padding:.75rem 1rem;border-radius:0 4px 4px 0;font-size:.85rem;color:#b0b0b0}

/* Streaming */
.tp-article__streaming{display:flex;flex-wrap:wrap;gap:.5rem}
.tp-article__streaming a{background:#162a3e;padding:.4rem .8rem;border-radius:4px;font-size:.8rem;color:#2ec4b6;border:1px solid rgba(46,196,182,.2);transition:background .2s}
.tp-article__streaming a:hover{background:rgba(46,196,182,.15);text-decoration:none}

/* Tags */
.tp-article__tags{display:flex;flex-wrap:wrap;gap:.4rem}
.tp-tag{background:#162a3e;color:#b0b0b0;padding:.3rem .6rem;border-radius:3px;font-size:.75rem;transition:color .2s,background .2s}
.tp-tag:hover{color:#2ec4b6;background:rgba(46,196,182,.1);text-decoration:none}

/* ===== RELATED ===== */
.tp-related{margin-top:2rem}
.tp-related h2{font-size:1.2rem;margin-bottom:1rem}

/* ===== LISTING / MOVIE GRID ===== */
.tp-listing,.movie-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.25rem}

/* ===== POST CARD ===== */
.post-card{background:#0f2234;border-radius:6px;overflow:hidden;transition:transform .2s,box-shadow .2s}
.post-card:hover{transform:translateY(-3px);box-shadow:0 8px 24px rgba(0,0,0,.4)}
.post-card__link{display:block;text-decoration:none;color:inherit}
.post-card__poster{width:100%;aspect-ratio:2/3;object-fit:cover;background:#162a3e}
.post-card__info{padding:.75rem}
.post-card__title{font-size:.85rem;font-weight:600;color:#fff;margin-bottom:.25rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.post-card__meta{font-size:.75rem;color:#888}

/* ===== PAGINATION ===== */
.pagination{display:flex;justify-content:center;align-items:center;gap:.4rem;margin:2rem 0;flex-wrap:wrap}
.pagination a,.pagination span{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:36px;padding:0 .5rem;border-radius:4px;font-size:.85rem;font-weight:600;color:#b0b0b0;background:#0f2234;border:1px solid rgba(46,196,182,.1);transition:background .2s,color .2s}
.pagination a:hover{background:rgba(46,196,182,.15);color:#fff;text-decoration:none}
.pagination .current,.pagination span[aria-current]{background:#2ec4b6;color:#0d1b2a;border-color:#2ec4b6}

/* ===== FOOTER ===== */
.tp-footer{background:#081420;border-top:1px solid rgba(46,196,182,.1);margin-top:3rem;padding:2rem 1.25rem}
.tp-footer__inner{max-width:1280px;margin:0 auto;display:flex;justify-content:space-between;align-items:flex-start;gap:2rem;flex-wrap:wrap}
.tp-footer__left{flex:1;min-width:200px}
.tp-footer__brand{font-size:1.2rem;font-weight:800;color:#fff;margin-bottom:.25rem}
.tp-footer__tagline{font-size:.8rem;color:#888;margin-bottom:.5rem}
.tp-footer__copy{font-size:.75rem;color:#666}
.tp-footer__right{display:flex;gap:2rem;flex-wrap:wrap}
.tp-footer__nav,.tp-footer__cats{display:flex;flex-direction:column;gap:.35rem}
.tp-footer__link{font-size:.8rem;color:#b0b0b0;transition:color .2s}
.tp-footer__link:hover{color:#2ec4b6;text-decoration:none}

/* ===== RESPONSIVE ===== */
@media(max-width:1024px){
  .tp-listing,.movie-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:768px){
  .tp-listing,.movie-grid{grid-template-columns:repeat(2,1fr);gap:1rem}
  .tp-article__hero{aspect-ratio:16/9}
  .tp-article__title{font-size:1.3rem}
  .tp-article__meta-bar{gap:.5rem}
  .tp-article__details{font-size:.8rem}
  .tp-footer__inner{flex-direction:column;gap:1.5rem}
  .tp-footer__right{gap:1.5rem}
}
@media(max-width:480px){
  .tp-listing,.movie-grid{grid-template-columns:repeat(2,1fr);gap:.75rem}
  .post-card__info{padding:.5rem}
  .post-card__title{font-size:.8rem}
}
