/* ============================================================
   BroadwayStars V6 — Main Stylesheet
   Matches V5 visual design, fully responsive
   Replaces: style.css + tools.css (IE hacks removed)
   ============================================================ */

/* ── Reset & Base ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-size: 12px;
    color: #000;
    line-height: 18px;
    background: #fff;
    font-family: Arial, Helvetica, sans-serif;
    padding-top: 60px; /* offset for fixed header */
    margin: 0;
}

a { color: #000; text-decoration: underline; outline: none; }
a:hover { text-decoration: none; }
p { color: #000; font-size: 12px; padding: 5px 0; line-height: 17px; }
ul { color: #000; font-size: 12px; line-height: 17px; }
input, textarea, select {
    color: #000;
    outline: none;
    font-size: 12px;
    vertical-align: middle;
    font-family: Arial, Helvetica, sans-serif;
}

/* ── Custom Font ─────────────────────────────────────────────────────────── */
@font-face {
    font-family: "BigNoodleTitlingRegular";
    src: url("/v5/css/fonts/big_noodle_titling-webfont.woff2") format("woff2"),
         url("/v5/css/fonts/big_noodle_titling-webfont.woff") format("woff"),
         url("/v5/css/fonts/big_noodle_titling-webfont.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ── Utility ─────────────────────────────────────────────────────────────── */
.clearfix::after { content: ""; display: block; clear: both; }
.float-left  { float: left; }
.float-right { float: right; }
.text-center { text-align: center; }

/* ── Layout Wrapper ──────────────────────────────────────────────────────── */
#wrapper {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 10px;
}

/* ── Fixed Header ────────────────────────────────────────────────────────── */
.header-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff url("/v5/images/pg_bg.png") top repeat-x;
    height: 60px;
    z-index: 999;
}

header {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 10px;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
}

.header-logo { flex-shrink: 0; }
.header-logo img { display: block; }

.header-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.top-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    margin-bottom: 2px;
}

.top-links img.logo-txt { display: block; margin-right: auto; }

.top-nav {
    font-weight: bold;
    font-size: 12px;
    white-space: nowrap;
}
.top-nav a { text-decoration: none; margin: 0 3px; color: #000; }
.top-nav a:hover { text-decoration: underline; }

/* ── Ticker + Search Row ─────────────────────────────────────────────────── */
.ticker-search {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 6px;
}

.ticker {
    flex: 1;
    height: 22px;
    line-height: 19px;
    border: 1px solid #f0b610;
    font-size: 12px;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.ticker-inner {
    position: absolute;
    white-space: nowrap;
}

.search-box {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.search-box input[type="search"] {
    width: 200px;
    height: 21px;
    border: 1px solid #92979b;
    font-size: 11px;
    padding: 2px 5px;
}

.search-box button {
    background: #000 url("/v5/images/search_btn.png") center no-repeat;
    width: 21px;
    height: 21px;
    border: none;
    cursor: pointer;
    font-size: 0;
    flex-shrink: 0;
}

/* ── Header Ad ───────────────────────────────────────────────────────────── */
.header-ad {
    clear: both;
    width: 100%;
    max-width: 974px;
    height: 90px;
    margin: 10px auto;
    border: 1px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ── Login Box ───────────────────────────────────────────────────────────── */
#login-box {
    position: fixed;
    top: 55px;
    right: 20px;
    padding: 10px;
    padding-top: 0;
    border: 1px solid #ccc;
    background: #fbf3d0;
    color: #000;
    width: 210px;
    z-index: 1000;
    display: none;
}
#login-box p.close-bar {
    font-size: 9px;
    color: #666;
    text-align: right;
    margin: 0;
    padding: 2px 0;
}
#login-box h2 { font-size: 14px; }
#login-box input { border: 1px solid #000; margin-bottom: 4px; width: 100%; }

/* ── Two-Column Page Layout ──────────────────────────────────────────────── */
.page-columns {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.left-col  { flex: 1; min-width: 0; }
.right-col { width: 390px; flex-shrink: 0; }

/* ── Content Box ─────────────────────────────────────────────────────────── */
.content-box {
    border: 1px solid #eb1c24;
    margin-bottom: 10px;
    clear: both;
}

.box-title {
    height: 34px;
    background: url("/v5/images/title_bg.png") repeat-x;
    overflow: hidden;
}
.box-title h2 { font-size: 36px; line-height: 40px; padding: 0; float: left; font-weight: normal; }
.box-title h2 img { margin-top: -1px; display: block; }

.content-box-footer {
    background: #eb1c24;
    color: #fff;
    text-align: right;
    padding-right: 8px;
    line-height: 10px;
    font-size: 10px;
    height: 9px;
    overflow: hidden;
}
.content-box-footer a { color: #fff; text-decoration: none; }

/* ── News Section ────────────────────────────────────────────────────────── */
.news-section { padding-bottom: 8px; }

.news-paging {
    background: #eb1c24;
    font-size: 10px;
    line-height: 14px;
    color: #fff;
    font-weight: bold;
    padding: 0 10px;
    clear: both;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.news-paging a { color: #fff; text-decoration: none; }

.news-date-divider {
    clear: both;
    font-weight: bold;
    background: #000;
    color: #fff;
    padding: 0 10px;
    margin: 0 0 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ── Single News Item ────────────────────────────────────────────────────── */
.news-item {
    padding: 0 10px 4px;
}
.news-item + .news-item {
    border-top: 1px solid #ccc;
    margin-top: 5px;
    padding-top: 4px;
}

.news-title {
    font-size: 14px;
    color: #000;
    padding: 0;
    line-height: 18px;
    overflow: hidden;
    margin: 0 0 2px;
}
.news-title a { text-decoration: none; color: #000; }
.news-title a:hover { text-decoration: underline; }

.news-author { font-weight: normal; font-size: 12px; }
.news-author a { text-decoration: underline; }
.news-author a:hover { text-decoration: none; }

.news-desc {
    font-size: 12px;
    line-height: 14px;
    padding: 0;
    margin: 2px 0;
    overflow: hidden;
}

.news-meta {
    font-size: 9px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}
.news-meta .news-source a { color: #000; text-decoration: none; }
.news-meta .news-source a:hover { text-decoration: underline; }
.news-share { margin-left: auto; color: #555; text-decoration: none; font-size: 10px; }

/* Access badges */
.access-badge {
    font-size: 9px;
    padding: 1px 3px;
    border-radius: 2px;
}
.access-registration { background: #fbf3d0; }
.access-subscription { background: #fbd0d0; }

/* Admin controls */
.admin-controls {
    font-size: 9px;
    color: #555;
    margin-top: 2px;
    display: flex;
    gap: 6px;
    align-items: center;
}
.admin-controls a { color: #555; }
.edit-pencil { font-size: 11px; text-decoration: none; color: #999; }
.edit-pencil:hover { color: #eb1c24; }

/* ── Featured Stories (Right Col) ────────────────────────────────────────── */
.featured-box { padding-bottom: 9px; }

.fea-paging {
    background: #eb1c24;
    font-size: 12px;
    line-height: 14px;
    color: #fff;
    font-weight: bold;
    padding: 0 10px;
    clear: both;
}
.fea-paging a { color: #fff; text-decoration: none; text-transform: uppercase; }
.fea-paging a.current { color: #ff0; }

.fea-story-line {
    color: #eb1c24;
    font-size: 13px;
    font-weight: bold;
    padding: 0 10px 4px;
    line-height: 15px;
    border-bottom: 1px solid #ccc;
}
.fea-story-line:last-child { border-bottom: none; }
.fea-story-line div { height: 31px; overflow: hidden; }
.fea-story-line a { color: #000; text-decoration: none; }
.fea-story-line a:hover { text-decoration: underline; }
.fea-story-line a.author { color: #eb1c24; }

/* ── Sites We Love ───────────────────────────────────────────────────────── */
.sites-we-love .box-title h2 { text-align: center; float: none; padding: 2px 0 0; }
.sites-we-love .hover {
    background: #eb1c24;
    font-size: 10px;
    line-height: 14px;
    color: #fff;
    font-weight: bold;
    padding: 0 10px;
    text-align: center;
}
.sites-we-love ul { padding: 0 5px; margin: 0; list-style: none; }
.sites-we-love ul li a { text-decoration: none; }
.sites-we-love ul li a:hover { text-decoration: underline; }

.tab-links-bar {
    background: #eb1c24;
    font-size: 10px;
    line-height: 14px;
    color: #fff;
    font-weight: bold;
    padding: 0 10px;
    display: flex;
    gap: 8px;
}
.tab-links-bar a { color: #fff; text-decoration: none; text-transform: uppercase; }
.tab-links-bar a.current { color: #ff0; }

/* ── Broadway Radio ──────────────────────────────────────────────────────── */
.radio-list-box {
    font-weight: bold;
    line-height: 14px;
    padding: 8px 5px 3px;
    height: 44px;
    overflow: hidden;
    border-bottom: 1px solid #eee;
}
.radio-list-box a { text-decoration: none; }
.radio-list-box a:hover { text-decoration: underline; }

/* ── The Season ──────────────────────────────────────────────────────────── */
.season-list-box { line-height: 14px; padding: 7px 5px 4px; }
.season-list-box a.theatre {
    text-decoration: none;
    text-transform: uppercase;
    font-size: 9px;
    color: #eb1c24;
}
.season-list-box a.theatre:hover { text-decoration: underline; }

/* ── On Broadway Scroller ────────────────────────────────────────────────── */
.on-broadway { clear: both; margin-bottom: 10px; }
.on-broadway-content {
    overflow: hidden;
    height: 196px;
    position: relative;
}
.on-broadway-track {
    display: flex;
    position: relative;
    white-space: nowrap;
}
.on-b-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    width: 109px;
    padding: 10px 0;
    flex-shrink: 0;
}
.on-b-box img {
    display: block;
    margin: 5px auto;
    border: 1px solid #000;
    height: 114px;
    width: 87px;
}
.on-b-box h6 {
    text-transform: uppercase;
    font-size: 10px;
    text-align: center;
    line-height: 11px;
    white-space: normal;
    margin: 0;
    font-weight: bold;
}
.on-b-box h6 a { text-decoration: none; }
.on-b-box h6 a:hover { text-decoration: underline; }

/* ── Right Panel Ad ──────────────────────────────────────────────────────── */
.right-panel-ad {
    clear: both;
    width: 344px;
    height: 259px;
    border: 1px solid #000;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ad-190-150 {
    clear: both;
    width: 180px;
    height: 150px;
    margin: 0 auto 10px;
    border: 1px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sub-col { width: 190px; }

/* ── All That Chat ───────────────────────────────────────────────────────── */
.all-that-chat {
    border: 1px solid #eb1c24;
    clear: both;
    margin-bottom: 10px;
    text-align: center;
    padding: 8px 0 2px;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer {
    clear: both;
    background: #eb1c24;
    color: #fff;
    font-weight: bold;
    font-size: 10px;
    text-align: center;
    padding: 4px 10px 70px;
    margin-top: 10px;
}
footer a { color: #fff; text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
    #wrapper { padding: 0 8px; }
    .right-col { width: 340px; }
}

@media (max-width: 768px) {
    .page-columns { flex-direction: column; }
    .right-col { width: 100%; }
    .left-col  { width: 100%; }

    header { flex-wrap: wrap; }
    .header-right { width: 100%; }
    .top-nav { font-size: 11px; }

    .search-box input[type="search"] { width: 140px; }

    .right-panel-ad,
    .ad-190-150,
    .sub-col { width: 100%; max-width: 390px; margin-left: auto; margin-right: auto; }

    .on-broadway-content { height: auto; }
}

@media (max-width: 480px) {
    body { padding-top: 80px; }
    .ticker-search { flex-wrap: wrap; }
    .ticker { width: 100%; }
    .search-box { width: 100%; }
    .search-box input[type="search"] { flex: 1; width: auto; }
    .top-nav a { margin: 0 2px; }
}
