@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=DM+Serif+Display:ital@0;1&display=swap');

/* VARIABLES*/
:root {
    --bg:        #0c0c0e;
    --surface:   #141416;
    --surface2:  #1c1c1f;
    --border:    #2a2a2f;
    --gold:      #e8b84b;
    --gold-dim:  #a07c28;
    --blue:      #5b9cf6;
    --red:       #e85b5b;
    --green:     #51cf66;
    --text:      #f0ede8;
    --text-2:    #a09d98;
    --text-3:    #5a5855;
    --radius:    8px;
    --radius-lg: 14px;
}

/* BASE*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* HEADER*/
.header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    height: 64px;
}

.logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px;
    letter-spacing: 3px;
    color: var(--gold);
    white-space: nowrap;
    flex-shrink: 0;
    text-shadow: 0 0 30px rgba(232, 184, 75, 0.3);
}

.search-bar {
    display: flex;
    gap: 0;
    flex: 1;
    max-width: 440px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    /*overflow: hidden;*/
    transition: border-color 0.2s;
}

.search-bar:focus-within {
    border-color: var(--gold);
}

.search-bar input {
    flex: 1;
    padding: 10px 16px;
    background: transparent;
    border: none;
    font-size: 14px;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    outline: none;
}

.search-bar input::placeholder {
    color: var(--text-3);
}

.search-bar button {
    padding: 10px 18px;
    background: var(--gold);
    color: #0c0c0e;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
    letter-spacing: 0.5px;
    transition: background 0.2s;
    white-space: nowrap;
}

.search-bar button:hover {
    background: #f5cc6e;
}

/* Auth Buttons */
#authButtons {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.btn-auth {
    padding: 8px 16px;
    background: transparent;
    color: var(--text-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.2s;
}

.btn-auth:hover {
    color: var(--text);
    border-color: var(--gold);
    background: rgba(232, 184, 75, 0.06);
}

.btn-logout-nav {
    background: rgba(232, 91, 91, 0.12);
    border-color: rgba(232, 91, 91, 0.3);
    color: var(--red);
}

.btn-logout-nav:hover {
    background: rgba(232, 91, 91, 0.2);
    border-color: var(--red);
    color: var(--red);
}

/* BROADCAST TICKER*/
.ticker-bar {
    background: var(--gold);
    height: 32px;
    display: flex;
    align-items: center;
    /*overflow: hidden;*/
    position: relative;
}

.ticker-label {
    background: #0c0c0e;
    color: var(--gold);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
    padding: 0 14px;
    height: 100%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
}

/* FILTERS */
.filters {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}
.filters h1 {
    color: var(--text-3);
    font-size: 20px;
    text-transform: uppercase;

}

.filters h3 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 10px;
}

.category-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.category-btn,
.continent-btn {
    padding: 7px 16px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 40px;
    cursor: pointer;
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    color: var(--text-2);
    transition: all 0.18s;
    white-space: nowrap;
}

.category-btn:hover,
.continent-btn:hover {
    border-color: var(--gold-dim);
    color: var(--gold);
    background: rgba(232, 184, 75, 0.06);
}

.category-btn.active,
.continent-btn.active {
    background: var(--gold);
    color: #0c0c0e;
    border-color: var(--gold);
    font-weight: 600;
}

/* Undo Button */
.btn-undo {
    padding: 7px 14px;
    background: rgba(81, 207, 102, 0.12);
    color: var(--green);
    border: 1px solid rgba(81, 207, 102, 0.3);
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
    font-size: 12px;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.2s;
}

.btn-undo:hover {
    background: rgba(81, 207, 102, 0.22);
    border-color: var(--green);
}

/* MAIN / NEWS GRID*/
main {
    padding: 32px 0 60px;
}

.news-content {
    width: 100%;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin: 0 0 32px;
    min-height: 400px;
    align-items: start;
}

/* NEWS CARD*/
.news-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    /*overflow: hidden;*/
    display: flex;
    flex-direction: column;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-3px);
    border-color: rgba(232, 184, 75, 0.35);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(232, 184, 75, 0.1);
}

.news-card-image {
    width: 100%;
    height: 190px;
    object-fit: cover;
    background-color: var(--surface2);
    display: block;
    transition: opacity 0.3s;
}

.news-card:hover .news-card-image {
    opacity: 0.92;
}

.news-card-content {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news-card-category {
    display: inline-flex;
    align-items: center;
    background: rgba(91, 156, 246, 0.15);
    color: var(--blue);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    width: fit-content;
    text-transform: uppercase;
}

.news-card-title {
    font-family: 'DM Serif Display', serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--text);
    flex: 1;
}

.news-card-description {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    /*overflow: hidden;*/
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-3);
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: auto;
}

.news-card-source {
    font-weight: 600;
    color: var(--gold-dim);
}

.news-card-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--gold);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: gap 0.15s;
}

.news-card-link::after {
    content: '→';
    font-size: 14px;
}

.news-card-link:hover {
    gap: 8px;
}

/* LOADER */
.loader {
    border: 3px solid var(--surface2);
    border-top: 3px solid var(--gold);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
    margin: 60px auto;
}

.loader.hidden {
    display: none;
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/*LOAD MORE*/
.load-more-container {
    text-align: center;
    margin: 8px 0 40px;
}

.load-more-btn {
    padding: 12px 36px;
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold-dim);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.load-more-btn:hover {
    background: rgba(232, 184, 75, 0.08);
    border-color: var(--gold);
}

.load-more-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* EMPTY STATE*/
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-3);
    grid-column: 1 / -1;
}

.empty-state h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px;
    letter-spacing: 2px;
    color: var(--text-2);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
}

/* SHARE*/
.share-btn {
    padding: 7px 12px;
    background: transparent;
    color: var(--text-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 12px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    transition: all 0.18s;
}

.share-btn:hover {
    border-color: var(--gold-dim);
    color: var(--gold);
    background: rgba(232, 184, 75, 0,06);
}

.share-menu {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    min-width: 160px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    padding: 6px;
    animation: menuIn 0.15s ease;
}

@keyframes menuIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.share-option {
    display: block;
    padding: 9px 14px;
    color: rgb(173, 155, 155);
    text-decoration: none;
    cursor: pointer;
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    border-radius: var(--radius);
    transition: background 0.12s, color 0.12s;
    white-space: nowrap;
}

.share-option:hover {
    background: rgba(232, 184, 75, 0.08);
    color: var(--gold);
}
.share-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--gold);
}
.share-dropdown {
    position: relative;
    display: inline-block;
}

/* CHANNEL CARDS*/
.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.channel-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
}

.channel-card:hover {
    border-color: var(--gold-dim);
    transform: translateY(-2px);
}

.channel-card h4 {
    margin: 8px 0 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.channel-card p {
    font-size: 11px;
    color: var(--text-3);
    margin: 0;
}

.channel-live {
    background: var(--red);
    color: white;
    padding: 2px 7px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 6px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.6; }
}

/* VIDEO PLAYER*/
.video-player-container {
    background: #000;
    border-radius: var(--radius-lg);
    /*overflow: hidden;*/
    border: 1px solid var(--border);
    margin-bottom: 28px;
}

.video-player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: var(--surface2);
    border-bottom: 1px solid var(--border);
}

.video-player-header h3 {
    margin: 0;
    font-size: 15px;
    font-family: 'DM Serif Display', serif;
    color: var(--text);
}

.close-video-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    color: var(--text-2);
    font-size: 16px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-video-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text);
}

.video-player-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
}

.video-player {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}


  /* WEATHER SIDEBAR*/
.weather-sidebar {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: var(--radius-lg);
    height: fit-content;
    position: sticky;
    top: 80px;
}

.weather-widget {
    background: linear-gradient(135deg, #1c2a3a, #0c1a2a);
    border: 1px solid rgba(91, 156, 246, 0.2);
    color: var(--text);
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
}

.weather-widget h3 {
    font-size: 15px;
    font-family: 'DM Serif Display', serif;
    margin-bottom: 12px;
    color: var(--blue);
}

.weather-temp {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 52px;
    letter-spacing: 2px;
    color: var(--text);
    line-height: 1;
    margin: 8px 0;
}

.weather-desc {
    font-size: 13px;
    color: var(--text-2);
    margin: 6px 0;
}

.weather-details {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: left;
    font-size: 12px;
    color: var(--text-3);
}

.weather-details p {
    margin: 4px 0;
}

/*FOOTER*/
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 28px 20px;
}

.footer p {
    margin: 4px 0;
    font-size: 13px;
    color: var(--text-3);
}

.footer p:first-child {
    color: var(--text-2);
    font-weight: 500;
}

/* RESPONSIVE*/
@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 16px;
        gap: 12px;
    }

    .logo {
        font-size: 26px;
    }

    .search-bar {
        max-width: 100%;
        order: 3;
        width: 100%;
    }

    #authButtons {
        margin-left: auto;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .weather-sidebar {
        display: none;
    }

    .category-buttons {
        gap: 6px;
    }

    .category-btn,
    .continent-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    .news-card-image {
        height: 160px;
    }
}
/*   COMMENTS SECTION */
.comments-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.comments-heading {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 24px;
}

.comments-heading span {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    letter-spacing: 0;
    color: var(--text-3);
    font-weight: 400;
    margin-left: 10px;
}

.comment-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 28px;
    transition: border-color 0.2s;
}

.comment-form:focus-within {
    border-color: var(--gold-dim);
}

.comment-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    box-sizing: border-box;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 14px;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.comment-form input::placeholder,
.comment-form textarea::placeholder {
    color: var(--text-3);
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--gold-dim);
}

.comment-form textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.comment-form-footer {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
}

.btn-post-comment {
    padding: 10px 24px;
    background: var(--gold);
    color: #0c0c0e;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}

.btn-post-comment:hover {
    background: #f5cc6e;
}

.btn-post-comment:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.comment-status {
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
}

.comment-status.success { color: var(--green); }
.comment-status.error   { color: var(--red); }
.comment-status.loading { color: var(--text-3); }

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.comment-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    transition: border-color 0.2s;
}

.comment-card:hover {
    border-color: rgba(232, 184, 75, 0.2);
}

.comment-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 15px;
    letter-spacing: 1px;
    color: var(--gold);
    flex-shrink: 0;
}

.comment-author {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.comment-time {
    font-size: 12px;
    color: var(--text-3);
    margin-left: auto;
}

.comment-body {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.65;
}

.comments-empty {
    text-align: center;
    padding: 40px 20px;
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-3);
    font-size: 14px;
}

.comments-empty strong {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    letter-spacing: 2px;
    color: var(--text-2);
    margin-bottom: 4px;
}

@media (max-width: 600px) {
    .comment-form-row {
        grid-template-columns: 1fr;
    }
}

/* Panel container*/
.comments-panel {
    margin-top: 16px;
    border-top: 1px solid #1e1e28;
    padding-top: 16px;
}

.comments-error { color: #ff7070; }

/*Individual comment*/
.comment-item {
    padding: 12px 0;
    border-bottom: 1px solid #1a1a22;
}
.comment-item:last-child { border-bottom: none; }

.comment-item.comment-flagged {
    opacity: 0.6;
    border-left: 2px solid #c9a84c;
    padding-left: 10px;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.comment-author {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #c9a84c;
}

.comment-date {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    color: #444;
}

.comment-flag-badge {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: #c9a84c;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: 4px;
    padding: 1px 6px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.comment-body {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.55;
    margin: 0 0 8px;
    word-break: break-word;
}

/*Comment action buttons*/
.comment-actions {
    display: flex;
    gap: 8px;
}

.btn-comment-flag,
.btn-comment-delete {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    background: transparent;
}

.btn-comment-flag {
    color: #888;
    border-color: #2a2a35;
}
.btn-comment-flag:hover {
    color: #c9a84c;
    border-color: #c9a84c;
}

.btn-comment-delete {
    color: #cc5555;
    border-color: #cc5555;
}
.btn-comment-delete:hover {
    background: #cc5555;
    color: #fff;
}

/*Write box*/
.comment-write-box {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #1e1e28;
}

.comment-login-prompt {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    color: #555;
    text-align: center;
    padding: 8px 0;
}
.comment-login-prompt a {
    color: #c9a84c;
    text-decoration: none;
    font-weight: 600;
}
.comment-login-prompt a:hover { text-decoration: underline; }

.comment-textarea {
    width: 100%;
    padding: 10px 12px;
    background: #0c0c0e;
    border: 1px solid #2a2a35;
    border-radius: 6px;
    color: #e8e8e8;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    line-height: 1.5;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.2s;
    -webkit-appearance: none;
}
.comment-textarea:focus {
    outline: none;
    border-color: #c9a84c;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.08);
}
.comment-textarea::placeholder { color: #444; }

.comment-write-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.comment-char-count {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    color: #444;
}

.btn-comment-post {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    padding: 7px 20px;
    background: #c9a84c;
    color: #0c0c0e;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-comment-post:hover    { background: #e0bb60; }
.btn-comment-post:disabled { opacity: 0.5; cursor: not-allowed; }


/*Toggle button*/
.btn-comments-toggle {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 7px 14px;
    background: transparent;
    color: #888;
    border: 1px solid #2a2a35;
    border-radius: 5px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    white-space: nowrap;
}
.btn-comments-toggle:hover {
    color: #c9a84c;
    border-color: #c9a84c;
}

.comments-error { color: #ff7070; }

.comment-login-prompt a {
    color: #c9a84c;
    text-decoration: none;
    font-weight: 600;
}
.comment-login-prompt a:hover { text-decoration: underline; }

.news-grid {
    align-items: start;
}

/*Comments panel header (title + close button)*/
.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.comments-header-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.08em;
    color: #c9a84c;
}

.btn-comments-close {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    background: transparent;
    color: #555;
    border: 1px solid #2a2a35;
    border-radius: 4px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    letter-spacing: 0.02em;
}
.btn-comments-close:hover {
    color: #ff7070;
    border-color: #ff7070;
}

.comment-avatar-wrap {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #2a2a35;
    background: #1e1e28;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comment-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.comment-avatar-letter {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.85rem;
    color: #c9a84c;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* LIKES*/

.btn-like {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-2);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    white-space: nowrap;
    line-height: 1;
}
.btn-bookmark {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-2);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    white-space: nowrap;
    line-height: 1;
}

.btn-bookmark:hover {
    border-color: var(--gold-dim);
    color: var(--gold);
    background: rgba(232, 184, 75, 0.06);
}

.btn-bookmark[data-saved="true"] {
    border-color: rgba(232, 184, 75, 0.4);
    color: var(--gold);
    background: rgba(232, 184, 75, 0.08);
}

.btn-bookmark[data-saved="true"]:hover {
    background: rgba(232, 184, 75, 0.14);
}
/*apa*/
.btn-like:hover {
    border-color: var(--gold-dim);
    color: var(--gold);
    background: rgba(232, 184, 75, 0.06);
}

/* Liked state */
.btn-like[data-liked="true"] {
    border-color: rgba(232, 184, 75, 0.4);
    color: var(--gold);
    background: rgba(232, 184, 75, 0.08);
}

.btn-like[data-liked="true"]:hover {
    background: rgba(232, 184, 75, 0.14);
}

.like-count {
    font-size: 0.8rem;
    font-weight: 700;
    min-width: 10px;
    text-align: left;
}

/* Trending button*/
.trending-btn {
    background: rgba(232, 184, 75, 0.08);
    border-color: var(--gold-dim);
    color: var(--gold);
}
.trending-btn:hover {
    background: rgba(232, 184, 75, 0.15);
    border-color: var(--gold);
    color: var(--gold);
}
.trending-btn.active {
    background: var(--gold);
    color: #0c0c0e;
    border-color: var(--gold);
}
 
/* Trending badge overlaid on card image */
.trending-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(12, 12, 14, 0.82);
    backdrop-filter: blur(6px);
    color: var(--gold);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(232, 184, 75, 0.3);
    letter-spacing: 0.03em;
    pointer-events: none;
}

/*CARD ACTION ROW*/

.card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.card-actions .news-card-link,
.card-actions .btn-like,
.card-actions .btn-bookmark,
.card-actions .share-btn,
.card-actions .btn-comments-toggle {
    height: 32px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    border-radius: var(--radius);
    white-space: nowrap;
    box-sizing: border-box;
    line-height: 1;
}

.card-actions .news-card-link {
    border: 1px solid rgba(232, 184, 75, 0.3);
    background: transparent;
    text-decoration: none;
    gap: 4px;
}

.card-actions .news-card-link::after {
    content: '→';
    font-size: 13px;
}

.card-actions .news-card-link:hover {
    background: rgba(232, 184, 75, 0.06);
    border-color: var(--gold);
    gap: 6px;
}
/* TOAST */
.toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--surface2);
    border: 1px solid var(--gold-dim);
    color: var(--gold);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: var(--radius);
    letter-spacing: 0.03em;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 9999;
    white-space: nowrap;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}