/* Custom CSS for Gantry5 Helium Template */

/* 2px breathing room so frames never touch the viewport edges */
body {
    padding: 2px !important;
}

/* Center all module titles */
.g-content .g-particle h2,
.g-content .g-particle h3,
.g-content .g-particle h4,
.moduletable h3,
.moduletable-header h3,
.module-title,
.page-header,
h3.module-title,
div[class*="moduletable"] h3,
.g-block h2,
.g-block h3 {
    text-align: center !important;
}

/* Joomla module titles */
.module h3,
.module .module-title,
#sidebar h3,
#main h3.module-title {
    text-align: center !important;
}

/* Center HikaShop product grid */
.hikashop_products_listing .hk-row-fluid {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
}
.hikashop_products_listing .hk-row-fluid > .hikashop_product {
    flex: 0 0 auto;
    width: 16.6667%;
    min-width: 180px;
    max-width: 250px;
}

/* Right sidebar frame */
.g-block:has(.right-side) > .g-content {
    border: 1px solid #000;
    border-radius: 12px;
    padding: 1px;
    overflow: hidden;
}
.g-block:has(.right-side) > .g-content .platform-content {
    padding: 0;
    margin: 0;
}
.g-block:has(.right-side) > .g-content .moduletable {
    padding: 0;
    margin: 0;
}

/* Left sidebar — flush top */
.g-block:has(.left-side) > .g-content {
    padding-top: 0;
}
.g-block:has(.left-side) > .g-content .platform-content {
    padding: 0;
    margin: 0;
}
.g-block:has(.left-side) > .g-content .moduletable {
    padding: 0;
    margin: 0;
}
.nfl-sidebar-mod h3.g-title {
    margin-top: 1px;
}

/* ============================================================
   MUSIC SECTION
   ============================================================ */

/* ---------- Section Headers ---------- */
.nfl-section-header,
.nf-article .page-header h1,
.nf-article .page-header h2 {
    display: block;
    background: #f5c518;
    color: #111;
    padding: 10px 28px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1.1em;
    text-align: center;
    margin: 0 0 10px;
}
.nfl-section-header-wrap {
    text-align: center;
    margin-bottom: 10px;
}
.nfl-separator {
    border: none;
    border-top: 1px solid #333;
    margin: 40px auto 30px;
    max-width: 600px;
}

/* ---------- Artist Grid (Music Page) ---------- */
.nfl-artist-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    padding: 20px 0;
}
.nfl-artist-card {
    width: 280px;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
    color: #fff;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.nfl-artist-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,.5);
    color: #fff;
    text-decoration: none;
}
.nfl-artist-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}
.nfl-artist-card .nfl-artist-info {
    padding: 14px 16px;
    text-align: center;
}
.nfl-artist-card .nfl-artist-name {
    font-size: 1.2em;
    font-weight: 700;
    margin: 0 0 4px;
}
.nfl-artist-card .nfl-artist-tagline {
    font-size: .85em;
    opacity: .7;
}

/* ---------- Artist Page — Release Grid ---------- */
.nfl-release-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px 0;
}
.nfl-release-card {
    width: 220px;
    border-radius: 8px;
    overflow: hidden;
    background: #1a1a1a;
    color: #fff;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.nfl-release-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 14px rgba(0,0,0,.45);
    color: #fff;
    text-decoration: none;
}
.nfl-release-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}
.nfl-release-card .nfl-release-meta {
    padding: 10px 12px;
    text-align: center;
}
.nfl-release-card .nfl-release-title {
    font-size: 1em;
    font-weight: 600;
    margin: 0 0 4px;
}
.nfl-release-card .nfl-release-year {
    font-size: .8em;
    opacity: .6;
}

/* ---------- Release Detail Page ---------- */

/* Release title — yellow pill */
.com-content-article .page-header {
    padding-top: 10px;
    text-align: center;
}
.com-content-article .page-header h1 {
    display: inline-block;
    background: #f5c518;
    color: #111;
    font-size: 1.3em;
    font-weight: 700;
    padding: 6px 22px;
    border-radius: 20px;
    margin: 0 0 16px;
}

.nfl-release-player {
    max-width: 700px;
    margin: 0 auto 30px;
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,.4);
}

/* Cover art */
.nfl-cover-art {
    position: relative;
}
.nfl-cover-art img {
    width: 100%;
    display: block;
}

/* Player UI bar */
.nfl-player-ui {
    padding: 12px 16px;
    background: #1a1a1a;
}
.nfl-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-bottom: 6px;
}
.nfl-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 4px;
    line-height: 0;
    transition: color .15s;
}
.nfl-btn:hover { color: #f5c518; }
.nfl-btn svg { fill: currentColor; }

.nfl-track-info {
    text-align: center;
    font-size: .85em;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nfl-now-playing { opacity: .8; }

/* Progress bar */
.nfl-progress-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.nfl-progress-bar {
    flex: 1;
    height: 6px;
    background: #333;
    border-radius: 3px;
    cursor: pointer;
    overflow: hidden;
}
.nfl-progress-fill {
    height: 100%;
    width: 0;
    background: #f5c518;
    border-radius: 3px;
    transition: width .1s linear;
}
.nfl-time {
    font-size: .75em;
    opacity: .6;
    white-space: nowrap;
    min-width: 80px;
    text-align: right;
}

/* Volume */
.nfl-volume-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}
.nfl-volume {
    width: 80px;
    accent-color: #f5c518;
}

/* ---------- Playlist ---------- */
.nfl-playlist {
    list-style: none;
    margin: 0;
    padding: 0;
}
.nfl-playlist li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-top: 1px solid #222;
    cursor: pointer;
    transition: background .15s;
}
.nfl-playlist li:hover {
    background: #1e1e1e;
}
.nfl-playlist li.nfl-active {
    background: #1a1a1a;
    border-left: 3px solid #f5c518;
}
.nfl-track-num {
    font-size: .8em;
    opacity: .5;
    min-width: 18px;
    text-align: center;
}
.nfl-track-title {
    flex: 1;
    font-size: .95em;
    text-align: left;
}
.nfl-track-artist {
    opacity: .6;
}
.nfl-track-duration {
    display: none;
    opacity: .5;
    min-width: 36px;
    text-align: right;
}
.nfl-track-buy {
    min-width: 80px;
    text-align: right;
}
.nfl-track-buy .hikashop_cart_button,
.nfl-track-buy button {
    font-size: .75em;
    padding: 4px 10px;
    border-radius: 4px;
    background: #f5c518;
    color: #111;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background .15s;
}
.nfl-track-buy .hikashop_cart_button:hover,
.nfl-track-buy button:hover {
    background: #e0b615;
}

/* Bundle buy row */
.nfl-buy-bundle {
    padding: 14px 16px;
    text-align: center;
    border-top: 1px solid #222;
    background: #151515;
}
.nfl-buy-bundle .hikashop_cart_button,
.nfl-buy-bundle button {
    font-size: .9em;
    padding: 8px 24px;
    border-radius: 6px;
    background: #f5c518;
    color: #111;
    border: none;
    cursor: pointer;
    font-weight: 700;
    transition: background .15s;
}
.nfl-buy-bundle .hikashop_cart_button:hover,
.nfl-buy-bundle button:hover {
    background: #e0b615;
}
.nfl-bundle-label {
    display: block;
    font-size: .8em;
    opacity: .5;
    margin-bottom: 6px;
}

/* ---------- Artist Bio Section ---------- */
.nfl-artist-bio {
    max-width: 800px;
    margin: 0 auto 30px;
    padding: 20px;
}
.nfl-artist-bio .nfl-bio-photo {
    float: left;
    width: 200px;
    margin: 0 20px 10px 0;
    border-radius: 8px;
}
.nfl-artist-bio h2 {
    margin-top: 0;
}
.nfl-artist-bio p {
    line-height: 1.7;
}

/* ============================================================
   COMPACT PLAYER MODULES (Music Page Grid)
   ============================================================ */

/* Widen Music page content area so 3×300px modules + gaps fit */
.itemid-112 .nf-article {
    max-width: 1100px;
}
.itemid-112 .platform-content.container {
    max-width: 1100px;
}

/* Module grid — 3 columns, centered */
.player-nfl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Individual module */
.player-nfl-module {
    width: 100%;
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.35);
}

/* Cover art wrapper */
.player-nfl-cover {
    position: relative;
}
.player-nfl-cover img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

/* BUY overlay — hidden by default, shown on hover */
.player-nfl-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.55);
    opacity: 0;
    transition: opacity .25s;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 700;
    color: #111;
    z-index: 2;
}
.player-nfl-overlay,
.player-nfl-overlay:hover,
.player-nfl-overlay:focus {
    color: #111;
}
.player-nfl-overlay::after {
    content: 'BUY';
    display: inline-block;
    background: #f5c518;
    color: #111;
    padding: 10px 32px;
    border-radius: 50px;
    letter-spacing: .05em;
}
.player-nfl-cover:hover .player-nfl-overlay {
    opacity: 1;
}

/* Release title + date */
.player-nfl-meta {
    padding: 10px 14px 6px;
    text-align: center;
}
.player-nfl-title {
    font-size: 1em;
    font-weight: 700;
}
.player-nfl-date {
    font-size: .8em;
    opacity: .5;
    margin-top: 2px;
}

/* Compact playlist */
.player-nfl-playlist {
    list-style: none;
    margin: 0;
    padding: 0;
}
.player-nfl-playlist li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-top: 1px solid #1e1e1e;
    cursor: pointer;
    transition: background .15s;
    font-size: .85em;
}
.player-nfl-playlist li:hover {
    background: #1a1a1a;
}
.player-nfl-playlist li.player-nfl-active {
    background: #1a1a1a;
    border-left: 3px solid #f5c518;
    padding-left: 11px;
}
.player-nfl-track-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}
.player-nfl-track-duration {
    font-size: .8em;
    opacity: .5;
    white-space: nowrap;
}

/* Compact player UI bar */
.player-nfl-ui {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #1a1a1a;
    border-top: 1px solid #222;
}
.player-nfl-play {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 2px;
    line-height: 0;
    flex-shrink: 0;
    transition: color .15s;
}
.player-nfl-play:hover { color: #f5c518; }
.player-nfl-play svg { fill: currentColor; }

.player-nfl-progress {
    flex: 1;
    height: 4px;
    background: #333;
    border-radius: 2px;
    cursor: pointer;
    overflow: hidden;
}
.player-nfl-progress-fill {
    height: 100%;
    width: 0;
    background: #f5c518;
    border-radius: 2px;
    transition: width .1s linear;
}
.player-nfl-time {
    font-size: .7em;
    opacity: .5;
    white-space: nowrap;
    min-width: 64px;
    text-align: right;
}

/* ---------- Sidebar artist/release lists ---------- */
.nfl-sidebar-mod h3 {
    background: #f5c518;
    color: #111;
    text-transform: uppercase;
    font-size: .95em;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 6px;
    margin: 0 0 10px;
    text-align: center;
    letter-spacing: .03em;
}
.nfl-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.nfl-sidebar-list li {
    padding: 6px 0;
    border-bottom: 1px solid #222;
}
.nfl-sidebar-list li:last-child {
    border-bottom: none;
}
.nfl-sidebar-list a {
    color: #000;
    text-decoration: none;
    font-size: .9em;
    transition: color .15s;
}
.nfl-sidebar-list a:hover {
    color: #f5c518;
}

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
    .player-nfl-module { width: calc(50% - 12px); min-width: 200px; }
}
@media (max-width: 440px) {
    .player-nfl-module { width: 100%; max-width: 340px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
    .nfl-artist-card { width: 100%; max-width: 340px; }
    .nfl-release-card { width: 45%; min-width: 150px; }
    .nfl-release-player { border-radius: 0; }
    .nfl-playlist li { padding: 8px 12px; gap: 6px; }
    .nfl-track-buy { min-width: 60px; }
    .nfl-artist-bio .nfl-bio-photo {
        float: none;
        display: block;
        width: 100%;
        max-width: 280px;
        margin: 0 auto 16px;
    }
    .nfl-volume-wrap { display: none; }
    .nfl-controls { gap: 12px; }
}
