/* ============ Design tokens ============ */
:root{
  --navy-950: #0D1B33;
  --navy-900: #142A4D;
  --navy-800: #1D3A66;
  --gold-500: #E7BD6E;
  --gold-600: #D4A554;
  --brick-600: #BD4B36;
  --cream-50: #FAF6ED;
  --cream-100: #F1E9D6;
  --ink-900: #201E1A;
  --ink-600: #5C594E;
  --ink-400: #928D7C;
  --line: #E6DCC3;
  --white: #ffffff;

  --tag-politics: #BD4B36;
  --tag-cinema: #6C4A9C;
  --tag-sports: #1F8A75;
  --tag-business: #2E6DA4;
  --tag-health: #4C9A46;
  --tag-glamour: #B5406E;
  --tag-women: #A85CA8;

  --shadow-sm: 0 1px 3px rgba(13,27,51,0.06), 0 1px 2px rgba(13,27,51,0.08);
  --shadow-md: 0 4px 16px rgba(13,27,51,0.10);

  --font-te: 'Noto Sans Telugu', 'Poppins', sans-serif;
  --font-en: 'Poppins', 'Noto Sans Telugu', sans-serif;
}

*{box-sizing:border-box;}
html{font-size:125%;}
html,body{margin:0;padding:0;}
body{
  background:var(--cream-50);
  color:var(--ink-900);
  font-family:var(--font-te);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none;}
img{max-width:100%;display:block;}
ul,ol{margin:0;padding:0;list-style:none;}
h1,h2,h3,h4{margin:0;}

.wrap{
  max-width:1200px;
  margin:0 auto;
  padding:0 20px;
}

/* ============ Utility bar ============ */
.utility-bar{
  background:var(--navy-950);
  color:var(--cream-100);
  font-size:0.7812rem;
  font-family:var(--font-en);
}
.utility-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  height:34px;
}
.utility-links{display:flex;gap:16px;opacity:0.85;}
.utility-links a:hover{color:var(--gold-500);}

/* ============ Header ============ */
.site-header{
  background:var(--white);
  border-bottom:1px solid var(--line);
  box-shadow:0 1px 8px rgba(13,27,51,0.04);
}
.header-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  height:100px;
}
.header-left{display:flex;align-items:center;gap:10px;}
.logo{display:flex;align-items:center;}
.logo-img{
  height:84px;
  width:auto;
  display:block;
}

.header-actions{display:flex;align-items:center;gap:14px;flex-shrink:0;}
.mobile-nav-toggle{
  display:none;
  width:38px;height:38px;
  border-radius:50%;
  border:1px solid var(--line);
  background:var(--cream-50);
  color:var(--navy-900);
  align-items:center;justify-content:center;
  cursor:pointer;
}
.mobile-nav-toggle:hover{border-color:var(--gold-500);color:var(--gold-600);}
.search-btn{
  width:38px;height:38px;
  border-radius:50%;
  border:1px solid var(--line);
  background:var(--cream-50);
  color:var(--navy-900);
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;
}
.search-btn:hover{border-color:var(--gold-500);color:var(--gold-600);}
.live-btn{
  display:flex;align-items:center;gap:8px;
  background:var(--brick-600);
  color:var(--white);
  font-family:var(--font-te);
  font-weight:600;
  font-size:0.875rem;
  padding:9px 16px;
  border-radius:20px;
}
.live-btn:hover{background:var(--gold-600);}
.user-greeting{
  font-family:var(--font-en);
  font-weight:600;
  font-size:0.875rem;
  color:var(--navy-950);
  white-space:nowrap;
}
.logout-btn{
  display:flex;align-items:center;
  background:var(--cream-50);
  border:1px solid var(--line);
  color:var(--navy-900);
  font-family:var(--font-en);
  font-weight:600;
  font-size:0.8125rem;
  padding:8px 16px;
  border-radius:20px;
}
.logout-btn:hover{border-color:var(--gold-500);color:var(--gold-600);}
.header-ornament{
  flex:1;
  height:52px;
  margin:0 24px;
  min-width:0;
}
.header-ornament svg{
  width:100%;
  height:100%;
  display:block;
}

/* ============ Category nav ============ */
.cat-nav{
  background:var(--navy-950);
  position:sticky;top:0;z-index:50;
}
.cat-nav-inner{
  display:flex;
  justify-content:space-evenly;
  align-items:center;
  height:44px;
  gap:6px;
  overflow-x:auto;
  scrollbar-width:none;
}
.cat-nav-inner::-webkit-scrollbar{display:none;}
.cat-nav-inner a{
  color:var(--navy-950);
  font-size:0.875rem;
  font-weight:600;
  padding:5px 16px;
  display:flex;
  align-items:center;
  white-space:nowrap;
  text-align:center;
  flex:0 0 auto;
  justify-content:center;
  border-radius:999px;
  background:var(--gold-500);
  border:1px solid transparent;
}
.cat-nav-inner a:hover{background:var(--gold-600);}
.cat-nav-inner a.active{
  background:var(--gold-500);
  font-weight:800;
  border-color:var(--navy-950);
  box-shadow:inset 0 0 0 1px var(--navy-950);
}
.cat-nav-inner a.active:hover{background:var(--gold-600);}
.cat-nav-inner a.lang-en{
  font-family:var(--font-en);
  letter-spacing:0.01em;
}

/* ============ Ticker ============ */
.ticker-bar{
  background:var(--gold-500);
  border-bottom:1px solid var(--gold-600);
}
.ticker-inner{
  display:flex;align-items:center;gap:14px;
  height:38px;
}
.ticker-label{
  display:flex;align-items:center;gap:6px;
  background:var(--brick-600);
  color:var(--white);
  font-size:0.7812rem;
  font-weight:700;
  padding:4px 10px;
  border-radius:4px;
  flex-shrink:0;
}
.ticker-label.lang-en{
  font-family:var(--font-en);
  letter-spacing:0.02em;
}
.pulse{
  width:6px;height:6px;border-radius:50%;
  background:var(--white);
  animation:pulse 1.2s infinite;
}
.ticker-track-wrap{overflow:hidden;flex:1;}
.ticker-track{
  display:flex;
  gap:0;
  white-space:nowrap;
  animation:scroll-left 16s linear infinite;
  font-size:0.875rem;
  font-weight:600;
  color:var(--navy-950);
}
.ticker-track a{
  color:var(--navy-950);
  text-decoration:none;
  padding:0 22px;
  border-right:3px groove rgba(13,27,51,0.4);
}
.ticker-track a:last-child{border-right:none;}
.ticker-track a:hover{color:var(--navy-950);text-decoration:underline;}

@keyframes scroll-left{
  from{transform:translateX(0);}
  to{transform:translateX(-50%);}
}
@keyframes pulse{
  0%,100%{opacity:1;transform:scale(1);}
  50%{opacity:0.5;transform:scale(1.3);}
}

/* ============ Main layout ============ */
.main-grid{padding-top:24px;}

/* Hero */
.hero-section{
  display:grid;
  grid-template-columns:1.28fr 1fr;
  gap:24px;
  align-items:start;
  padding-bottom:28px;
  border-bottom:1px solid var(--line);
}
.hero-lead-col{
  display:flex;
  flex-direction:column;
}
.thumb-wrap{
  position:relative;
  overflow:hidden;
  border-radius:6px;
  background:var(--cream-100);
}
.thumb-wrap img{width:100%;height:100%;object-fit:cover;}
.thumb-wrap.tall{aspect-ratio:16/10;}
.tag{
  position:absolute;
  top:12px;left:12px;
  font-size:0.75rem;
  font-weight:700;
  color:var(--white);
  padding:5px 11px;
  border-radius:4px;
  font-family:var(--font-te);
}
.tag-politics{background:var(--tag-politics);}
.tag-cinema{background:var(--tag-cinema);}
.tag-sports{background:var(--tag-sports);}
.tag-ap{background:var(--navy-800);}
.tag-ts{background:#0F6E6E;}
.tag-national{background:#8A5A1E;}
.tag-business{background:var(--tag-business);}
.tag-health{background:var(--tag-health);}
.tag-glamour{background:var(--tag-glamour);}
.tag-women{background:var(--tag-women);}

.hero-slider{
  position:relative;
  overflow:hidden;
  border-radius:6px;
  box-shadow:var(--shadow-md);
}
.hero-slider-track{
  display:flex;
  height:100%;
  transition:transform 0.5s ease;
}
.hero-slide{
  flex:0 0 100%;
  min-width:100%;
  height:100%;
}
.hero-slide .thumb-wrap.tall{
  height:100%;
  aspect-ratio:unset;
}
.hero-caption{
  flex-shrink:0;
}
.hero-title{
  font-size:1.3rem;
  line-height:1.32;
  font-weight:700;
  color:var(--navy-950);
  margin-top:10px;
}
.hero-lead-link:hover .hero-title{color:var(--gold-600);}
.hero-dek{
  color:var(--ink-600);
  font-size:0.78rem;
  margin-top:6px;
  line-height:1.55;
}
.meta{
  display:flex;align-items:center;gap:8px;
  margin-top:8px;
  font-size:0.72rem;
  color:var(--ink-400);
  font-family:var(--font-en);
}
.dot-sep{opacity:0.6;}

.slider-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:38px;height:38px;
  border-radius:50%;
  border:none;
  background:rgba(10,25,48,0.55);
  color:var(--white);
  font-size:1.25rem;
  line-height:1;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;
  z-index:2;
}
.slider-arrow:hover{background:rgba(10,25,48,0.8);}
.slider-arrow.prev{left:12px;}
.slider-arrow.next{right:12px;}
.slider-dots{
  position:absolute;
  bottom:14px;left:0;right:0;
  display:flex;
  justify-content:center;
  gap:7px;
  z-index:2;
}
.slider-dot{
  width:8px;height:8px;
  border-radius:50%;
  background:rgba(255,255,255,0.55);
  border:none;
  cursor:pointer;
  padding:0;
}
.slider-dot.active{background:var(--gold-500);width:20px;border-radius:4px;}

.hero-side{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.hero-side-item{
  display:flex;
  gap:8px;
  padding-bottom:10px;
  border-bottom:1px solid var(--line);
}
.hero-side-item:last-child{border-bottom:none;padding-bottom:0;}
.hero-side-item .thumb-wrap{
  width:68px;flex-shrink:0;
  aspect-ratio:4/3;
  border-radius:4px;
}
.hero-side-item .tag{
  top:4px;left:4px;
  font-size:0.5312rem;
  padding:2px 5px;
}
.hero-side-title{
  font-size:0.7812rem;
  font-weight:700;
  color:var(--navy-950);
  line-height:1.3;
}
.hero-side-item:hover .hero-side-title{color:var(--gold-600);}
.hero-side-time{
  font-size:0.625rem;
  color:var(--ink-400);
  margin-top:4px;
  display:block;
  font-family:var(--font-en);
}

.section-heading{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:16px;
}
.section-heading h2{
  font-size:1.1875rem;
  font-weight:800;
  color:var(--navy-950);
  padding-left:12px;
  border-left:4px solid var(--gold-500);
}
.section-heading .see-all{
  margin-left:auto;
  font-size:0.7812rem;
  font-weight:600;
  color:var(--gold-600);
  font-family:var(--font-en);
}

/* Cinema / Politics list columns */
.two-col-lists{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
  padding:28px 0;
  border-top:1px solid var(--line);
}
.list-widget{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:8px;
  overflow:hidden;
  box-shadow:var(--shadow-sm);
}
.list-widget-header{
  color:var(--white);
  text-align:center;
  font-weight:800;
  font-size:1rem;
  letter-spacing:0.04em;
  padding:13px;
}
.list-widget-header.cinema{background:var(--tag-cinema);}
.list-widget-header.politics{background:var(--tag-politics);}
.list-body{
  max-height:900px;
  overflow-y:auto;
}
.list-body::-webkit-scrollbar{width:8px;}
.list-body::-webkit-scrollbar-track{background:var(--cream-100);}
.list-body::-webkit-scrollbar-thumb{background:var(--line);border-radius:4px;}
.list-row{
  display:flex;
  align-items:center;
  gap:10px;
  padding:6px 14px;
  border-bottom:1px solid var(--line);
}
.list-body a.list-row:last-child{border-bottom:none;}
.list-thumb{
  width:34px;height:34px;
  flex-shrink:0;
  border-radius:4px;
  overflow:hidden;
  background:var(--cream-100);
}
.list-thumb img{width:100%;height:100%;object-fit:cover;}
.list-row-title{
  font-size:0.7812rem;
  font-weight:600;
  line-height:1.25;
  color:var(--ink-900);
}
.list-row:hover .list-row-title{color:var(--gold-600);}

/* Photo gallery */
.gallery-section{
  padding:28px 0 36px;
  border-top:1px solid var(--line);
}
.gallery-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}
.gallery-tile .thumb-wrap{
  aspect-ratio:4/3;
  margin-bottom:10px;
  box-shadow:var(--shadow-sm);
  transition:box-shadow 0.25s ease;
}
.gallery-tile:hover .thumb-wrap{
  box-shadow:var(--shadow-md);
}
.gallery-tile .thumb-wrap img{
  transition:transform 0.35s ease;
}
.gallery-tile:hover .thumb-wrap img{
  transform:scale(1.06);
}
.gallery-count{
  position:absolute;
  bottom:10px;right:10px;
  display:flex;align-items:center;gap:5px;
  background:rgba(10,25,48,0.75);
  color:var(--white);
  font-family:var(--font-en);
  font-size:0.75rem;
  font-weight:600;
  padding:4px 9px;
  border-radius:20px;
}
.gallery-title{
  font-size:0.9062rem;
  font-weight:700;
  color:var(--navy-950);
  line-height:1.4;
}
.gallery-tile:hover .gallery-title{color:var(--gold-600);}

/* Reusable article card grid (related articles, category pages) */
.news-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
  margin-top:16px;
}
.news-card{display:flex;flex-direction:column;}
.news-card .thumb-wrap{aspect-ratio:16/10;margin-bottom:10px;box-shadow:var(--shadow-sm);}
.news-card-title{
  font-size:0.9375rem;
  font-weight:700;
  color:var(--navy-950);
  line-height:1.42;
}
.news-card:hover .news-card-title{color:var(--gold-600);}
.news-card .meta{margin-top:8px;}

/* Article page */
.article-page{
  max-width:760px;
  margin:0 auto;
  padding:28px 0 8px;
}
.article-breadcrumb{
  font-size:0.75rem;
  color:var(--ink-400);
  font-family:var(--font-en);
  margin-bottom:14px;
  display:flex;gap:8px;align-items:center;
}
.article-breadcrumb a{color:var(--ink-400);}
.article-breadcrumb a:hover{color:var(--gold-600);}
.article-tag{
  position:static;
  display:inline-block;
}
.article-title{
  font-size:1.9rem;
  line-height:1.32;
  font-weight:700;
  color:var(--navy-950);
  margin-top:12px;
}
.article-meta{margin-top:10px;}
.article-hero-img{
  aspect-ratio:16/9;
  margin-top:18px;
  box-shadow:var(--shadow-md);
}
.article-body{
  margin-top:20px;
  font-size:1.0625rem;
  line-height:1.85;
  color:var(--ink-900);
}
.article-body p{margin:0 0 16px;}
.article-not-found{padding:60px 0;text-align:center;}
.article-not-found h1{font-size:1.5rem;color:var(--navy-950);margin-bottom:10px;}
.article-not-found a{color:var(--gold-600);font-weight:600;}

.related-section{
  padding:24px 0 36px;
  border-top:1px solid var(--line);
  margin-top:20px;
}

/* Category page list view */
.article-list{
  padding:8px 0 40px;
}
.article-list-row{
  display:flex;
  align-items:center;
  gap:18px;
  padding:16px 0;
  border-bottom:1px solid var(--line);
}
.article-list-row:first-child{padding-top:0;}
.article-list-row .thumb-wrap{
  width:150px;
  flex-shrink:0;
  aspect-ratio:4/3;
  box-shadow:var(--shadow-sm);
}
.article-list-content{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.article-list-content .tag{
  position:static;
  display:inline-block;
  align-self:flex-start;
}
.article-list-title{
  font-size:1.0625rem;
  font-weight:700;
  color:var(--navy-950);
  line-height:1.4;
}
.article-list-row:hover .article-list-title{color:var(--gold-600);}
.article-list-content .meta{margin-top:2px;}

/* Category / gallery page header */
.page-header{
  padding:26px 0 8px;
}
.page-header h1{
  font-size:1.5rem;
  font-weight:800;
  color:var(--navy-950);
  padding-left:12px;
  border-left:4px solid var(--gold-500);
}
.page-header p{
  color:var(--ink-600);
  font-size:0.85rem;
  margin-top:8px;
}

/* Simple content pages (about, advertise, contact, qna, signup, chat) */
.simple-page{
  max-width:640px;
  margin:0 auto;
  padding:32px 0 60px;
}
.simple-page h1{
  font-size:1.5rem;
  font-weight:800;
  color:var(--navy-950);
  padding-left:12px;
  border-left:4px solid var(--gold-500);
  margin-bottom:18px;
}
.simple-page p{
  font-size:0.9375rem;
  line-height:1.75;
  color:var(--ink-600);
  margin-bottom:14px;
}
.simple-page .placeholder-note{
  background:var(--cream-100);
  border:1px dashed var(--line);
  border-radius:6px;
  padding:14px 16px;
  font-size:0.82rem;
  color:var(--ink-600);
  margin-top:20px;
}
.simple-form{display:flex;flex-direction:column;gap:12px;max-width:420px;}
.simple-form input, .simple-form textarea{
  padding:11px 12px;
  border-radius:5px;
  border:1px solid var(--line);
  font-family:var(--font-te);
  font-size:0.9rem;
}
.simple-form textarea{min-height:110px;resize:vertical;}
.simple-form button{
  background:var(--gold-500);
  color:var(--navy-950);
  border:none;
  padding:12px;
  border-radius:5px;
  font-weight:700;
  font-family:var(--font-te);
  cursor:pointer;
  align-self:flex-start;
  padding-left:24px;padding-right:24px;
}
.simple-form button:hover{background:var(--gold-600);}

/* Contact page — fuller form with labels */
.contact-page{max-width:720px;}
.contact-form{
  display:flex;
  flex-direction:column;
  gap:20px;
  margin-top:8px;
}
.form-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}
.form-field{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.form-field label{
  font-size:0.85rem;
  font-weight:700;
  color:var(--navy-950);
}
.form-field label .req{color:var(--brick-600);}
.form-field input,
.form-field select,
.form-field textarea{
  padding:12px 14px;
  border-radius:6px;
  border:1px solid var(--line);
  font-family:var(--font-te);
  font-size:0.9375rem;
  color:var(--ink-900);
  background:var(--white);
}
.form-field select{
  appearance:none;
  -webkit-appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23928D7C' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 12px center;
  background-size:16px;
  padding-right:36px;
  cursor:pointer;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus{
  outline:none;
  border-color:var(--gold-500);
  box-shadow:0 0 0 3px rgba(217,164,65,0.18);
}
.field-hint{
  font-size:0.78rem;
  color:var(--ink-400);
  font-family:var(--font-en);
}
.field-hint.hint-ok{color:var(--tag-health);font-weight:600;}
.field-hint.hint-error{color:var(--brick-600);font-weight:600;}
.comment-box{
  min-height:190px;
  resize:vertical;
  line-height:1.6;
}
.contact-form button{
  background:var(--gold-500);
  color:var(--navy-950);
  border:none;
  padding:13px 32px;
  border-radius:6px;
  font-weight:700;
  font-size:0.9375rem;
  font-family:var(--font-te);
  cursor:pointer;
  align-self:flex-start;
}
.contact-form button:hover{background:var(--gold-600);}
.hp-field{
  position:absolute;
  left:-9999px;
  width:1px;height:1px;
  opacity:0;
}
.form-alert{
  position:relative;
  padding:12px 40px 12px 16px;
  border-radius:6px;
  font-size:0.875rem;
  margin-bottom:16px;
}
.form-alert-close{
  position:absolute;
  top:50%;
  right:10px;
  transform:translateY(-50%);
  width:24px;height:24px;
  border:none;
  background:transparent;
  color:inherit;
  font-size:1.25rem;
  line-height:1;
  cursor:pointer;
  opacity:0.6;
  border-radius:4px;
  display:flex;align-items:center;justify-content:center;
}
.form-alert-close:hover{opacity:1;background:rgba(0,0,0,0.06);}
.form-alert.success{
  background:#E7F4EC;
  border:1px solid var(--tag-health);
  color:#1F6B3A;
}
.form-alert.error{
  background:#FBEAE7;
  border:1px solid var(--brick-600);
  color:#8A3226;
}

.activation-page{text-align:center;padding-top:48px;}
.activation-icon{
  width:76px;height:76px;
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  margin:0 auto 20px;
}
.activation-icon.success{background:#E7F4EC;color:#1F6B3A;}
.activation-icon.error{background:#FBEAE7;color:#8A3226;}
.activation-page h1{
  border-left:none;
  padding-left:0;
  justify-content:center;
  text-align:center;
}
.activation-page p{
  font-size:1rem;
  max-width:480px;
  margin:0 auto 24px;
}
.back-home-btn{
  display:inline-block;
  background:var(--gold-500);
  color:var(--navy-950);
  font-weight:700;
  padding:12px 28px;
  border-radius:6px;
  font-family:var(--font-en);
}
.back-home-btn:hover{background:var(--gold-600);}

/* Sign in / forgot password / reset password pages */
.auth-page{max-width:440px;}
.auth-links{
  margin-top:20px;
  font-size:0.85rem;
  color:var(--ink-600);
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}
.auth-links a{color:var(--gold-600);font-weight:600;}
.auth-links a:hover{color:var(--gold-500);}
.auth-links-sep{color:var(--ink-400);}

/* Chat feature */
.chat-layout{
  display:grid;
  grid-template-columns:1fr 240px;
  gap:20px;
  padding:20px 0 40px;
}
.chat-main{
  display:flex;
  flex-direction:column;
  border:1px solid var(--line);
  border-radius:8px;
  overflow:hidden;
  background:var(--white);
  height:600px;
  box-shadow:var(--shadow-sm);
}
.chat-window-header{
  display:flex;justify-content:space-between;align-items:center;
  padding:14px 18px;
  border-bottom:1px solid var(--line);
  background:var(--cream-100);
}
.chat-window-header h2{font-size:1.0625rem;font-weight:700;color:var(--navy-950);}
.chat-close-btn{
  background:var(--brick-600);
  color:var(--white);
  border:none;
  padding:6px 14px;
  border-radius:16px;
  font-size:0.8rem;
  font-weight:600;
  cursor:pointer;
  font-family:var(--font-en);
}
.chat-close-btn:hover{background:var(--gold-600);}
.chat-messages{
  flex:1;
  overflow-y:auto;
  padding:16px 18px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.chat-message{display:flex;flex-direction:column;align-items:flex-start;max-width:75%;}
.chat-message.mine{align-self:flex-end;align-items:flex-end;}
.chat-sender-name{
  font-size:0.7rem;font-weight:700;color:var(--gold-600);
  background:none;border:none;padding:0;margin-bottom:2px;cursor:pointer;
  font-family:var(--font-en);
}
.chat-message.mine .chat-sender-name{color:var(--ink-400);cursor:default;}
.chat-bubble{
  background:none;
  border:none;
  padding:0;
  display:flex;flex-direction:column;gap:2px;
}
.chat-message.mine .chat-bubble{background:none;border:none;color:var(--ink-900);}
.chat-text{font-size:0.8rem;line-height:1.35;white-space:pre-wrap;word-break:break-word;}
.chat-time{font-size:0.6rem;color:var(--ink-400);align-self:flex-end;}
.chat-message.mine .chat-time{color:var(--ink-400);}
.chat-input-form{
  display:flex;gap:10px;
  padding:14px 18px;
  border-top:1px solid var(--line);
}
.chat-input-form input{
  flex:1;
  padding:8px 10px;
  border-radius:2px;
  border:1px solid #999999;
  font-family:var(--font-te);
  font-size:0.875rem;
  background:#ffffff;
  color:#000000;
}
.chat-input-form input:focus{outline:1px solid #666666;border-color:#666666;}
.emoji-picker-wrap{position:relative;flex-shrink:0;}
.emoji-toggle-btn{
  width:38px;height:38px;
  border-radius:50%;
  border:1px solid var(--line);
  background:var(--cream-50);
  font-size:1.15rem;
  cursor:pointer;
  display:flex;align-items:center;justify-content:center;
}
.emoji-toggle-btn:hover{background:var(--cream-100);}
.emoji-picker{
  display:none;
  position:absolute;
  bottom:48px;
  left:0;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:8px;
  box-shadow:var(--shadow-md);
  padding:10px;
  grid-template-columns:repeat(8,1fr);
  gap:2px;
  width:260px;
  max-height:190px;
  overflow-y:auto;
  z-index:20;
}
.emoji-picker.open{display:grid;}
.emoji-option{
  background:none;
  border:none;
  font-size:1.2rem;
  cursor:pointer;
  padding:4px;
  border-radius:4px;
  line-height:1;
}
.emoji-option:hover{background:var(--cream-100);}
.chat-input-form button{
  background:var(--gold-500);
  color:var(--navy-950);
  border:none;
  padding:10px 22px;
  border-radius:20px;
  font-weight:700;
  cursor:pointer;
  font-family:var(--font-en);
}
.chat-input-form button:hover{background:var(--gold-600);}
.chat-sidebar{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:8px;
  padding:16px;
  height:600px;
  overflow-y:auto;
  box-shadow:var(--shadow-sm);
}
.chat-sidebar h3{
  font-size:0.95rem;font-weight:800;color:var(--navy-950);
  margin-bottom:12px;padding-bottom:10px;border-bottom:2px solid var(--gold-500);
}
.chat-room-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:4px;}
.chat-room-btn{
  display:block;width:100%;text-align:left;
  padding:9px 12px;border-radius:6px;border:none;background:none;
  font-family:var(--font-te);font-size:0.875rem;color:var(--ink-900);cursor:pointer;
}
.chat-room-btn:hover{background:var(--cream-100);}
.chat-room-btn.active{background:var(--navy-950);color:var(--gold-500);font-weight:700;}

.chat-frame-wrap{
  border:1px solid var(--line);
  border-radius:8px;
  overflow:hidden;
  box-shadow:var(--shadow-sm);
  min-height:420px;
  display:flex;align-items:center;justify-content:center;
  background:var(--cream-100);
  text-align:center;
  padding:32px;
}

/* Footer */
.site-footer{
  background:var(--navy-950);
  color:rgba(247,244,236,0.85);
  margin-top:24px;
}
.footer-inner{
  padding:7px 20px;
  text-align:center;
}
.footer-brand{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}
.footer-logo-img{
  height:24px;
  width:auto;
  display:block;
  flex-shrink:0;
}
.footer-brand p{
  font-size:0.56rem;
  line-height:1.3;
  margin:0;
  color:rgba(247,244,236,0.6);
  white-space:nowrap;
}
.footer-bottom{
  border-top:1px solid rgba(247,244,236,0.12);
  padding:3px 20px;
  font-size:0.55rem;
  color:rgba(247,244,236,0.5);
  font-family:var(--font-en);
  text-align:center;
}

/* ============ Responsive ============ */
@media (max-width:900px){
  .hero-section{grid-template-columns:1fr;}
  .two-col-lists{grid-template-columns:1fr;}
  .gallery-grid{grid-template-columns:repeat(2,1fr);}
  .news-grid{grid-template-columns:repeat(2,1fr);}
  .header-inner{height:76px;}
  .logo-img{height:60px;}
  .header-ornament{display:none;}
  .hero-title{font-size:1.375rem;}
  .article-title{font-size:1.5rem;}
  .chat-layout{grid-template-columns:1fr;}
  .chat-sidebar{height:auto;order:-1;}
  .chat-main{height:480px;}
  .list-body{max-height:none;overflow-y:visible;}

  .mobile-nav-toggle{display:flex;}
  .cat-nav{position:relative;}
  .cat-nav-inner{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    right:0;
    max-width:none;
    margin:0;
    padding:0;
    width:100%;
    height:auto;
    align-items:stretch;
    justify-content:flex-start;
    flex-direction:column;
    background:var(--navy-950);
    max-height:75vh;
    overflow-y:auto;
    z-index:60;
    box-shadow:0 8px 20px rgba(0,0,0,0.3);
  }
  .cat-nav.open .cat-nav-inner{display:flex;}
  .cat-nav-inner a{
    justify-content:flex-start;
    padding:13px 18px;
    height:auto;
    width:calc(100% - 20px);
    margin:5px 10px;
    font-size:1rem;
    color:var(--navy-950);
    border-radius:24px;
    background:var(--gold-500);
    border:1px solid transparent;
    flex:0 0 auto;
  }
  .cat-nav-inner a.active{
    background:var(--gold-500);
    border-color:var(--navy-950);
    box-shadow:inset 0 0 0 1px var(--navy-950);
  }
  .ticker-track{animation-duration:7s;}
}
@media (max-width:520px){
  .utility-links{display:none;}
  .news-grid{grid-template-columns:1fr;}
  .article-list-row .thumb-wrap{width:96px;}
  .article-list-title{font-size:0.9375rem;}
  .form-row{grid-template-columns:1fr;}
  .comment-box{min-height:160px;}
  .ticker-track{animation-duration:5s;}
}
