  /* Snov Priuty Reader Layout */
        .snov_reader {
            max-width: 1440px;
            margin: 0 auto;
            padding: 0 16px;
        }
        
        /* Header with title */
        .snov_header {
            text-align: center;
            margin: 30px 0 20px;
            position: relative;
        }
        
        .snov_main_title {
            font-size: 48px;
            font-weight: 900;
            margin: 0;
            background: linear-gradient(135deg, #667eea, #764ba2);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        .snov_subtitle {
            font-size: 18px;
            opacity: 0.7;
            margin-top: 5px;
        }
        
        /* Two-column layout */
        .snov_layout {
            display: grid;
            grid-template-columns: 320px 1fr;
            gap: 30px;
            margin-top: 20px;
            align-items: start;
        }
        
        /* Left Sidebar - Navigation */
        .snov_sidebar {
            background: rgba(255, 255, 255, 0.6);
            backdrop-filter: blur(10px);
            border-radius: 24px;
            padding: 20px 16px;
            border: 1px solid rgba(255, 255, 255, 0.3);
            position: sticky;
            top: 20px;
            max-height: calc(100vh - 40px);
            overflow-y: auto;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }
        
        .sidebar_header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 2px solid rgba(0,0,0,0.1);
        }
        
        .sidebar_title {
            font-size: 20px;
            font-weight: 800;
            margin: 0;
        }
        
        .part_count {
            background: rgba(0,0,0,0.1);
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 14px;
        }
        
        /* Part list in sidebar */
        .parts_list {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        
        .part_item {
            display: flex;
            align-items: center;
            padding: 12px 14px;
            border-radius: 16px;
            text-decoration: none;
            color: inherit;
            transition: all 0.2s ease;
            border: 1px solid transparent;
            background: rgba(255,255,255,0.3);
        }
        
        .part_item:hover {
            background: white;
            border-color: rgba(0,0,0,0.1);
            transform: translateX(5px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        
        .part_item.active {
            background: white;
            border-color: #4a90e2;
            box-shadow: 0 5px 15px rgba(74,144,226,0.2);
            font-weight: 700;
        }
        
        .part_number {
            font-weight: 900;
            font-size: 18px;
            opacity: 0.5;
            min-width: 40px;
            text-align: center;
        }
        
        .part_info {
            flex: 1;
        }
        
        .part_title {
            font-size: 15px;
            font-weight: 600;
            line-height: 1.3;
            margin-bottom: 2px;
        }
        
        .part_meta {
            display: flex;
            gap: 8px;
            font-size: 11px;
            opacity: 0.6;
        }
        
        .part_badges {
            display: flex;
            gap: 4px;
            margin-left: 8px;
        }
        
        .badge {
            width: 20px;
            height: 20px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            background: rgba(0,0,0,0.05);
        }
        
        /* Main content area */
        .snov_main {
            background: rgba(255, 255, 255, 0.7);
            backdrop-filter: blur(10px);
            border-radius: 30px;
            padding: 30px 40px;
            border: 1px solid rgba(255, 255, 255, 0.3);
            box-shadow: 0 15px 40px rgba(0,0,0,0.1);
        }
        
        /* Part header */
        .part_header {
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 2px solid rgba(0,0,0,0.1);
        }
        
        .part_header_top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }
        
        .part_header_title {
            font-size: 36px;
            font-weight: 800;
            margin: 0;
            line-height: 1.2;
        }
        
        .part_header_meta {
            display: flex;
            gap: 20px;
            font-size: 14px;
            opacity: 0.7;
        }
        
        /* Media area */
        .part_media {
            margin: 30px 0;
            border-radius: 20px;
            overflow: hidden;
            background: #f0f0f0;
            position: relative;
        }
        
        .part_media img {
            width: 100%;
            height: auto;
            max-height: 400px;
            object-fit: contain;
            display: block;
            background: linear-gradient(135deg, #f5f5f5, #eaeaea);
        }
        
        .music_player {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            padding: 15px 20px;
            display: flex;
            align-items: center;
            gap: 15px;
            border-radius: 12px;
            margin: 20px 0;
        }
        
        .music_btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: white;
            border: none;
            color: #667eea;
            font-size: 18px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .music_info {
            flex: 1;
        }
        
        .music_title {
            font-weight: 600;
            margin-bottom: 4px;
        }
        
        .music_progress {
            height: 4px;
            background: rgba(255,255,255,0.3);
            border-radius: 2px;
            width: 100%;
        }
        
        .music_progress_fill {
            height: 100%;
            background: white;
            width: 0%;
            border-radius: 2px;
        }
        
        /* Poem text */
        .poem_text_container {
            font-size: 18px;
            line-height: 1.7;
            margin: 30px 0;
            white-space: normal;
        }
        
        .poem_text_container p {
            margin: 0 0 20px 0;
        }
        
        .poem_text_container br {
            display: block;
            content: "";
            margin: 15px 0;
        }
        
        /* Navigation between parts */
        .part_nav {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
            margin-top: 40px;
            border-top: 2px solid rgba(0,0,0,0.1);
            padding-top: 30px;
        }
        
        .nav_link {
            text-decoration: none;
            color: inherit;
            padding: 15px 20px;
            border-radius: 16px;
            background: rgba(255,255,255,0.5);
            border: 1px solid rgba(0,0,0,0.1);
            transition: all 0.2s;
        }
        
        .nav_link:hover {
            background: white;
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.15);
        }
        
        .nav_link.prev {
            text-align: left;
        }
        
        .nav_link.next {
            text-align: right;
        }
        
        .nav_direction {
            font-size: 12px;
            opacity: 0.6;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 5px;
        }
        
        .nav_title {
            font-size: 18px;
            font-weight: 700;
        }
        
        /* Responsive */
        @media (max-width: 1000px) {
            .snov_layout {
                grid-template-columns: 280px 1fr;
                gap: 20px;
            }
            
            .part_header_title {
                font-size: 28px;
            }
        }
        
        @media (max-width: 800px) {
            .snov_layout {
                grid-template-columns: 1fr;
            }
            
            .snov_sidebar {
                position: relative;
                top: auto;
                max-height: 400px;
                margin-bottom: 20px;
            }
            
            .snov_main {
                padding: 20px;
            }
            
            .part_header_title {
                font-size: 24px;
            }
        }
        
        @media (max-width: 600px) {
            .part_header_top {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }
            
            .part_nav {
                grid-template-columns: 1fr;
            }
        }
        /* Quatrain styling */
.poem_text_container {
    font-size: 18px;
    line-height: 1.6;
    margin: 30px 0;
    font-family: 'Georgia', 'Times New Roman', serif;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.quatrain {
    margin-bottom: 10px;
}

.verse {
    margin: 0;
    padding: 2px 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    text-align: left;
}

.stanza-break{
  height: 18px;          /* space only */
  width: 100%;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
}


/* Optional: Add subtle styling for first line or special verses */
.quatrain:first-child .verse:first-child {
    margin-top: 0;
}

/* For poems with more spacing between lines */
.verse + .verse {
    margin-top: 2px;
}

/* Responsive */
@media (max-width: 600px) {
    .poem_text_container {
        font-size: 16px;
        line-height: 1.5;
    }
    
    .stanza-break {
        height: 18px;
    }
}

/* Ensure the page matches site width */
.poetry_page .site_main {
    max-width: 1240px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
}

/* Make the snov reader fit within site_main */
.snov_reader {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Adjust layout to use full width */
.snov_layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    margin-top: 20px;
    align-items: start;
    width: 100%;
}

/* Ensure main content doesn't overflow */
.snov_main {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Poem text container with max-width for readability */
.poem_text_container {
    max-width: 700px;
    margin-left: 0;  /* Align left instead of auto */
    margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 1240px) {
    .snov_layout {
        gap: 20px;
    }
}

@media (max-width: 1000px) {
    .snov_layout {
        grid-template-columns: 280px 1fr;
        gap: 20px;
    }
}

@media (max-width: 800px) {
    .snov_layout {
        grid-template-columns: 1fr;
    }
}

/* Media area - clean image display */
.part_media {
    margin: 30px 0;
    border-radius: 24px;  /* Larger rounded corners */
    overflow: hidden;
    background: transparent;  /* No background */
    position: relative;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);  /* Optional subtle shadow */
}

.part_media img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;  /* Show full image without cropping */
    display: block;
    background: transparent;  /* No background */
    border-radius: 24px;  /* Match container rounding */
}

/* Optional: Add a very subtle border if image blends into white background */
.part_media img {
    border: 1px solid rgba(0,0,0,0.05);  /* Very subtle border */
}

/* Remove any gradient backgrounds */
.part_media {
    background: none;
}

/* =========================================================
   SNOV PRIUTY — DARK MODE FIXES (hub + reader)
   Paste at END of snovpriuty.css
   ========================================================= */

body.dark_mode.poetry_page.snov_priuty_page .snov_filter{
  background: rgba(255,255,255,0.07) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  color: rgba(255,255,255,0.88) !important;
}
body.dark_mode.poetry_page.snov_priuty_page .snov_filter::placeholder{
  color: rgba(255,255,255,0.45) !important;
}
body.dark_mode.poetry_page.snov_priuty_page .snov_filter:focus{
  outline: none !important;
  border-color: rgba(160,140,255,0.45) !important;
  box-shadow: 0 0 0 3px rgba(160,140,255,0.18) !important;
}

/* Main surfaces (your screenshot shows these staying LIGHT in dark mode) */
body.dark_mode.poetry_page.snov_priuty_page .snov_sidebar,
body.dark_mode.poetry_page.snov_priuty_page .snov_main{
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 14px 34px rgba(0,0,0,0.45) !important;
}

/* Sidebar header */
body.dark_mode.poetry_page.snov_priuty_page .sidebar_header{
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}
body.dark_mode.poetry_page.snov_priuty_page .sidebar_title{
  color: rgba(255,255,255,0.92) !important;
}
body.dark_mode.poetry_page.snov_priuty_page .part_count{
  background: rgba(255,255,255,0.07) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  color: rgba(255,255,255,0.70) !important;
}

/* TOC items */
body.dark_mode.poetry_page.snov_priuty_page .part_item{
  background: rgba(255,255,255,0.035) !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
}
body.dark_mode.poetry_page.snov_priuty_page .part_item:hover{
  background: rgba(255,255,255,0.07) !important;
}
body.dark_mode.poetry_page.snov_priuty_page .part_item.active{
  background: rgba(160,140,255,0.18) !important;
  border-color: rgba(160,140,255,0.35) !important;
}
body.dark_mode.poetry_page.snov_priuty_page .part_number{
  color: rgba(255,255,255,0.62) !important;
}
body.dark_mode.poetry_page.snov_priuty_page .part_title{
  color: rgba(255,255,255,0.88) !important;
}
body.dark_mode.poetry_page.snov_priuty_page .part_meta{
  color: rgba(255,255,255,0.55) !important;
}
body.dark_mode.poetry_page.snov_priuty_page .badge{
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: rgba(255,255,255,0.82) !important;
}

/* Part header */
body.dark_mode.poetry_page.snov_priuty_page .part_header{
  background: rgba(255,255,255,0.02) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
}
body.dark_mode.poetry_page.snov_priuty_page .part_header_title{
  color: rgba(255,255,255,0.92) !important;
}
body.dark_mode.poetry_page.snov_priuty_page .part_header_meta,
body.dark_mode.poetry_page.snov_priuty_page .part_date{
  color: rgba(255,255,255,0.58) !important;
}

/* Poem text area */
body.dark_mode.poetry_page.snov_priuty_page .poem_text_container{
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
}
body.dark_mode.poetry_page.snov_priuty_page .poem_text_container .verse{
  color: rgba(255,255,255,0.86) !important;
}


/* Music player */
body.dark_mode.poetry_page.snov_priuty_page .music_player{
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
}
body.dark_mode.poetry_page.snov_priuty_page .music_btn{
  background: rgba(255,255,255,0.10) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  color: rgba(255,255,255,0.90) !important;
}
body.dark_mode.poetry_page.snov_priuty_page .music_progress{
  background: rgba(255,255,255,0.12) !important;
}
body.dark_mode.poetry_page.snov_priuty_page .music_progress_fill{
  background: rgba(255,255,255,0.78) !important;
}

/* Prev/Next nav blocks */
body.dark_mode.poetry_page.snov_priuty_page .nav_link{
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
}
body.dark_mode.poetry_page.snov_priuty_page .nav_direction{
  color: rgba(255,255,255,0.55) !important;
}
body.dark_mode.poetry_page.snov_priuty_page .nav_title{
  color: rgba(255,255,255,0.88) !important;
}
.sidebar_title_link{
  color: inherit;
  text-decoration: none;
}
.sidebar_title_link:hover{
  text-decoration: underline;
  opacity: 0.9;
}

.poetry_page.snov_priuty_page .p_hero_chips .chip{
  background: rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.10);
  color: rgba(0,0,0,0.72);
  font-weight: 800;
}

/* Keep dark theme consistent */
body.dark_mode.poetry_page.snov_priuty_page .p_hero_chips .chip{
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.78);
}

.card_media video,
.part_media video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}
