:root {
    --bg: #0b0b12;
    --panel: #12131b;
    --panel-2: #171925;
    --text: #eef2ff;
    --muted: #9da7c2;
    --border: rgba(255,255,255,0.08);
    --gradient: linear-gradient(90deg, #ff6a4d 0%, #d63c97 45%, #4d1d95 100%);
    --gradient-soft: linear-gradient(135deg, rgba(255,106,77,0.20), rgba(214,60,151,0.16), rgba(77,29,149,0.24));
    --shadow: 0 20px 50px rgba(0,0,0,0.35);
    --shadow-soft: 0 14px 34px rgba(0,0,0,0.26);
    --radius: 22px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background:
        radial-gradient(circle at top left, rgba(255,106,77,0.12), transparent 30%),
        radial-gradient(circle at top right, rgba(214,60,151,0.10), transparent 35%),
        linear-gradient(180deg, #090a10 0%, #0d0f16 100%);
    color: var(--text);
    font-family: Inter, Arial, Helvetica, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background: rgba(10, 11, 18, 0.72);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    position: relative;
}

.logo-wrap {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex-shrink: 0;
}

.logo-mark {
    position: relative;
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
}

.tech-core-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.core-ring,
.core-center,
.core-scan {
    position: absolute;
    border-radius: 999px;
}

.core-ring {
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: inset 0 0 18px rgba(255,255,255,0.04);
}

.ring-1 {
    width: 50px;
    height: 50px;
    background: radial-gradient(circle at 30% 30%, rgba(255,106,77,0.28), rgba(77,29,149,0.10) 60%, rgba(0,0,0,0.05) 100%);
    animation: ringPulse1 4.6s ease-in-out infinite;
}

.ring-2 {
    width: 36px;
    height: 36px;
    border-color: rgba(214,60,151,0.24);
    animation: ringPulse2 3.8s ease-in-out infinite;
}

.ring-3 {
    width: 22px;
    height: 22px;
    border-color: rgba(255,106,77,0.30);
    animation: ringPulse3 3s ease-in-out infinite;
}

.core-center {
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #ff8e6f 0%, #d63c97 55%, #4d1d95 100%);
    box-shadow:
        0 0 10px rgba(255,106,77,0.6),
        0 0 22px rgba(214,60,151,0.45),
        0 0 34px rgba(77,29,149,0.35);
    animation: coreBlink 2.8s ease-in-out infinite;
}

.core-scan {
    width: 58px;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,106,77,0.95) 20%,
        rgba(214,60,151,0.95) 50%,
        rgba(77,29,149,0.95) 80%,
        transparent 100%
    );
    filter: blur(0.3px);
    opacity: 0.85;
    animation: scanLine 3.6s ease-in-out infinite;
}

@keyframes ringPulse1 {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.95; }
    50% { transform: scale(1.06) rotate(10deg); opacity: 1; }
}

@keyframes ringPulse2 {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.85; }
    50% { transform: scale(1.08) rotate(-14deg); opacity: 1; }
}

@keyframes ringPulse3 {
    0%, 100% { transform: scale(1); opacity: 0.75; }
    50% { transform: scale(1.16); opacity: 1; }
}

@keyframes coreBlink {
    0%, 100% { transform: scale(1); opacity: 0.92; }
    50% { transform: scale(1.22); opacity: 1; }
}

@keyframes scanLine {
    0%, 100% { transform: translateX(-8px); opacity: 0.30; }
    50% { transform: translateX(8px); opacity: 0.95; }
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    min-width: 0;
}

.logo-kicker {
    font-size: 10px;
    letter-spacing: 0.24em;
    color: var(--muted);
    margin-bottom: 4px;
}

.logo-main {
    font-size: clamp(24px, 4vw, 34px);
    font-weight: 900;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.logo-tech,
.logo-inform {
    display: inline-block;
}

.logo-tech {
    background: var(--gradient);
    background-size: 220% 220%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 6s linear infinite;
}

.logo-inform {
    color: #f4f6ff;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    flex-wrap: wrap;
    min-width: 0;
}

.site-nav > a,
.nav-dropdown-toggle {
    color: #d8deef;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    transition: color .2s ease, opacity .2s ease;
}

.site-nav > a:hover,
.nav-dropdown-toggle:hover {
    color: #fff;
}

.site-nav > a {
    position: relative;
    padding: 8px 0;
}

.site-nav > a::after,
.nav-dropdown-toggle::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    border-radius: 999px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s ease;
}

.site-nav > a:hover::after,
.nav-dropdown:hover .nav-dropdown-toggle::after,
.nav-dropdown:focus-within .nav-dropdown-toggle::after {
    transform: scaleX(1);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 14px;
}

.nav-dropdown-toggle {
    position: relative;
    background: transparent;
    border: 0;
    padding: 8px 18px 8px 0;
    cursor: pointer;
}

.nav-dropdown-toggle::before {
    content: "";
    position: absolute;
    right: 2px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(255,255,255,0.7);
    border-bottom: 2px solid rgba(255,255,255,0.7);
    transform: translateY(-65%) rotate(45deg);
    transition: transform .2s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle::before,
.nav-dropdown:focus-within .nav-dropdown-toggle::before {
    transform: translateY(-40%) rotate(225deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    min-width: 230px;
    display: none;
    padding: 8px;
    border-radius: 18px;
    background: rgba(15, 17, 26, 0.98);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
    z-index: 1001;
}

.nav-dropdown-menu a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: #d8deef;
    font-size: 14px;
    font-weight: 600;
    transition: background .2s ease, color .2s ease;
}

.nav-dropdown-menu a:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: block;
}

.nav-admin {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
}

.mobile-nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    padding: 10px;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.mobile-nav-toggle:hover {
    background: rgba(255,255,255,0.10);
}

.mobile-nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #fff;
    border-radius: 999px;
}

.hero-band {
    padding: 34px 0 20px;
}

.hero-band-inner {
    padding: 32px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255,106,77,0.18), rgba(214,60,151,0.18), rgba(77,29,149,0.28));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--shadow);
    text-align: left;
}

.eyebrow {
    display: inline-block;
    margin: 0 0 10px;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #ffcabf;
}

.hero-band h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 6vw, 62px);
    line-height: 0.98;
}

.hero-text {
    max-width: 720px;
    margin: 0;
    color: #d0d7ea;
    font-size: 17px;
    line-height: 1.65;
}

.featured-story {
    margin: 22px 0 30px;
}

.featured-story-card {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 0;
    background: rgba(18,19,27,0.96);
    border: 1px solid var(--border);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.featured-story-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.12);
    box-shadow: 0 24px 56px rgba(0,0,0,0.42);
}

.featured-story-media,
.post-card-image,
.video-thumb {
    position: relative;
    overflow: hidden;
    background: #11131c;
}

.featured-story-media {
    min-height: 300px;
}

.post-card-image,
.video-thumb {
    aspect-ratio: 16 / 9;
}

.featured-story-media img,
.post-card-image img,
.video-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.featured-story-card:hover .featured-story-media img,
.post-card:hover .post-card-image img,
.video-card:hover .video-thumb img {
    transform: scale(1.04);
}

.featured-story-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.featured-story-content .pill {
    margin-bottom: 4px;
}

.featured-story-content h2 {
    margin: 14px 0 12px;
    font-size: clamp(28px, 4.2vw, 46px);
    line-height: 1.02;
    word-break: break-word;
}

.featured-story-content p {
    margin: 0 0 16px;
    color: var(--muted);
    line-height: 1.7;
}

.section-block {
    margin: 34px 0;
}

.section-head {
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.section-head h1,
.section-head h3 {
    margin: 0 0 6px;
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: -0.03em;
}

.section-subtext,
.section-subtitle {
    color: var(--muted);
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
}

.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    justify-content: center;
}

.post-card,
.video-card,
.sidebar-box,
.admin-auth-card,
.admin-form,
.admin-table-wrap,
.single-post,
.empty-state,
.post-share-box,
.post-pagination-card {
    background: rgba(18,19,27,0.96);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.post-card,
.video-card {
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.post-card:hover,
.video-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.12);
    box-shadow: var(--shadow);
}

.post-card-image {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #11131c;
    overflow: hidden;
}

.post-card-body {
    padding: 18px;
}

.post-card-body h4,
.video-card-body h4 {
    margin: 10px 0 10px;
    font-size: 22px;
    line-height: 1.15;
    word-break: break-word;
}

.post-card-body p,
.video-card-body p {
    margin: 0 0 10px;
    color: var(--muted);
    line-height: 1.6;
}

.meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #9ea8c2;
    font-size: 13px;
    line-height: 1.5;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    align-self: flex-start;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.06);
    font-size: 12px;
    font-weight: 700;
    color: #f3f5ff;
    white-space: nowrap;
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    justify-content: center;
}

.video-card {
    overflow: hidden;
}

.video-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #11131c;
    overflow: hidden;
}

.play-badge {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(12,13,20,0.8);
    border: 1px solid rgba(255,255,255,0.12);
    font-size: 18px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

.video-card-body {
    padding: 16px;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(255,106,77,0.16), rgba(214,60,151,0.16), rgba(77,29,149,0.20));
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    padding: 18px;
}

.post-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 26px;
    padding-bottom: 26px;
}

.single-post {
    padding: 26px;
    min-width: 0;
}

.single-post-header h1 {
    margin: 14px 0 10px;
    font-size: clamp(30px, 5vw, 50px);
    line-height: 1.02;
    word-break: break-word;
}

.post-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 13px;
}

.post-breadcrumb a:hover {
    color: #fff;
}

.single-post-excerpt {
    margin: 0 0 16px;
    color: #cdd5e9;
    font-size: 18px;
    line-height: 1.7;
    max-width: 780px;
}

.single-post-image {
    margin: 22px 0;
    border-radius: 18px;
    overflow: hidden;
    background: #11131c;
}

.single-post-image img {
    width: 100%;
    height: auto;
    display: block;
}

.single-post-video {
    margin: 22px 0;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
}

.single-post-video iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.single-post-content {
    color: #e7ebf8;
    font-size: 17px;
    line-height: 1.82;
    overflow-wrap: anywhere;
}

.single-post-content h2 {
    margin: 34px 0 12px;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.1;
}

.single-post-content h2:first-child {
    margin-top: 0;
}

.single-post-content p a,
.single-post-content li a {
    color: #ff8f7a;
    text-decoration: none;
}

.single-post-content p a:hover,
.single-post-content li a:hover {
    color: #ffffff;
}

.single-post-content img {
    border-radius: 16px;
    margin: 24px 0;
}

.single-post-content blockquote {
    margin: 22px 0;
    padding: 16px 18px;
    border-left: 3px solid rgba(255,106,77,0.8);
    background: rgba(255,255,255,0.04);
    border-radius: 0 14px 14px 0;
    color: #dbe2f5;
}

.single-post-content ul,
.single-post-content ol {
    padding-left: 22px;
}

.post-share-box {
    margin-top: 34px;
    padding: 22px;
}

.post-share-box h3 {
    margin: 0 0 14px;
    font-size: 20px;
}

.post-share-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.post-pagination-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 34px;
}

.post-pagination-card {
    display: block;
    padding: 18px;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.post-pagination-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    box-shadow: var(--shadow);
}

.post-pagination-label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
}

.related-posts-section {
    margin-top: 38px;
    padding-top: 10px;
}

.post-sidebar {
    display: block;
}

.sidebar-box {
    padding: 20px;
}

.sidebar-box h3 {
    margin-top: 0;
}

.author-sidebar {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.author-avatar {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 999px;
    object-fit: cover;
    object-position: center;
    border: 1px solid rgba(255,255,255,0.10);
}

.author-sidebar-content {
    min-width: 0;
}

.author-sidebar-content strong {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
}

.author-sidebar-content p {
    margin: 0;
    color: #d5dcef;
    line-height: 1.7;
    font-size: 14px;
}

.sidebar-post {
    display: block;
    padding: 12px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    transition: opacity .2s ease;
}

.sidebar-post:hover {
    opacity: 1;
}

.sidebar-post:first-of-type {
    border-top: 0;
}

.sidebar-post strong {
    display: block;
    margin-bottom: 6px;
}

.sidebar-post span {
    color: var(--muted);
    font-size: 13px;
}

.site-footer {
    border-top: 1px solid var(--border);
    margin-top: 40px;
    background: rgba(8, 9, 14, 0.82);
}

.footer-inner {
    padding: 28px 0;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
}

.footer-left {
    max-width: 760px;
}

.footer-brand {
    font-size: 20px;
    font-weight: 900;
}

.footer-copy {
    margin: 6px 0 10px;
    color: var(--muted);
}

.footer-meta {
    margin: 5px 0;
    color: #b8c0d8;
    font-size: 14px;
    line-height: 1.6;
}

.footer-meta a {
    color: #ff8f7a;
}

.footer-meta a:hover {
    color: #ffffff;
}

.footer-right {
    color: var(--muted);
    font-size: 14px;
    text-align: right;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, opacity .2s ease, background .2s ease, border-color .2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    border: 0;
}

.btn-secondary {
    background: rgba(255,255,255,0.06);
    color: #fff;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.10);
}

.btn-small {
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
    background: rgba(255,255,255,0.06);
}

.btn-danger {
    background: rgba(255, 76, 76, 0.14);
    color: #ffd2d2;
    border-color: rgba(255,76,76,0.18);
}

.admin-auth-wrap {
    min-height: calc(100vh - 180px);
    display: grid;
    place-items: center;
    padding: 30px 16px;
}

.admin-auth-card {
    width: min(100%, 460px);
    padding: 28px;
}

.admin-auth-card h1 {
    margin-top: 0;
    margin-bottom: 10px;
}

.admin-auth-card p {
    color: var(--muted);
    margin-top: 0;
}

.admin-page {
    padding-top: 26px;
    padding-bottom: 26px;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 20px;
}

.admin-topbar h1 {
    margin: 0 0 8px;
}

.admin-topbar p {
    margin: 0;
    color: var(--muted);
}

.admin-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-form {
    padding: 22px;
}

.admin-form-wide {
    width: 100%;
}

.admin-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.admin-form input[type="text"],
.admin-form input[type="password"],
.admin-form input[type="file"],
.admin-form textarea,
.admin-form select {
    width: 100%;
    margin-bottom: 16px;
    padding: 14px 15px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.09);
    background: #0f1119;
    color: #fff;
    outline: none;
}

.admin-form input[type="text"]:focus,
.admin-form input[type="password"]:focus,
.admin-form input[type="file"]:focus,
.admin-form textarea:focus,
.admin-form select:focus {
    border-color: rgba(214,60,151,0.45);
    box-shadow: 0 0 0 3px rgba(214,60,151,0.12);
}

.admin-form textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-row {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.checkbox-row input {
    width: auto !important;
    margin: 0 !important;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    vertical-align: top;
}

.table-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 16px;
}

.alert-error {
    background: rgba(255, 76, 76, 0.12);
    color: #ffd2d2;
    border: 1px solid rgba(255, 76, 76, 0.18);
}

.empty-state {
    padding: 28px;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.current-image-preview img {
    max-width: 240px;
    border-radius: 14px;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,0.08);
}

@media (min-width: 700px) {
    .posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .post-pagination-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 901px) {
    .featured-story-card {
        align-items: stretch;
    }

    .featured-story-media {
        min-height: 100%;
    }
}

@media (min-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .video-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .post-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
        align-items: start;
    }

    .post-sidebar {
        position: sticky;
        top: 96px;
    }
}

@media (max-width: 900px) {
    .featured-story-card {
        grid-template-columns: 1fr;
    }

    .featured-story-content {
        padding: 24px;
    }

    .site-nav {
        position: absolute;
        top: 79px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(10, 11, 18, 0.98);
        border-bottom: 1px solid var(--border);
        padding: 12px 16px 18px;
        box-shadow: 0 16px 34px rgba(0,0,0,0.32);
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav > a {
        padding: 14px 0;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .site-nav > a::after,
    .nav-dropdown-toggle::after {
        display: none;
    }

    .nav-dropdown::after {
        display: none;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-toggle {
        width: 100%;
        text-align: left;
        padding: 14px 22px 14px 0;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .nav-dropdown-toggle::before {
        right: 4px;
    }

    .nav-dropdown-menu {
        position: static;
        display: none;
        min-width: 100%;
        margin-top: 0;
        padding: 6px 0 10px 14px;
        background: transparent;
        border: 0;
        box-shadow: none;
        border-radius: 0;
    }

    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown:focus-within .nav-dropdown-menu {
        display: block;
    }

    .nav-dropdown-menu a {
        padding: 10px 0;
        border-radius: 0;
        border-bottom: 1px solid rgba(255,255,255,0.04);
    }

    .nav-admin {
        margin-top: 8px;
        width: fit-content;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .footer-inner,
    .admin-topbar,
    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-right {
        text-align: left;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 20px, 1120px);
    }

    .header-inner {
        min-height: 70px;
    }

    .hero-band-inner {
        padding: 24px 18px;
        border-radius: 22px;
    }

    .single-post,
    .admin-auth-card,
    .admin-form,
    .featured-story-content {
        padding: 18px;
    }

    .logo-main {
        font-size: 24px;
    }

    .logo-kicker {
        font-size: 9px;
    }

    .hero-band h1,
    .featured-story-content h2,
    .single-post-header h1 {
        line-height: 1.05;
    }

    .meta-line {
        gap: 6px;
    }

    .play-badge {
        width: 38px;
        height: 38px;
        right: 12px;
        bottom: 12px;
    }

    .author-sidebar {
        gap: 12px;
    }

    .author-avatar {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }
}