.forum-detail-page {
  min-height: 100vh;
  background-color: #121212;
  padding-bottom: 90px;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  .topic-card {
    background: #1e1e1e;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 24px 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);

    .header {
      margin-bottom: 24px;

      .title {
        font-size: 32px; /* Increased from 28px */
        font-weight: 800;
        color: #fff;
        margin-bottom: 20px;
        line-height: 1.4;
        letter-spacing: -0.5px;
      }

      .meta {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 12px;
        color: #888;
        font-size: 14px; /* Increased from 13px */

        .author {
          display: flex;
          align-items: center;
          gap: 10px;
          background: rgba(255,255,255,0.05);
          padding: 6px 12px 6px 6px;
          border-radius: 20px;

          .avatar {
            width: 32px; /* Larger avatar */
            height: 32px;
            border-radius: 50%;
            border: 1px solid rgba(255,255,255,0.1);
          }
          
          .verified {
             color: #00b96b;
             font-size: 16px;
             margin-left: 2px;
          }
        }
      }
    }

    .content {
      font-size: 20px; /* Increased from 18px */
      line-height: 1.9; /* Improved readability */
      color: #e0e0e0;
      letter-spacing: 0.3px;
      
      image {
        max-width: 100%;
        border-radius: 12px;
        margin: 24px 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
      }
      
      /* Markdown styling enhancements */
      h1, h2, h3, h4, h5, h6 { margin-top: 32px; margin-bottom: 20px; color: #fff; font-weight: 700; line-height: 1.4; }
      h1 { font-size: 28px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 12px; }
      h2 { font-size: 24px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 8px; }
      h3 { font-size: 22px; }
      h4 { font-size: 20px; }
      h5 { font-size: 18px; color: #ddd; }
      
      p { margin-bottom: 24px; }
      
      strong { font-weight: 800; color: #fff; }
      em { font-style: italic; color: #aaa; }
      del { text-decoration: line-through; color: #666; }
      
      ul, ol { margin-bottom: 24px; padding-left: 20px; }
      li { margin-bottom: 8px; list-style-position: outside; }
      ul li { list-style-type: disc; }
      ol li { list-style-type: decimal; }
      
      /* Task lists */
      li input[type="checkbox"] { margin-right: 8px; }

      blockquote {
          border-left: 4px solid #00b96b;
          background: rgba(255, 255, 255, 0.05);
          padding: 16px 20px;
          margin: 24px 0;
          border-radius: 4px;
          color: #bbb;
          font-size: 18px;
          font-style: italic;
          
          p { margin-bottom: 0; }
      }
      
      a { color: #00b96b; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
      
      hr {
          height: 1px;
          background: rgba(255,255,255,0.1);
          border: none;
          margin: 40px 0;
      }
      
      table {
          width: 100%;
          border-collapse: collapse;
          margin: 24px 0;
          font-size: 16px;
          overflow-x: auto;
          display: block;
          
          th, td {
              border: 1px solid rgba(255,255,255,0.1);
              padding: 12px;
              text-align: left;
          }
          
          th {
              background: rgba(255,255,255,0.05);
              font-weight: 700;
              color: #fff;
          }
          
          tr:nth-child(even) {
              background: rgba(255,255,255,0.02);
          }
      }

      code {
          background: rgba(255,255,255,0.1);
          padding: 4px 8px;
          border-radius: 4px;
          font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
          color: #ff7875;
          font-size: 16px;
          margin: 0 4px;
      }
      
      pre {
          background: #161616;
          padding: 20px;
          border-radius: 12px;
          overflow-x: auto;
          margin: 24px 0;
          border: 1px solid #333;
          box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
          
          code { 
              background: transparent; 
              color: #a6e22e; 
              padding: 0; 
              font-size: 15px; 
              margin: 0;
              white-space: pre;
          }
      }
    }

    .media-list {
      margin-top: 24px;
      
      .media-item {
        margin-bottom: 16px;
        
        video {
            width: 100%;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        }
      }
    }
  }

  .replies-section {
    padding: 0 16px;

    .section-title {
      font-size: 18px;
      font-weight: 700;
      margin-bottom: 20px;
      padding-left: 12px;
      border-left: 4px solid #00b96b;
      color: #fff;
    }

    .reply-card {
      background: #1e1e1e;
      border-radius: 12px;
      padding: 24px; /* Increased padding */
      margin-bottom: 24px;
      display: flex;
      gap: 16px; /* Increased gap */
      border: 1px solid rgba(255,255,255,0.03);
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);

      .avatar {
        width: 44px; /* Larger avatar */
        height: 44px;
        border-radius: 50%;
        flex-shrink: 0;
        border: 1px solid rgba(255,255,255,0.1);
      }

      .reply-main {
        flex: 1;

        .reply-header {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            margin-bottom: 12px;
            
            .nickname {
                font-weight: 600;
                color: #ddd;
                font-size: 16px; /* Larger nickname */
            }
            
            .time {
                color: #666;
                font-size: 13px;
                background: rgba(255,255,255,0.05);
                padding: 3px 8px;
                border-radius: 4px;
            }
        }

        .reply-content {
            font-size: 17px; /* Larger reply text */
            color: #ccc;
            line-height: 1.8;
            
            image {
                max-width: 100%;
                border-radius: 8px;
                margin-top: 14px;
            }
        }
      }
    }
  }

  .reply-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(20, 20, 20, 0.95); /* More opaque */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 20px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);

    .input-wrapper {
      flex: 1;
      background: rgba(255,255,255,0.1);
      border-radius: 26px;
      padding: 14px 20px; /* Larger input area */
      transition: all 0.3s;
      border: 1px solid transparent;

      &:focus-within {
          background: rgba(255,255,255,0.15);
          border-color: rgba(0, 185, 107, 0.5);
      }
      
      input {
          color: #fff;
          width: 100%;
          font-size: 18px; /* Larger text */
      }
    }

    .action-btn {
        width: 48px; /* Larger touch target */
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: background 0.2s;

        &:active {
            background: rgba(255,255,255,0.1);
        }
    }
    
    .send-btn {
        color: #00b96b;
        font-weight: 700;
        font-size: 16px;
        padding: 0 8px;
    }
  }
}
